Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support py3.12 #22

Merged
merged 5 commits into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: ["macos-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- os: "windows-latest"
python-version: "3.8"
- os: "macos-latest"
- os: "ubuntu-latest"
python-version: "3.8"

defaults:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
# if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/[email protected]
with:
version: 1.5.1
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
Expand All @@ -60,16 +60,17 @@ jobs:
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry export -f requirements.txt --without-hashes --only main,dev -o requirements.txt
if [ $OS_VAR = 'Linux' ]
then
mv requirements.txt requirements-temp.txt
sed '/nvidia-/d' requirements-temp.txt \
| sed -r 's/torch==[0-9].[0-9].[0-9]/&+cpu/' \
| sed '1s/^/--extra-index-url https:\/\/download.pytorch.org\/whl\/cpu\n/' > requirements.txt
fi
poetry install --no-interaction --with main,dev
# poetry export -f requirements.txt --without-hashes --only main,dev -o requirements.txt
# if [ $OS_VAR = 'Linux' ]
# then
# mv requirements.txt requirements-temp.txt
# sed '/nvidia-/d' requirements-temp.txt \
# | sed -r 's/torch==[0-9].[0-9].[0-9]/&+cpu/' \
# | sed '1s/^/--extra-index-url https:\/\/download.pytorch.org\/whl\/cpu\n/' > requirements.txt
# fi

python -m venv .venv && source $VENV && pip install -r requirements.txt
# python -m venv .venv && source $VENV && pip install -r requirements.txt
env:
OS_VAR: ${{ runner.os }}
- name: Install project
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Poetry Action
uses: snok/[email protected]
with:
version: 1.5.1
version: 1.7.1
- name: Build and Publish to PyPI
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
Expand Down
Loading
Loading