From c3ae1b40d9d52cb3179c7fda415025ea57f4302c Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Wed, 1 Apr 2026 10:53:59 -0400 Subject: [PATCH] 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. --- .gitignore | 1 + pyproject.toml | 19 ++++--------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 33d6c0c..d1925c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__ dist/ +*.egg-info/ *.pyc diff --git a/pyproject.toml b/pyproject.toml index 5977377..1f761c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" +requires = ["setuptools>=75.0"] +build-backend = "setuptools.build_meta" [project] name = "instaparser" @@ -16,7 +16,6 @@ keywords = ["instaparser", "article", "parser", "web-scraping", "content-extract classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", @@ -49,18 +48,8 @@ Repository = "https://github.com/Instapaper/instaparser-python.git" Issues = "https://github.com/Instapaper/instaparser-python/issues" Changelog = "https://github.com/Instapaper/instaparser-python/blob/main/CHANGELOG.md" -[tool.hatch.version] -path = "instaparser/__init__.py" - -[tool.hatch.build.targets.sdist] -include = [ - "instaparser/", - "LICENSE", - "README.md", -] - -[tool.hatch.build.targets.wheel] -packages = ["instaparser"] +[tool.setuptools.dynamic] +version = {attr = "instaparser.__version__"} [tool.pytest.ini_options] testpaths = ["tests"]