Skip to content

Commit b478ce9

Browse files
authored
Modernize packaging (#157)
1 parent d05e34e commit b478ce9

File tree

4 files changed

+50
-48
lines changed

4 files changed

+50
-48
lines changed

MANIFEST.in

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

pyproject.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
1+
[build-system]
2+
build-backend = "hatchling.build"
3+
requires = ["hatchling>=1.27.0"]
4+
5+
[project]
6+
name = "cssselect"
7+
license = "BSD-3-Clause"
8+
license-files = ["LICENSE", "AUTHORS"]
9+
description = "cssselect parses CSS3 Selectors and translates them to XPath 1.0"
10+
readme = "README.rst"
11+
authors = [{ name = "Ian Bicking", email = "[email protected]" }]
12+
maintainers = [{ name = "Paul Tremberth", email = "[email protected]" }]
13+
requires-python = ">=3.9"
14+
classifiers = [
15+
"Development Status :: 4 - Beta",
16+
"Intended Audience :: Developers",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
23+
"Programming Language :: Python :: Implementation :: CPython",
24+
"Programming Language :: Python :: Implementation :: PyPy",
25+
]
26+
dynamic = ["version"]
27+
28+
[project.urls]
29+
"Homepage" = "https://github.com/scrapy/cssselect"
30+
31+
[tool.hatch.version]
32+
path = "cssselect/__init__.py"
33+
34+
[tool.hatch.build.targets.sdist]
35+
include = [
36+
"/cssselect",
37+
"/docs",
38+
"/tests",
39+
"/CHANGES",
40+
"/README.rst",
41+
"/tox.ini",
42+
]
43+
exclude = [
44+
"/docs/_build",
45+
]
46+
47+
[tool.hatch.build.targets.wheel]
48+
packages = ["cssselect"]
49+
150
[tool.bumpversion]
251
current_version = "1.3.0"
352
commit = true

setup.py

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

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ deps =
1818
{[testenv]deps}
1919
pylint==3.3.5
2020
commands =
21-
pylint {posargs: cssselect setup.py tests docs}
21+
pylint {posargs: cssselect tests docs}
2222

2323
[testenv:docs]
2424
changedir = docs

0 commit comments

Comments
 (0)