Skip to content

Commit

Permalink
fix: version handling for pip package
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrittner committed Sep 7, 2024
1 parent 8d3a47e commit adb9122
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ jobs:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Package docker compose file
run: ./scripts/package_docker_compose.sh

- name: Build package
run: poetry build

- name: Extract version from pyproject.toml
id: get_version
run: |
Expand All @@ -43,6 +37,12 @@ jobs:
- name: Inject version
run: touch ./admyral/VERSION && echo "${{ steps.get_version.outputs.VERSION }}" > ./admyral/VERSION

- name: Package docker compose file
run: ./scripts/package_docker_compose.sh

- name: Build package
run: poetry build

- name: Publish the package with poetry if the version has changed
if: steps.get_version.outputs.VERSION != steps.get_pypi_version.outputs.LATEST_VERSION
run: poetry publish -u __token__ -p '${{ secrets.PYPI_API_TOKEN }}'
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

2 changes: 1 addition & 1 deletion deploy/docker-compose/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ADMYRAL_VERSION=0.1.17
ADMYRAL_VERSION=0.1.18

# Optional but required if ai_action action is used
OPENAI_API_KEY=""
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "admyral"
version = "0.1.17"
version = "0.1.18"
description = ""
authors = ["Daniel Grittner <[email protected]>"]
readme = "README.md"
Expand All @@ -18,7 +18,6 @@ include = [
"admyral",
"*.txt",
"*.md",
"deploy/docker-compose"
]

[tool.poetry.scripts]
Expand Down

0 comments on commit adb9122

Please sign in to comment.