forked from jazzband/django-simple-history
-
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.
Merge branch 'ddabble/update-package-metadata' into modernize-metadata
# Conflicts: # .github/workflows/release.yml # CHANGES.rst # pyproject.toml Changes in `pyproject.toml`: * Removed `license`, for the reason stated in fef00f6 * Removed duplicate "Framework :: Django" classifier (originating from `setup.py`) * Replaced `version_scheme` with "no-guess-dev", which is the docs' recommended replacement for "post-release" - which is deprecated (see https://setuptools-scm.readthedocs.io/en/stable/extending/#available-implementations) * Removed `include`, as the default configuration includes all files not ignored through our `.gitignore` (see https://hatch.pypa.io/latest/plugins/builder/sdist/#default-file-selection), which is what we want in the source distribution (sdist) * Added link to issue in the comments on the `core-metadata-version` fields - see jazzband#1348 (comment) Changes in `tox.ini`: * Removed `isolated_build`, as isolated build environments are enabled by default from tox v4 - see jazzband#1348 (comment)
- Loading branch information
Showing
13 changed files
with
129 additions
and
125 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
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
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,76 +1,85 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"] | ||
build-backend = "hatchling.build" | ||
requires = [ | ||
"hatch-fancy-pypi-readme", | ||
"hatch-vcs", | ||
"hatchling", | ||
] | ||
|
||
[project] | ||
name = "django-simple-history" | ||
dynamic = ["version", "readme"] | ||
description = "Store model history and view/revert changes from admin site." | ||
license = "BSD-3-Clause" | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name = "Corey Bertram", email = "[email protected]" }, | ||
] | ||
maintainers = [ | ||
{ name = "Trey Hunner" }, | ||
] | ||
authors = [ | ||
{ name = "Corey Bertram", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Framework :: Django", | ||
"Framework :: Django :: 3.2", | ||
"Framework :: Django :: 4.2", | ||
"Framework :: Django :: 5.0", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"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.13", | ||
# DEV: uncomment this when the `pyproject-fmt` pre-commit hook stops removing it | ||
#"Programming Language :: Python :: 3.13", | ||
] | ||
# DEV: Remove `asgiref` when the minimum required Django version is 4.2 | ||
dependencies = ["asgiref>=3.6"] | ||
|
||
[project.urls] | ||
Changelog = "https://github.com/jazzband/django-simple-history/blob/master/CHANGES.rst" | ||
Documentation = "https://django-simple-history.readthedocs.io/" | ||
Source = "https://github.com/jazzband/django-simple-history" | ||
Tracker = "https://github.com/jazzband/django-simple-history/issues" | ||
dynamic = [ | ||
"readme", | ||
"version", | ||
] | ||
dependencies = [ | ||
] | ||
urls.Changelog = "https://github.com/jazzband/django-simple-history/blob/master/CHANGES.rst" | ||
urls.Documentation = "https://django-simple-history.readthedocs.io/en/stable/" | ||
urls.Homepage = "https://github.com/jazzband/django-simple-history" | ||
urls.Source = "https://github.com/jazzband/django-simple-history" | ||
urls.Tracker = "https://github.com/jazzband/django-simple-history/issues" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
fallback-version = "0.0.0" | ||
|
||
[tool.hatch.version.raw-options] | ||
version_scheme = "post-release" | ||
version_scheme = "no-guess-dev" | ||
local_scheme = "node-and-date" | ||
fallback_version = "0.0.0" | ||
|
||
[tool.hatch.metadata.hooks.fancy-pypi-readme] | ||
content-type = "text/x-rst" | ||
fragments = [ | ||
{ path = "README.rst" }, | ||
{ path = "CHANGES.rst" }, | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["simple_history"] | ||
# Jazzband's release process is limited to 2.2 metadata | ||
# - see https://github.com/jazzband/help/issues/360 | ||
core-metadata-version = "2.2" | ||
packages = [ | ||
"simple_history", | ||
] | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/docs", | ||
"/simple_history", | ||
"*.rst", | ||
"*.txt", | ||
# Jazzband's release process is limited to 2.2 metadata | ||
# - see https://github.com/jazzband/help/issues/360 | ||
core-metadata-version = "2.2" | ||
|
||
[tool.hatch.metadata.hooks.fancy-pypi-readme] | ||
content-type = "text/x-rst" | ||
fragments = [ | ||
{ path = "README.rst", start-after = ".. Start of PyPI readme\n\n" }, | ||
{ text = "\n====\n\nChangelog\n=========\n\n" }, | ||
{ path = "CHANGES.rst", start-after = ".. Start of PyPI readme\n\n" }, | ||
] | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ["py38"] | ||
target-version = [ | ||
"py38", | ||
] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
@@ -79,12 +88,19 @@ py_version = "38" | |
[tool.coverage.run] | ||
parallel = true | ||
branch = true | ||
source = ["simple_history"] | ||
source = [ | ||
"simple_history", | ||
] | ||
|
||
[tool.coverage.paths] | ||
source = ["simple_history", ".tox/*/site-packages"] | ||
source = [ | ||
"simple_history", | ||
".tox/*/site-packages", | ||
] | ||
|
||
[tool.coverage.report] | ||
show_missing = true | ||
skip_covered = true | ||
omit = ["requirements/*"] | ||
omit = [ | ||
"requirements/*", | ||
] |
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,4 +1 @@ | ||
# DEV: Replace this with `psycopg[binary]` when the minimum required Django version is | ||
# 4.2 or higher, as this is likely to be deprecated in the future | ||
# (see https://docs.djangoproject.com/en/4.2/releases/4.2/#psycopg-3-support) | ||
psycopg2-binary==2.9.9 | ||
psycopg[binary]==3.1.19 |
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,3 +1 @@ | ||
-r ./coverage.txt | ||
# DEV: Remove this requirement entirely when the minimum required Django version is 4.2 | ||
asgiref>=3.6 |
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.