Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
[pypi] test pack & upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhuanchen committed Mar 16, 2022
1 parent b6050dd commit 99adbdc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/maixpy3_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@master
- name: Get submodules
run: |
git submodule update --init --recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
- uses: actions/setup-python@v2
with:
version: ${{ matrix.python-version }}
python-version: 3.8.5
- name: Install dependencies
run: |
sudo apt update
Expand All @@ -33,7 +30,8 @@ jobs:
unzip -q -o v83x_linux_x86_python3.8_toolchain.zip -d /opt/
- name: Test desktop build
run: |
python3 setup.py sdist build
python3 -m pip install .
python3 setup.py sdist
- name: Test maix_v83x build
run: |
source /opt/v83x_linux_x86_python3.8_toolchain/envsetup.sh
Expand All @@ -42,3 +40,6 @@ jobs:
run: |
source /opt/r329_linux_x86_python3.9_toolchain/envsetup.sh
python3.9 setup.py bdist_wheel maix_r329
- name: Ready Publish distribution 📦 to PyPI
run: |
ls -l dist/*
13 changes: 6 additions & 7 deletions .github/workflows/maixpy3_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@master
- name: Get submodules
run: |
git submodule update --init --recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
- uses: actions/setup-python@v2
with:
version: ${{ matrix.python-version }}
python-version: 3.8.5
- name: Install dependencies
run: |
sudo apt update
Expand All @@ -35,7 +32,8 @@ jobs:
unzip -q -o v83x_linux_x86_python3.8_toolchain.zip -d /opt/
- name: Test desktop build
run: |
python3 setup.py sdist build
python3 -m pip install .
python3 setup.py sdist
- name: Test maix_v83x build
run: |
source /opt/v83x_linux_x86_python3.8_toolchain/envsetup.sh
Expand All @@ -48,4 +46,5 @@ jobs:
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
20 changes: 20 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@

graft docs
graft envs
graft tests

graft ext_modules
prune ext_modules/_maix_speech/Maix-Speech/.git
prune ext_modules/_maix_speech/Maix-Speech/assets
prune ext_modules/_maix_speech/Maix-Speech/projects
prune ext_modules/_maix_speech/Maix-Speech/tools

prune .git
prune tests

prune ext_modules/libmaix/assets
prune ext_modules/libmaix/examples
prune ext_modules/libmaix/tools

recursive-include ext_modules/libmaix/components/libmaix/include *.h
recursive-include ext_modules/libmaix/components/maix_cv_image/include *.h
recursive-include ext_modules/libmaix/components/libmaix/lib/arch/desktop/ *

global-exclude __pycache__ *.log *.pyc

global-exclude *.py[cod]

0 comments on commit 99adbdc

Please sign in to comment.