Skip to content

Commit

Permalink
Migrate from setup.cfg to pyproject.toml for project metadata
Browse files Browse the repository at this point in the history
This is the latest standard way to specify project metadata, as per PEP 621
setuptools automatically supports "src-layout" projects,
so will automatically find the source code in "src" directory.
  • Loading branch information
LincolnPuzey committed Sep 4, 2024
1 parent 3504317 commit cd7ead9
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 51 deletions.
49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,55 @@
requires = ["setuptools ~= 74.0"]
build-backend = "setuptools.build_meta"

[project]
name = "django-dirtyfields"
dynamic = ["version"]
description = "Tracking dirty fields on a Django model instance."
keywords = ["django", "dirtyfields", "track", "model", "changes"]
readme = {file = "README.rst", content-type = "text/x-rst"}
license = {file = "LICENSE"}
authors = [{name = "Romain Garrigues"}]
maintainers = [{name = "Lincoln Puzey"}]
requires-python = ">=3.8"
dependencies = [
"Django>=2.2",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"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",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
]

[project.urls]
Homepage = "https://github.com/romgar/django-dirtyfields"
Repository = "https://github.com/romgar/django-dirtyfields.git"
Changelog = "https://github.com/romgar/django-dirtyfields/blob/develop/ChangeLog.rst"
Documentation = "https://django-dirtyfields.readthedocs.io"

[tool.setuptools.dynamic]
version = {attr = "dirtyfields.__version__"}

[tool.pytest.ini_options]
django_find_project = false
DJANGO_SETTINGS_MODULE = 'tests.django_settings'
Expand Down
51 changes: 0 additions & 51 deletions setup.cfg

This file was deleted.

0 comments on commit cd7ead9

Please sign in to comment.