From ed522e9cc929f18e29a37e03fd845dcaf64670b7 Mon Sep 17 00:00:00 2001 From: mateuslatrova Date: Thu, 19 Oct 2023 21:11:47 -0300 Subject: [PATCH] add workflow for automatic deploy on pypi --- .github/workflows/pypi-publish.yml | 14 ++++++++++++++ pyproject.toml | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pypi-publish.yml diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml new file mode 100644 index 0000000..eabffa5 --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,14 @@ +name: Python package +on: + release: + types: [published] +jobs: + build_and_publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.17 + with: + pypi_token: ${{ secrets.PYPI_TOKEN }} + ignore_dev_requirements: "yes" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 123f4df..ed8e7e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] -name = "pipreqs" -version = "0.4.13" +name = "pipreqs-test" +version = "45.1.47" description = "Pip requirements.txt generator based on imports in project" authors = ["Vadim Kravcenko "] license = "Apache-2.0"