Skip to content

Commit 8d68702

Browse files
authored
Switch to modern build setup using pyproject.toml (#524)
1 parent 6d5dbc8 commit 8d68702

File tree

5 files changed

+49
-161
lines changed

5 files changed

+49
-161
lines changed

MANIFEST.in

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Other changes:
8888
- Dropped support for Django < 4.2.
8989
- Added support for Python 3.12 and 3.13.
9090
- Added support for Django 5.0, 5.1, and 5.2.
91+
- Switched to pyproject.toml based package build using the setuptools build backend.
9192

9293

9394
4.0 (2023-04-22)

pyproject.toml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[build-system]
2+
requires = ["setuptools >=77.0.3"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "django-localflavor"
7+
dynamic = ["version"]
8+
requires-python = ">=3.9"
9+
dependencies = [
10+
"django>=4.2",
11+
"python-stdnum>=1.6",
12+
]
13+
authors = [
14+
{ name="Django Software Foundation", email="foundation@djangoproject.com" },
15+
]
16+
description = "Country-specific Django helpers"
17+
readme = "README.rst"
18+
license = "BSD-3-Clause"
19+
license-files = ["LICENSE"]
20+
classifiers = [
21+
"Development Status :: 5 - Production/Stable",
22+
"Environment :: Web Environment",
23+
"Framework :: Django",
24+
"Framework :: Django :: 4.2",
25+
"Framework :: Django :: 5.0",
26+
"Framework :: Django :: 5.1",
27+
"Framework :: Django :: 5.2",
28+
"Intended Audience :: Developers",
29+
"Operating System :: OS Independent",
30+
"Programming Language :: Python",
31+
"Programming Language :: Python :: 3",
32+
"Programming Language :: Python :: 3.9",
33+
"Programming Language :: Python :: 3.10",
34+
"Programming Language :: Python :: 3.11",
35+
"Programming Language :: Python :: 3.12",
36+
"Programming Language :: Python :: 3.13",
37+
"Topic :: Internet :: WWW/HTTP",
38+
]
39+
40+
[project.urls]
41+
Homepage = "https://django-localflavor.readthedocs.io/en/latest/"
42+
Source = "https://github.com/django/django-localflavor"
43+
44+
[tool.setuptools.dynamic]
45+
version = { attr = "localflavor.__version__" }
46+
47+
[tool.flake8]
48+
max-line-length = 119

setup.cfg

Lines changed: 0 additions & 5 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 146 deletions
This file was deleted.

0 commit comments

Comments
 (0)