Skip to content
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
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: release
on:
push:
tags:
- v*
branches:
- master
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
name: Release to PyPi
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.10
- name: Setup Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.2.0b1
- name: Setup release plugin
run: poetry plugin add poetry-dynamic-versioning-plugin
- name: Install pypi deps
run: poetry install
- name: Build
run: poetry build
- name: Publish to PyPi
run: poetry publish
20 changes: 10 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "polygon-api-client"
version = "1.0.0.beta1"
version = "0.0.0"
description = "Official Polygon.io REST and Websocket client."
authors = ["polygon.io"]
license = "MIT"
Expand Down Expand Up @@ -38,5 +38,12 @@ sphinx-rtd-theme = "^1.0.0"
sphinx-autodoc-typehints = "^1.18.1"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# so releasing doesn't have to touch the "version" in this file
# we have to use a beta release of poetry and this plugin:
# https://pypi.org/project/poetry-dynamic-versioning-plugin/
requires = ["poetry>=1.2.0b1", "poetry-dynamic-versioning-plugin"]
build-backend = "poetry.masonry.api"

[tool.poetry-dynamic-versioning]
enable = true
style = "semver"