Skip to content

Commit

Permalink
fix(CI): Fixed poetry deprecated plugin. Manual installation required (
Browse files Browse the repository at this point in the history
  • Loading branch information
ignacio-penas authored Jan 23, 2025
1 parent 56fc82a commit a8fb4b0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 28 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,14 @@ jobs:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Generate test requirements
run: >
poetry export
-f requirements.txt
-o requirements.test.txt
--without-hashes
--without-urls
--with test
--with server
- name: Ensure export plugin
run: |
poetry self add poetry-plugin-export
- name: Generate server requirements
run: |
mkdir -p dist
poetry export -f requirements.txt -o requirements.test.txt --without-hashes --without-urls --with server --with test
- name: Install TOX
run: |
Expand Down Expand Up @@ -104,20 +103,19 @@ jobs:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Build Package
- name: Ensure export plugin
run: |
poetry build --format=wheel --no-interaction
cp ./dist/*.whl ./dist/nuvla_job_engine-latest-py3-none-any.whl
poetry self add poetry-plugin-export
- name: Generate server requirements
run: >
poetry export
-f requirements.txt
-o dist/requirements.txt
--without-hashes
--without-urls
--with server
run: |
mkdir -p dist
poetry export -f requirements.txt -o dist/requirements.txt --without-hashes --without-urls --with server
- name: Build Package
run: |
poetry build --format=wheel --no-interaction
cp ./dist/*.whl ./dist/nuvla_job_engine-latest-py3-none-any.whl
- name: Save wheel
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -179,4 +177,4 @@ jobs:
tags: >
nuvladev/job:${{ steps.extract_branch.outputs.branch }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,9 @@ jobs:
poetry build --no-interaction --format=wheel
- name: Generate server requirements
run: >
poetry export
-f requirements.txt
-o dist/requirements.txt
--without-hashes
--without-urls
--with server
run: |
poetry self add poetry-plugin-export
poetry export -f requirements.txt -o dist/requirements.txt --without-hashes --without-urls --with server
- name: Save wheel
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion local-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ IMAGE_ORG=${1:-local}
IMAGE_REPO=${2:-job}

# Export plugin will be removed from default poetry, we need to install it manually from pip
pip install poetry poetry-plugin-export
poetry self add poetry-plugin-export

export job_engine_version=$(poetry version -s)
export IMAGE_TAG_NAME=$IMAGE_ORG/$IMAGE_REPO:$job_engine_version
Expand Down

0 comments on commit a8fb4b0

Please sign in to comment.