From e6be0ab4948fdee650d81e87dcd3eaa8a8bbefce Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Mon, 1 Aug 2022 22:16:49 +0200 Subject: [PATCH] Setting up setuptools --- README.md | 5 +++++ pyproject.toml | 16 ++++++++++++++++ scraperoog/__init__.py | 0 scrape.py => scraperoog/scrape.py | 0 4 files changed, 21 insertions(+) create mode 100644 pyproject.toml create mode 100644 scraperoog/__init__.py rename scrape.py => scraperoog/scrape.py (100%) diff --git a/README.md b/README.md index 0bffcbb..7c142ba 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # Requirements `apt install python3-pydantic python3-httpx python3-bs4 python3-tqdm locales-all && sudo locale-gen` + +# Windows build +1. install wine +2. create venv and `pip install .` +3. `wine pyinstaller --paths=venv/lib/python3.10/site-packages/ --collect-submodules=lxml --onefile scraperoog/scrape.py` diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b62654b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[project] +name = "scraperoog" +version = "0.0.2" +dependencies = [ + "tqdm", + "bs4", + "lxml", + "httpx", + "pydantic", +] + +[tool.setuptools.packages] +find = {} + +[project.scripts] +scraperoog = "scraperoog.scrape:main" diff --git a/scraperoog/__init__.py b/scraperoog/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/scrape.py b/scraperoog/scrape.py similarity index 100% rename from scrape.py rename to scraperoog/scrape.py