Skip to content

Commit

Permalink
Rebased back with needed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliypopel committed Sep 24, 2024
1 parent 61bb851 commit 3374c7b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 30 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -50,4 +39,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: dist-files
path: dist/*
path: dist/*
56 changes: 41 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <popelcompany@gmail.com>"]
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",
Expand All @@ -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/"

0 comments on commit 3374c7b

Please sign in to comment.