trying a new python version aware packaging

This commit is contained in:
Rajat Sen
2024-10-17 21:10:49 +00:00
parent 6234168fe9
commit 7b8d8c57eb
2 changed files with 818 additions and 907 deletions
+14 -8
View File
@@ -1,31 +1,37 @@
name: Poetry publish name: Poetry publish
on: on:
push: push:
branches: [ "master" ] branches: ["master"]
pull_request: pull_request:
branches: [ "master" ] branches: ["master"]
jobs: jobs:
buildPush: buildPush:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: '3.11'
extras: 'torch'
- python-version: '3.10'
extras: 'pax'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.10' python-version: ${{ matrix.python-version }}
- name: Install Poetry - name: Install Poetry
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install poetry pip install poetry
# use the hardcoded version number for now. if this is merged to the main repo, you can uncomment these lines to automatically tag the version number with the github run number
# e.g. poetry version 0.1.${{ github.run_number }}
- name: Set Version number - name: Set Version number
run: | run: |
poetry version 1.2.0 poetry version 1.2.1 # Or use dynamic versioning if needed
- name: Build and Publish to PyPI - name: Build and Publish to PyPI
run: | run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry publish --build poetry build --extras ${{ matrix.extras }}
poetry publish --build
Generated
+804 -899
View File
File diff suppressed because it is too large Load Diff