-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from maykinmedia/pyproject
Switch to `pyproject.toml`
- Loading branch information
Showing
15 changed files
with
179 additions
and
179 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
max-line-length=88 | ||
exclude=env,.tox,doc | ||
ignore=E203,W503 |
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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
========= | ||
Changelog | ||
========= | ||
.. _changelog: | ||
|
||
1.0.0 (2022-08-29) | ||
================== | ||
|
||
Initial version of django-simple-certmanager. | ||
|
||
This library allows you to manage TLS certificates (and keys) through the Django admin, | ||
in a secure way. Your own code can then include references to the | ||
``simple_certmanager.Certificate`` model. | ||
|
||
.. note:: This library is extracted out of the `zgw-consumers`_ library. | ||
|
||
Credits to Silvia Amabilino for the initial work and Ewen Le Guilly for splitting it into a | ||
separate package. | ||
|
||
.. _zgw-consumers: https://pypi.org/project/zgw-consumers/ | ||
.. include:: ../CHANGELOG.rst |
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 |
---|---|---|
@@ -0,0 +1,130 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "django-simple-certmanager" | ||
version = "1.4.1" | ||
description = "Manage TLS certificates and keys in the Django admin" | ||
authors = [ | ||
{name = "Maykin Media", email = "[email protected]"} | ||
] | ||
readme = "README.rst" | ||
license = {file = "LICENSE"} | ||
keywords = ["django", "certificate", "security"] | ||
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", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"django>=3.2", | ||
"django-privates>=1.5", | ||
"cryptography>=35.0.0", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/maykinmedia/django-simple-certmanager" | ||
Documentation = "http://django-simple-certmanager.readthedocs.io/en/latest/" | ||
"Bug Tracker" = "https://github.com/maykinmedia/django-simple-certmanager/issues" | ||
"Source Code" = "https://github.com/maykinmedia/django-simple-certmanager" | ||
Changelog = "https://github.com/maykinmedia/django-simple-certmanager/blob/main/CHANGELOG.rst" | ||
|
||
[project.optional-dependencies] | ||
# These are not the test requirements! They are extras to be installed when making use of `simple_certmanager.test` | ||
testutils = [ | ||
"factory-boy", | ||
] | ||
tests = [ | ||
"pytest", | ||
"pytest-django", | ||
"pyquery", | ||
"tox", | ||
"isort", | ||
"black", | ||
"flake8", | ||
"freezegun", | ||
"django-stubs[compatible-mypy]", | ||
] | ||
coverage = [ | ||
"pytest-cov", | ||
] | ||
docs = [ | ||
"sphinx", | ||
"sphinx-rtd-theme", | ||
] | ||
release = [ | ||
"bump-my-version", | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["simple_certmanager*"] | ||
namespaces = false | ||
|
||
[tool.isort] | ||
profile = "black" | ||
combine_as_imports = true | ||
known_django = "django" | ||
known_first_party="simple_certmanager" | ||
sections=["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] | ||
skip = ["env", ".tox", ".history"] | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
DJANGO_SETTINGS_MODULE = "testapp.settings" | ||
|
||
[tool.bumpversion] | ||
current_version = "1.4.1" | ||
files = [ | ||
{filename = "pyproject.toml"}, | ||
{filename = "README.rst"}, | ||
{filename = "simple_certmanager/locale/nl/LC_MESSAGES/django.po"}, | ||
{filename = "docs/conf.py"}, | ||
] | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
source = [ | ||
"simple_certmanager" | ||
] | ||
omit = [ | ||
"simple_certmanager/migrations/*", | ||
] | ||
|
||
[tool.coverage.report] | ||
exclude_also = [ | ||
"if (typing\\.)?TYPE_CHECKING:", | ||
"@(typing\\.)?overload", | ||
"class .*\\(.*Protocol.*\\):", | ||
"@(abc\\.)?abstractmethod", | ||
"raise NotImplementedError", | ||
"\\.\\.\\.", | ||
"pass", | ||
] | ||
omit = [ | ||
"simple_certmanager/migrations/*", | ||
] | ||
|
||
[tool.coverage.html] | ||
directory = "cover" | ||
|
||
[tool.mypy] | ||
plugins = ["mypy_django_plugin.main"] | ||
|
||
[[tool.mypy.overrides]] | ||
module = "factory" | ||
# typing support for factory-boy *is* coming | ||
ignore_missing_imports = true | ||
|
||
[tool.django-stubs] | ||
django_settings_module = "testapp.settings" |
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
Oops, something went wrong.