Skip to content

Commit 13f9dfe

Browse files
committed
migrate from setup.py to pyproject.toml
1 parent ef76168 commit 13f9dfe

File tree

4 files changed

+37
-66
lines changed

4 files changed

+37
-66
lines changed

beproud/__init__.py

-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +0,0 @@
1-
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
2-
try:
3-
__import__('pkg_resources').declare_namespace(__name__)
4-
except ImportError:
5-
from pkgutil import extend_path
6-
__path__ = locals()['__path__'] # make PyFlakes happy
7-
__path__ = extend_path(__path__, __name__)

beproud/django/__init__.py

-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +0,0 @@
1-
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
2-
try:
3-
__import__('pkg_resources').declare_namespace(__name__)
4-
except ImportError:
5-
from pkgutil import extend_path
6-
__path__ = locals()['__path__'] # make PyFlakes happy
7-
__path__ = extend_path(__path__, __name__)

pyproject.toml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "bpnotify"
7+
version = "0.48"
8+
authors = [
9+
{ name="BeProud Inc.", email="[email protected]" },
10+
]
11+
description = "Notification routing for Django"
12+
readme = "README.rst"
13+
requires-python = ">=3.9"
14+
keywords=["django"]
15+
classifiers = [
16+
"Development Status :: 3 - Alpha",
17+
"License :: OSI Approved :: BSD License",
18+
"Programming Language :: Python",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Framework :: Django",
25+
"Framework :: Django :: 3.2",
26+
"Framework :: Django :: 4.2",
27+
"Intended Audience :: Developers",
28+
"Environment :: Plugins",
29+
"Topic :: Software Development :: Libraries :: Python Modules",
30+
]
31+
dependencies = ["Django>=3.2", "six", "Celery"]
32+
33+
[project.urls]
34+
Homepage = "https://github.com/beproud/bpnotify/"
35+
36+
[tool.setuptools.packages.find]
37+
where = ["."]

setup.py

-52
This file was deleted.

0 commit comments

Comments
 (0)