Skip to content

Commit d485dc1

Browse files
authored
Switch to setuptools as a build backend (#16)
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 d485dc1

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
__pycache__
22
dist/
3+
*.egg-info/
34
*.pyc

pyproject.toml

Lines changed: 4 additions & 15 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"
@@ -16,7 +16,6 @@ keywords = ["instaparser", "article", "parser", "web-scraping", "content-extract
1616
classifiers = [
1717
"Development Status :: 4 - Beta",
1818
"Intended Audience :: Developers",
19-
"License :: OSI Approved :: MIT License",
2019
"Operating System :: OS Independent",
2120
"Programming Language :: Python :: 3",
2221
"Programming Language :: Python :: 3.10",
@@ -49,18 +48,8 @@ Repository = "https://github.com/Instapaper/instaparser-python.git"
4948
Issues = "https://github.com/Instapaper/instaparser-python/issues"
5049
Changelog = "https://github.com/Instapaper/instaparser-python/blob/main/CHANGELOG.md"
5150

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"]
51+
[tool.setuptools.dynamic]
52+
version = {attr = "instaparser.__version__"}
6453

6554
[tool.pytest.ini_options]
6655
testpaths = ["tests"]

0 commit comments

Comments
 (0)