This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch exp/poetry
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit ff429a39134c74611b0661137531c732a8dfd693
Author: bossenti <[email protected]>
AuthorDate: Tue Aug 1 20:26:44 2023 +0200

    ci: adapt GitHub deployment workflow to use poetry as well
---
 .github/workflows/pypi-deployment.yml    | 11 +++++++----
 streampipes-client-python/pyproject.toml |  6 ++++++
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/pypi-deployment.yml 
b/.github/workflows/pypi-deployment.yml
index 05db1b24a..d54cf1183 100644
--- a/.github/workflows/pypi-deployment.yml
+++ b/.github/workflows/pypi-deployment.yml
@@ -32,17 +32,20 @@ jobs:
         with:
           python-version: 3.8
 
+      - name: Install and configure Poetry
+        uses: snok/install-poetry@v1
+        with:
+          version: 1.5.1
+
       - name: Install dependencies
         working-directory: ./streampipes-client-python
         run: |
-          python -m pip install --upgrade pip 
-          pip install build twine
-          pip install -e ".[docs]"
+          poetry install --with deployment,docs --all-extras
 
       - name: Build package
         working-directory: ./streampipes-client-python
         run: |
-          python -m build
+          poetry build
           twine check --strict dist/*
 
       - name: Publish package
diff --git a/streampipes-client-python/pyproject.toml 
b/streampipes-client-python/pyproject.toml
index d5eb6673a..0862e2d50 100644
--- a/streampipes-client-python/pyproject.toml
+++ b/streampipes-client-python/pyproject.toml
@@ -83,6 +83,12 @@ pandas-stubs = "2.0.0.230412"
 types-Jinja2 = "2.11.9"
 types-requests = "2.31.0.0"
 
+[tool.poetry.group.deployment]
+optional = true
+
+[tool.poetry.group.deployment.dependencies]
+twine = "4.0.2"
+
 [[tool.poetry.source]]
 name = "PyPI"
 priority = "primary"

Reply via email to