Skip to content

Commit 1bc3b9b

Browse files
committed
Fix sotoki CD build temporarily
This will be reworked once python bootstrap is adopted
1 parent 79bacae commit 1bc3b9b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/Publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ jobs:
2121
architecture: x64
2222

2323
- name: Build packages
24+
# zimscraperlib is needed in build since its a requirement for dependencies.py
25+
# + we do not build in isolated env for simplicity before moving to Python bootstrap
2426
run: |
25-
pip install -U pip build
26-
python -m build --sdist --wheel
27+
pip install -U pip build zimscraperlib wheel setuptools
28+
python -m build -n --sdist --wheel
2729
2830
- name: Upload to PyPI
2931
uses: pypa/gh-action-pypi-publish@release/v1.8

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import sys
66
import pathlib
7-
from setuptools import setup, find_packages
7+
from setuptools import setup, find_namespace_packages
88

99
root_dir = pathlib.Path(__file__).parent
1010

@@ -31,7 +31,7 @@ def read(*names, **kwargs):
3131
url="https://github.com/openzim/sotoki",
3232
keywords="kiwix zim offline stackechange stackoverflow",
3333
license="GPLv3+",
34-
packages=find_packages("src"),
34+
packages=find_namespace_packages(where="src"),
3535
package_dir={"": "src"},
3636
install_requires=[
3737
line.strip()

0 commit comments

Comments
 (0)