Skip to content

Commit

Permalink
migrate from setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
kashewnuts committed Feb 2, 2024
1 parent ef76168 commit 13f9dfe
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 66 deletions.
7 changes: 0 additions & 7 deletions beproud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = locals()['__path__'] # make PyFlakes happy
__path__ = extend_path(__path__, __name__)
7 changes: 0 additions & 7 deletions beproud/django/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = locals()['__path__'] # make PyFlakes happy
__path__ = extend_path(__path__, __name__)
37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "bpnotify"
version = "0.48"
authors = [
{ name="BeProud Inc.", email="[email protected]" },
]
description = "Notification routing for Django"
readme = "README.rst"
requires-python = ">=3.9"
keywords=["django"]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"Environment :: Plugins",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = ["Django>=3.2", "six", "Celery"]

[project.urls]
Homepage = "https://github.com/beproud/bpnotify/"

[tool.setuptools.packages.find]
where = ["."]
52 changes: 0 additions & 52 deletions setup.py

This file was deleted.

0 comments on commit 13f9dfe

Please sign in to comment.