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/publish python package #6

Merged
merged 2 commits into from
Oct 8, 2024
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
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-24.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")/" pyproject.toml
git rev-parse HEAD > VERSION.txt
poetry publish --build
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
[tool.poetry]
name = "spec2sdk"
version = "0.1.0"
version = "1.1+SNAPSHOT"
description = "Generate Pydantic models and API client code from OpenAPI 3.x specifications"
authors = ["moneymeets <service@moneymeets.com>"]
readme = "README.md"
repository = "https://github.com/moneymeets/spec2sdk"
packages = [
{ include="spec2sdk" },
]
keywords = ["openapi", "pydantic", "code-generator", "openapi-codegen"]
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"
Expand Down