-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📦 Move package configuration to pyproject.toml
- Loading branch information
1 parent
9470190
commit a6425f2
Showing
6 changed files
with
115 additions
and
119 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,111 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "django-cookie-consent" | ||
version = "0.5.0b0" | ||
description = "Django cookie consent application" | ||
authors = [ | ||
{name = "Informatika Mihelac", email = "[email protected]"} | ||
] | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
keywords = ["cookies", "cookie-consent", "cookie bar"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Framework :: Django", | ||
"Framework :: Django :: 4.2", | ||
"Framework :: Django :: 5.0", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: Unix", | ||
"Operating System :: MacOS", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: OS Independent", | ||
"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", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"django>=4.2", | ||
"django-appconf", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://django-cookie-consent.readthedocs.io/en/latest/" | ||
Changelog = "https://github.com/jazzband/django-cookie-consent/blob/master/docs/changelog.rst" | ||
"Bug Tracker" = "https://github.com/jazzband/django-cookie-consent/issues" | ||
"Source Code" = "https://github.com/jazzband/django-cookie-consent" | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"pytest", | ||
"pytest-django", | ||
"pytest-playwright", | ||
"tox", | ||
"isort", | ||
"black", | ||
"flake8", | ||
] | ||
coverage = [ | ||
"pytest-cov", | ||
] | ||
docs = [ | ||
"sphinx", | ||
"sphinx-rtd-theme", | ||
] | ||
release = [ | ||
"tbump", | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["cookie_consent*"] | ||
namespaces = true | ||
|
||
[tool.isort] | ||
profile = "black" | ||
combine_as_imports = true | ||
skip = ["env", ".tox", ".history", ".eggs"] | ||
known_django = "django" | ||
known_first_party="cookie_consent" | ||
sections=["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
DJANGO_SETTINGS_MODULE = "testapp.settings" | ||
markers = [ | ||
"e2e: mark tests as end-to-end tests, using playwright (deselect with '-m \"not e2e\"')", | ||
] | ||
|
||
[tool.bumpversion] | ||
current_version = "0.1.0" | ||
files = [ | ||
{filename = "pyproject.toml"}, | ||
{filename = "README.rst"}, | ||
{filename = "docs/conf.py"}, | ||
] | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
source = "cookie_consent" | ||
omit = [ | ||
# migrations run while django initializes the test db | ||
"*/migrations/*", | ||
] | ||
|
||
[tool.coverage.report] | ||
skip_covered = true | ||
exclude_also = [ | ||
"if (typing\\.)?TYPE_CHECKING:", | ||
"@(typing\\.)?overload", | ||
"class .*\\(.*Protocol.*\\):", | ||
"@(abc\\.)?abstractmethod", | ||
"raise NotImplementedError", | ||
"\\.\\.\\.", | ||
"pass", | ||
] |
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,114 +1,4 @@ | ||
# setuptools config | ||
# see http://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files | ||
[metadata] | ||
name = django-cookie-consent | ||
version = 0.5.0b0 | ||
description = Django cookie consent application | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/jazzband/django-cookie-consent | ||
project_urls = | ||
Documentation = https://django-cookie-consent.readthedocs.io/en/latest/ | ||
Changelog = https://github.com/jazzband/django-cookie-consent/blob/master/docs/changelog.rst | ||
Bug Tracker = https://github.com/jazzband/django-cookie-consent/issues | ||
Source Code = https://github.com/jazzband/django-cookie-consent | ||
license = BSD | ||
author = Informatika Mihelac | ||
author_email = [email protected] | ||
keywords = cookies, cookie-consent, cookie bar | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Framework :: Django | ||
Framework :: Django :: 4.2 | ||
Framework :: Django :: 5.0 | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: BSD License | ||
Operating System :: Unix | ||
Operating System :: MacOS | ||
Operating System :: Microsoft :: Windows | ||
Operating System :: OS Independent | ||
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 | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
|
||
[options] | ||
zip_safe = False | ||
include_package_data = True | ||
packages = find: | ||
install_requires = | ||
django >= 4.2 | ||
django-appconf | ||
tests_require = | ||
pytest | ||
pytest-django | ||
pytest-playwright | ||
tox | ||
isort | ||
black | ||
flake8 | ||
|
||
[options.packages.find] | ||
include = | ||
cookie_consent | ||
cookie_consent.* | ||
|
||
[options.extras_require] | ||
tests = | ||
pytest | ||
pytest-django | ||
pytest-playwright | ||
tox | ||
isort | ||
black | ||
flake8 | ||
pep8 = flake8 | ||
coverage = pytest-cov | ||
docs = | ||
sphinx | ||
sphinx-rtd-theme | ||
release = | ||
tbump | ||
twine | ||
|
||
# 3rd party configuration | ||
|
||
[aliases] | ||
test=pytest | ||
|
||
[isort] | ||
combine_as_imports = true | ||
default_section = THIRDPARTY | ||
include_trailing_comma = true | ||
line_length = 88 | ||
multi_line_output = 3 | ||
force_grid_wrap = 0 | ||
use_parentheses = True | ||
ensure_newline_before_comments = True | ||
skip = env,.tox,.history,.eggs | ||
known_django=django | ||
known_first_party=cookie_consent | ||
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER | ||
|
||
[tool:pytest] | ||
testpaths = tests | ||
DJANGO_SETTINGS_MODULE=testapp.settings | ||
markers = | ||
e2e: mark tests as end-to-end tests, using playwright (deselect with '-m "not e2e"') | ||
|
||
[pep8] | ||
[flake8] | ||
max-line-length=88 | ||
exclude=env,.tox,docs | ||
|
||
[coverage:run] | ||
branch = True | ||
source = cookie_consent | ||
omit = | ||
# migrations run while django initializes the test db | ||
*/migrations/* | ||
|
||
[coverage:report] | ||
skip_covered = True |
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