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
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Build package
run: |
# You would normally do 'python -m build sdist' or 'python setup.py sdist bdist_wheel'
python build.py sdist
python -m build sdist

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Documentation Crawler and Converter v1.0.2
# Documentation Crawler and Converter v1.0.3

This tool crawls a documentation website and converts the pages into a single Markdown document. It intelligently removes common sections that appear across multiple pages to avoid duplication, including them once at the end of the document.

Expand Down
23 changes: 16 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
[build-system]
# 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]
name = "libcrawler"
dynamic = ["version"]
description = "A tool to crawl documentation and convert to Markdown."
authors = [
{ name="Robert Collins", email="roberto.tomas.cuentas@gmail.com" }
]
license = { text = "LGPL-3.0-only" }
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: OS Independent",
]
# Dependencies are now listed directly here, not in a separate file
dependencies = [
"aiofiles~=24.1.0",
"beautifulsoup4~=4.12.3",
"datasketch~=1.6.5",
"markdownify~=0.13.1",
"playwright~=1.49.1",
"Requests~=2.32.3"
]

# This tells the build system that version and dependencies are defined elsewhere.
dynamic = ["version", "dependencies"]
[tool.setuptools]
# This tells the build system to automatically include all package data,
# removing the need for MANIFEST.in
include-package-data = true

[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]
# This tells the build system exactly how to find the version
version = {attr = "libcrawler.version.__version__"}
dependencies = {file = ["requirements.txt"]}

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