Skip to content

Commit ff3ce06

Browse files
authored
Migrate to hatchling. (#243)
1 parent f8d0419 commit ff3ce06

File tree

5 files changed

+54
-71
lines changed

5 files changed

+54
-71
lines changed

MANIFEST.in

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

conftest.py

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

pyproject.toml

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,62 @@
1+
[build-system]
2+
requires = ["hatchling>=1.27.0"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "w3lib"
7+
description = "Library of web-related functions"
8+
readme = "README.rst"
9+
license = "BSD-3-Clause"
10+
license-files = ["LICENSE"]
11+
authors = [
12+
{ name = "Scrapy project", email = "info@scrapy.org" },
13+
]
14+
classifiers = [
15+
"Development Status :: 5 - Production/Stable",
16+
"Intended Audience :: Developers",
17+
"Operating System :: OS Independent",
18+
"Programming Language :: Python",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.13",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: Implementation :: CPython",
23+
"Programming Language :: Python :: Implementation :: PyPy",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Topic :: Internet :: WWW/HTTP",
28+
"Topic :: Software Development :: Libraries :: Python Modules",
29+
]
30+
requires-python = ">=3.9"
31+
dynamic = ["version"]
32+
33+
[project.urls]
34+
Homepage = "https://github.com/scrapy/w3lib"
35+
Documentation = "https://w3lib.readthedocs.io/en/latest/"
36+
Source = "https://github.com/scrapy/w3lib"
37+
Tracker = "https://github.com/scrapy/w3lib/issues"
38+
Changelog = "https://github.com/scrapy/w3lib/commits/master/"
39+
releasenotes = "https://w3lib.readthedocs.io/en/latest/#changelog"
40+
41+
[tool.hatch.version]
42+
path = "w3lib/__init__.py"
43+
44+
[tool.hatch.build.targets.sdist]
45+
include = [
46+
"/docs",
47+
"/w3lib",
48+
"/tests",
49+
"/NEWS",
50+
"/codecov.yml",
51+
"/tox.ini",
52+
]
53+
154
[tool.bumpversion]
255
current_version = "2.3.1"
356
commit = true
457
tag = true
558
tag_name = "v{new_version}"
659

7-
[[tool.bumpversion.files]]
8-
filename = "setup.py"
9-
1060
[[tool.bumpversion.files]]
1161
filename = "w3lib/__init__.py"
1262

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
@@ -30,7 +30,7 @@ deps =
3030
{[testenv]deps}
3131
pylint==3.3.6
3232
commands =
33-
pylint conftest.py docs setup.py tests w3lib
33+
pylint docs tests w3lib
3434

3535
[testenv:docs]
3636
changedir = docs

0 commit comments

Comments
 (0)