From 3374c7b29c41aa094e021929761c15e654152698 Mon Sep 17 00:00:00 2001 From: vitaliypopel Date: Tue, 24 Sep 2024 16:54:38 +0300 Subject: [PATCH] Rebased back with needed changes --- .github/workflows/release.yml | 19 +++--------- pyproject.toml | 56 +++++++++++++++++++++++++---------- 2 files changed, 45 insertions(+), 30 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2379d2..1245d61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,22 +23,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - if [ -f "pyproject.toml" ]; then - pip install poetry - poetry install --no-dev - elif [ -f "requirements.txt" ]; then - pip install -r requirements.txt - else - echo "No pyproject.toml or requirements.txt found. Exiting." - exit 1 - fi + pip install build + pip install -r requirements.txt - name: Build package - run: | - if [ -f "pyproject.toml" ]; then - poetry build - else - python -m build + run: python -m build - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 @@ -50,4 +39,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: dist-files - path: dist/* + path: dist/* \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 28b6c73..312b461 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,18 @@ -[tool.poetry] +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + + +[project] name = "django-routify" version = "0.2.5" description = "Django-Routify is a package for simple routing Views in the classic Django framework." -authors = ["Vitaliy Popel "] -license = "MIT" + readme = "README.md" -homepage = "https://github.com/vitaliypopel/django-routify" -repository = "https://github.com/vitaliypopel/django-routify" -documentation = "https://github.com/vitaliypopel/django-routify" +requires-python = ">=3.8" + +license = {file = "LICENSE"} + keywords = [ "django-routify", "django routify", @@ -18,14 +23,35 @@ keywords = [ "routify", ] -[tool.poetry.dependencies] -python = ">=3.8" -django = ">=4.0" +authors = [ + {name="Vitaliy Popel", email="popelcompany@gmail.com"} +] +maintainers = [ + {name="Vitaliy Popel", email="popelcompany@gmail.com"} +] -[tool.poetry.dev-dependencies] -pytest = "^7.0" -black = "^23.0" +classifiers = [ + "Development Status :: 5 - Production/Stable", -[build-system] -requires = ["poetry-core>=1.0.0"] -build-backend = "poetry.core.masonry.api" + "Intended Audience :: Developers", + "Topic :: Software Development :: Build Tools", + + "License :: OSI Approved :: MIT License", + + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3 :: Only", +] + +dependencies = [ + "django>=4.0" +] + +[project.urls] +"Homepage" = "https://github.com/vitaliypopel/django-routify" +"Bug reports" = "https://github.com/vitaliypopel/django-routify/issues" +"Source" = "https://github.com/vitaliypopel/django-routify/" \ No newline at end of file