Skip to content

Python scraper based on AI

fix: pyproject

Marco Vinciguerra76ac0a2141d9
diff --git a/pyproject.toml b/pyproject.toml
index 353c4fda..6744ef50 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -108,30 +108,28 @@ screenshot_scraper = [
]
[build-system]
-requires = ["hatchling>=1.0.0"]
+requires = ["hatchling>=1.0.0", "hatch-vcs"]
build-backend = "hatchling.build"
-[tool.hatch.version]
-path = "pyproject.toml"
-
[tool.hatch.build]
-include = [
- "scrapegraphai/**/*.py",
- "scrapegraphai/**/*.typed",
- "/tests",
-]
+packages = ["scrapegraphai"]
exclude = [
"tests/**",
"examples/**",
]
+[tool.hatch.version]
+source = "vcs"
+
+[tool.hatch.build.hooks.vcs]
+version-file = "scrapegraphai/_version.py"
+
[tool.hatch.build.targets.wheel]
packages = ["scrapegraphai"]
[tool.hatch.build.targets.sdist]
include = [
"/scrapegraphai",
- "/tests",
"pyproject.toml",
"README.md",
"LICENSE",
diff --git a/scrapegraphai/__init__.py b/scrapegraphai/__init__.py
index 09643198..7ab88b26 100644
--- a/scrapegraphai/__init__.py
+++ b/scrapegraphai/__init__.py
@@ -1,4 +1,4 @@
"""
__init__.py file for scrapegraphai folder
"""
-__version__ = "1.33.5"
+__version__ = "1.33.7"
diff --git a/scrapegraphai/_version.py b/scrapegraphai/_version.py
new file mode 100644
index 00000000..54ca2ed0
--- /dev/null
+++ b/scrapegraphai/_version.py
@@ -0,0 +1,3 @@
+"""Version information."""
+__version__ = "1.33.7"
+version = __version__
\ No newline at end of file