forked from vikingco/django-states2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update project configuration and update Python version
Obsolete configuration files have been removed and replaced with a modern pyproject.toml file. The Python version for GitHub workflows has been updated to use Python 3.12. This commit also includes the migration of the project's dependencies from requirements.txt and setup.py to pyproject.toml. Python setuptools and requirements files have been replaced with a simpler build process using hatch. Signed-off-by: Steven K <[email protected]>
- Loading branch information
Showing
11 changed files
with
110 additions
and
285 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,76 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "pivotal-django-states" | ||
dynamic = ["version"] | ||
description = "State machine for django models" | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
authors = [ | ||
{ name = "Pivotal Energy Solutions", email = "[email protected]" }, | ||
] | ||
keywords = [ | ||
"django", | ||
"state-machine", | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Framework :: Django :: 4.2", | ||
"Framework :: Django :: 5.0", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Utilities", | ||
] | ||
dependencies = [ | ||
"Django>=4.2", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"django-environ", | ||
"mysqlclient", | ||
"flake8", | ||
"coverage", | ||
"pre-commit", | ||
"black", | ||
"bandit" | ||
] | ||
|
||
[project.urls] | ||
Issues = "https://github.com/pivotal-energy-solutions/django-states2/issues" | ||
Download = "https://github.com/pivotal-energy-solutions/django-states2/archive/1.7.30.tar.gz" | ||
Homepage = "https://github.com/pivotal-energy-solutions/django-states2" | ||
"Original Source" = "https://github.com/vikingco/django-states2" | ||
Thanks = "https://saythanks.io/to/rh0dium" | ||
|
||
[tool.hatch.version] | ||
path = "django_states/__init__.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/django_states", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ['django_states'] | ||
include = [ | ||
"/django_input_collection/templates/**/*", | ||
] | ||
|
||
[tool.black] | ||
line-length = 100 | ||
target-version = ['py310'] | ||
target-version = ['py311'] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
|
@@ -18,3 +88,15 @@ extend-exclude = ''' | |
# in the root of the project. | ||
/static/.py # exclude a file named foo.py in the root of the project (in addition to the defaults) | ||
''' | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
omit = [ | ||
"*/demo_app/**", | ||
"*/migrations/*", | ||
"*/tests/**", | ||
] | ||
|
||
[tool.coverage.report] | ||
fail_under = 70 | ||
ignore_errors = true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.