-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to pyproject.toml
, drop support for Django 4.1
#87
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b8bf039
Fix year in `LICENSE`
Viicos 627a470
Switch to `pyproject.toml`, drop support for Django 4.1
Viicos 34aec60
Run black
Viicos 3b46eee
Do not lint on `setup.py`
Viicos 44728e1
Use `pytest` instead of `py.test`
Viicos 8ab0a7b
Misc. improvements
Viicos f72f9c9
Update CI to use `build`
Viicos 83478a3
Reuse xml
Viicos 7ea3a41
Add tests for 3.12
Viicos b7fc88e
Feedback
Viicos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
ignore=W293,W291,E501,E261 | ||
max-line-length=88 | ||
exclude=env,.tox |
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 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 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 |
---|---|---|
|
@@ -34,7 +34,6 @@ Requirements | |
------------ | ||
|
||
* Python 3.10 or newer | ||
* setuptools 30.3.0 or newer | ||
* Django 3.2 or newer | ||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,133 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "zgw-consumers" | ||
version = "0.30.0" | ||
description = "Configuration for service (OpenAPI 3 or other) consumers" | ||
authors = [ | ||
{name = "Maykin Media", email = "[email protected]"} | ||
] | ||
readme = "README.rst" | ||
license = {file = "LICENSE"} | ||
keywords = ["Django", "ZGW", "Common Ground", "VNG", "API", "OpenAPI", "OAS", "mTLS"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Django", | ||
"Framework :: Django :: 3.2", | ||
"Framework :: Django :: 4.2", | ||
"Intended Audience :: Developers", | ||
"Operating System :: Unix", | ||
"Operating System :: MacOS", | ||
"Operating System :: Microsoft :: Windows", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
Viicos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"django>=3.2", | ||
"django-relativedelta>=2.0.0", | ||
"django-solo", | ||
"gemma-zds-client>=2.0.0", | ||
"django-simple-certmanager>=1.4.1", | ||
"requests", | ||
"ape-pie", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/maykinmedia/zgw-consumers" | ||
Documentation = "https://zgw-consumers.readthedocs.io/en/latest/" | ||
"Bug Tracker" = "https://github.com/maykinmedia/zgw-consumers/issues" | ||
"Source Code" = "https://github.com/maykinmedia/zgw-consumers" | ||
Changelog = "https://github.com/maykinmedia/zgw-consumers/blob/main/CHANGELOG.rst" | ||
|
||
[project.optional-dependencies] | ||
db = [ | ||
"psycopg2", | ||
] | ||
drf = [ | ||
"djangorestframework", | ||
] | ||
# These are not the test requirements! They are extras to be installed when making use of `zgw_consumers.test` | ||
testutils = [ | ||
"Faker>=0.7.0", | ||
"factory-boy", | ||
"requests-mock", | ||
] | ||
tests = [ | ||
"django-redis", | ||
"pytest", | ||
"pytest-django", | ||
"requests-mock", | ||
"freezegun", | ||
"tox", | ||
"isort", | ||
"black", | ||
"flake8", | ||
"tabulate", | ||
"pyquery", | ||
] | ||
coverage = [ | ||
"pytest-cov", | ||
] | ||
docs = [ | ||
"sphinx", | ||
"sphinx-rtd-theme", | ||
] | ||
release = [ | ||
"bump-my-version", | ||
"twine", | ||
Viicos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["zgw_consumers*"] | ||
namespaces = false | ||
|
||
[tool.isort] | ||
profile = "black" | ||
combine_as_imports = true | ||
known_django = "django" | ||
known_first_party="zgw_consumers" | ||
sections=["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] | ||
Viicos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
DJANGO_SETTINGS_MODULE = "testapp.settings" | ||
|
||
[tool.bumpversion] | ||
current_version = "0.30.0" | ||
files = [ | ||
{filename = "pyproject.toml"}, | ||
{filename = "README.rst"}, | ||
{filename = "zgw_consumers/locale/nl/LC_MESSAGES/django.po"}, | ||
{filename = "docs/conf.py"}, | ||
] | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
source = [ | ||
"zgw_consumers" | ||
] | ||
omit = [ | ||
"zgw_consumers/migrations/*", | ||
] | ||
|
||
[tool.coverage.report] | ||
exclude_also = [ | ||
"if (typing\\.)?TYPE_CHECKING:", | ||
"@(typing\\.)?overload", | ||
"class .*\\(.*Protocol.*\\):", | ||
"@(abc\\.)?abstractmethod", | ||
"raise NotImplementedError", | ||
"\\.\\.\\.", | ||
"pass", | ||
] | ||
omit = [ | ||
"zgw_consumers/migrations/*", | ||
] | ||
|
||
[tool.coverage.html] | ||
directory = "cover" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not know that was valid syntax, TIL