From 13d6f527b77b7b574bc49add71eaf642a5e4b1c5 Mon Sep 17 00:00:00 2001 From: Marcel Arns Date: Fri, 27 Oct 2023 08:35:40 +0200 Subject: [PATCH 1/3] ci(actions): bump checkout action --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa3c887..e7baedb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: timeout-minutes: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: moneymeets/action-setup-python-poetry@master From ff2aff5fda9f310719979a4c4b73557d16b648a9 Mon Sep 17 00:00:00 2001 From: Marcel Arns Date: Fri, 27 Oct 2023 08:36:52 +0200 Subject: [PATCH 2/3] chore(poetry): add information for python package + define proper local version --- pyproject.toml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7021881..791b25d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,23 @@ [tool.poetry] name = "youtrack-sdk" -version = "0.1.0" -description = "" -authors = [] +version = "1.1+SNAPSHOT" +description = "YouTrack SDK" +authors = ["moneymeets "] +readme = "README.md" +repository = "https://github.com/moneymeets/youtrack-sdk" +packages = [ + { include = "youtrack_sdk" }, +] +keywords = ["youtrack", "sdk"] +license = "MIT" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.12", + "Topic :: Software Development :: Libraries :: Python Modules", + "License :: OSI Approved :: MIT License", +] [tool.poetry.dependencies] python = "~3.12" From 9e8d4ae4b970a7002c9c4e8f0b508a0afeb89f0e Mon Sep 17 00:00:00 2001 From: Marcel Arns Date: Fri, 27 Oct 2023 08:37:25 +0200 Subject: [PATCH 3/3] ci(actions): add workflow to publish python package to PyPI --- .github/workflows/publish.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..6adf1ee --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +name: Publish +on: + push: + branches: + - master + +jobs: + publish-package: + runs-on: ubuntu-22.04 + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + + - uses: moneymeets/action-setup-python-poetry@master + + - name: Publish package + run: | + sed -i -e "s/1+SNAPSHOT/0.$(date +"%Y%m%d%H%M")+$(git rev-parse --verify --short=7 HEAD)/" pyproject.toml + poetry publish --build + env: + POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.POETRY_HTTP_BASIC_PYPI_USERNAME }} + POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.POETRY_HTTP_BASIC_PYPI_PASSWORD }}