Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RELEASING
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Release Checklist
-----------------------------------------
[ ] Update classifiers in setup.cfg to include the latest supported Python
[ ] Update classifiers in pyproject.toml to include the latest supported Python
versions.
[ ] Update NEWS with list of changes:
[ ] Invoke `tox -e news -- --version <NEXT_VERSION>`
Expand Down
2 changes: 2 additions & 0 deletions changelog.d/1637.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Moved package metadata and pytest configuration to pyproject.toml.
Fixed by @pganssle (gh pr #1637).
76 changes: 72 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
[build-system]
requires = [
"setuptools",
"setuptools_scm<8.0"
]
requires = ["setuptools>=77", "setuptools_scm<8.0"]
build-backend = "setuptools.build_meta"

[project]
name = "python-dateutil"
description = "Extensions to the standard Python datetime module"
dynamic = ["version", "readme"]
requires-python = ">=3.11"
dependencies = ["tzdata"]
license = "BSD-3-Clause"
license-files = ["LICENSE", "AUTHORS.md"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Free Threading :: 2 - Beta",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries",
]

[[project.authors]]
name = "Gustavo Niemeyer"
email = "gustavo@niemeyer.net"

[[project.maintainers]]
name = "Paul Ganssle"
email = "dateutil@python.org"

[project.urls]
Homepage = "https://github.com/dateutil/dateutil"
Documentation = "https://dateutil.readthedocs.io/en/stable/"
Source = "https://github.com/dateutil/dateutil"

[tool.towncrier]
package = "dateutil"
package_dir = "dateutil"
Expand Down Expand Up @@ -60,3 +94,37 @@ known_third_party=[
multi_line_output=3
use_parentheses=true

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools_scm]
write_to = "src/dateutil/_version.py"

[tool.pytest.ini_options]
python_files = [
"test_*.py",
"*_test.py",
"*_solution.py",
]
xfail_strict = true
filterwarnings = [
"error",
"error::DeprecationWarning",
"error::PendingDeprecationWarning",
]
markers = [
"gettz",
"import_star",
"isoparser",
"parserinfo",
"rrule",
"rruleset",
"rrulestr",
"smoke",
"tz_resolve_imaginary",
"tzdata_properties",
"tzfile",
"tzlocal",
"tzoffset",
"tzstr",
]
71 changes: 0 additions & 71 deletions setup.cfg

This file was deleted.

8 changes: 1 addition & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,4 @@ def README():
README = README() # NOQA


setup(
use_scm_version={
'write_to': 'src/dateutil/_version.py',
},
## Needed since doctest not supported by PyPA.
long_description = README,
)
setup(long_description=README, long_description_content_type="text/x-rst")
Loading