Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build-system]
requires = [ "setuptools-scm[toml]>=8.0", "wheel" ]
# We remove setuptools-scm because the version is now explicitly sourced from your version.py file.
requires = [ "setuptools>=61.0", "wheel" ]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -15,11 +16,17 @@ classifiers = [
"Operating System :: OS Independent",
]

# This tells the build system that version and dependencies are defined elsewhere.
dynamic = ["version", "dependencies"]

[tool.setuptools.packages.find]
where = ["src"]
exclude = ["libcrawler.egg_info", "libcrawler.tests"]

# This new section provides the explicit instructions for finding the dynamic fields.
[tool.setuptools.dynamic]
version = {attr = "libcrawler.version.__version__"}
dependencies = {file = ["requirements.txt"]}

[project.scripts]
crawl-docs = "libcrawler.__main__:main"
2 changes: 1 addition & 1 deletion src/libcrawler/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version_info__ = ('1', '0', '0')
__version_info__ = ('1', '0', '1')
__version__ = '.'.join(__version_info__)