Skip to content

Commit

Permalink
Update package metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed May 29, 2024
1 parent 3854269 commit 35c540e
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 73 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools twine wheel
python -m pip install -U build twine
- name: Build package
run: |
python setup.py --version
python setup.py sdist --format=gztar bdist_wheel
python -m build
twine check dist/*
- name: Upload packages to Jazzband
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
setup.py
pyproject.toml
tox.ini
requirements/*.txt
Expand Down
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Authors
- Nianpeng Li
- Nick Träger
- Noel James (`NoelJames <https://github.com/NoelJames>`_)
- Ofek Lev (`ofek <https://github.com/ofek>`_)
- Phillip Marshall
- Prakash Venkatraman (`dopatraman <https://github.com/dopatraman>`_)
- Rajesh Pappula
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changes
Unreleased
----------

- Update package metadata to use modern standards


3.6.0 (2024-05-26)
------------------
Expand Down
6 changes: 0 additions & 6 deletions MANIFEST.in

This file was deleted.

7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ clean: clean-build clean-pyc
rm -fr htmlcov/

clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info

clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
Expand All @@ -27,9 +25,8 @@ documentation:
tox -e docs

dist: clean
pip install -U wheel
python setup.py sdist
python setup.py bdist_wheel
pip install -U build
python -m build
for file in dist/* ; do gpg --detach-sign -a "$$file" ; done
ls -l dist

Expand Down
70 changes: 70 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,73 @@
[build-system]
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"

[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 = "corey@qr7.com" },
]
maintainers = [
{ name = "Trey Hunner" },
]
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.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: 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"

[tool.hatch.version]
source = "vcs"

[tool.hatch.version.raw-options]
version_scheme = "post-release"
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"]

[tool.hatch.build.targets.sdist]
include = [
"/docs",
"/simple_history",
"*.rst",
"*.txt",
]

[tool.black]
line-length = 88
target-version = ["py38"]
Expand Down
56 changes: 0 additions & 56 deletions setup.py

This file was deleted.

5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[tox]
isolated_build = true
envlist =
py{38,39,310}-dj32-{sqlite3,postgres,mysql,mariadb},
py{38,39,310,311,312}-dj42-{sqlite3,postgres,mysql,mariadb},
Expand Down Expand Up @@ -53,8 +54,8 @@ commands =
[testenv:format]
deps = -rrequirements/lint.txt
commands =
isort docs simple_history runtests.py setup.py
black docs simple_history runtests.py setup.py
isort docs simple_history runtests.py
black docs simple_history runtests.py
flake8 simple_history

[testenv:lint]
Expand Down

0 comments on commit 35c540e

Please # to comment.