Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/md 7041 publish python package #34

Merged
merged 3 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
timeout-minutes: 5

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: moneymeets/action-setup-python-poetry@master

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
zyv marked this conversation as resolved.
Show resolved Hide resolved
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 }}
21 changes: 18 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
[tool.poetry]
name = "youtrack-sdk"
version = "0.1.0"
description = ""
authors = []
version = "1.1+SNAPSHOT"
description = "YouTrack SDK"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "YouTrack SDK"
description = "YouTrack API SDK"

To make it consistent with the description of the GitHub repository?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that YouTrack API SDK is the correct description. For example, boto3 is just AWS SDK for Python, not AWS API SDK. So maybe we should update repository description instead of package description.

authors = ["moneymeets <[email protected]>"]
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",
zyv marked this conversation as resolved.
Show resolved Hide resolved
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
]

[tool.poetry.dependencies]
python = "~3.12"
Expand Down