Skip to content

Commit 6b8e923

Browse files
committed
Switch to setuptools as a build backend
This is a simpler build system for our basic package, and it's built into pip so that's one less dependency.
1 parent 0d10112 commit 6b8e923

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["hatchling"]
3-
build-backend = "hatchling.build"
2+
requires = ["setuptools>=75.0"]
3+
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "instaparser"
@@ -49,18 +49,8 @@ Repository = "https://github.com/Instapaper/instaparser-python.git"
4949
Issues = "https://github.com/Instapaper/instaparser-python/issues"
5050
Changelog = "https://github.com/Instapaper/instaparser-python/blob/main/CHANGELOG.md"
5151

52-
[tool.hatch.version]
53-
path = "instaparser/__init__.py"
54-
55-
[tool.hatch.build.targets.sdist]
56-
include = [
57-
"instaparser/",
58-
"LICENSE",
59-
"README.md",
60-
]
61-
62-
[tool.hatch.build.targets.wheel]
63-
packages = ["instaparser"]
52+
[tool.setuptools.dynamic]
53+
version = {attr = "instaparser.__version__"}
6454

6555
[tool.pytest.ini_options]
6656
testpaths = ["tests"]

0 commit comments

Comments
 (0)