Skip to content

Commit 7f7c68f

Browse files
committed
Switch to Hatchling build backend
1 parent f2930ff commit 7f7c68f

File tree

2 files changed

+27
-28
lines changed

2 files changed

+27
-28
lines changed

pyproject.toml

+27-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
[project]
2+
name = "greenstalk"
3+
description = "A Python client for the beanstalkd work queue"
4+
license = "MIT"
5+
requires-python = ">=3.8"
6+
authors = [
7+
{ name = "Justin Mayhew", email = "mayhew@live.ca" },
8+
]
9+
classifiers = [
10+
"Intended Audience :: Developers",
11+
"Operating System :: OS Independent",
12+
]
13+
readme = "README.rst"
14+
dynamic = ["version"]
15+
16+
[project.urls]
17+
Documentation = "https://greenstalk.readthedocs.io/"
18+
Source = "https://github.com/justinmayhew/greenstalk"
19+
120
[build-system]
2-
requires = ["setuptools"]
3-
build-backend = "setuptools.build_meta"
21+
requires = ["hatchling"]
22+
build-backend = "hatchling.build"
23+
24+
[tool.hatch.version]
25+
path = "src/greenstalk/__init__.py"
26+
27+
[tool.hatch.build.targets.sdist]
28+
packages = ["src/greenstalk"]

setup.cfg

-26
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,2 @@
1-
[metadata]
2-
name = greenstalk
3-
version = attr: greenstalk.__version__
4-
author = Justin Mayhew
5-
author_email = mayhew@live.ca
6-
description = A Python 3 client for the beanstalkd work queue
7-
long_description = file: README.rst
8-
long_description_content_type = text/x-rst
9-
url = https://github.com/justinmayhew/greenstalk
10-
license = MIT
11-
license_files = LICENSE
12-
project_urls =
13-
Documentation = https://greenstalk.readthedocs.io/
14-
Source = https://github.com/justinmayhew/greenstalk
15-
classifiers =
16-
Intended Audience :: Developers
17-
License :: OSI Approved :: MIT License
18-
Operating System :: OS Independent
19-
Programming Language :: Python :: 3 :: Only
20-
21-
[options]
22-
python_requires = >=3.8
23-
packages = greenstalk
24-
package_dir =
25-
greenstalk = src/greenstalk
26-
271
[flake8]
282
max-line-length = 90

0 commit comments

Comments
 (0)