Skip to content

Commit

Permalink
Fix sotoki CD build temporarily
Browse files Browse the repository at this point in the history
This will be reworked once python bootstrap is adopted
  • Loading branch information
benoit74 committed May 7, 2024
1 parent 79bacae commit 1bc3b9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ jobs:
architecture: x64

- name: Build packages
# zimscraperlib is needed in build since its a requirement for dependencies.py
# + we do not build in isolated env for simplicity before moving to Python bootstrap
run: |
pip install -U pip build
python -m build --sdist --wheel
pip install -U pip build zimscraperlib wheel setuptools
python -m build -n --sdist --wheel
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1.8
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import sys
import pathlib
from setuptools import setup, find_packages
from setuptools import setup, find_namespace_packages

root_dir = pathlib.Path(__file__).parent

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

0 comments on commit 1bc3b9b

Please sign in to comment.