File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : release
2+ on :
3+ push :
4+ tags :
5+ - v*
6+ branches :
7+ - master
8+ permissions :
9+ contents : read
10+ jobs :
11+ test :
12+ runs-on : ubuntu-latest
13+ name : Release to PyPi
14+ steps :
15+ - uses : actions/checkout@v3
16+ - name : Setup Python
17+ uses : actions/setup-python@v3
18+ with :
19+ python-version : 3.10
20+ - name : Setup Poetry
21+ uses : abatilo/actions-poetry@v2.0.0
22+ with :
23+ poetry-version : 1.2.0b1
24+ - name : Setup release plugin
25+ run : poetry plugin add poetry-dynamic-versioning-plugin
26+ - name : Install pypi deps
27+ run : poetry install
28+ - name : Build
29+ run : poetry build
30+ - name : Publish to PyPi
31+ run : poetry publish
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " polygon-api-client"
3- version = " 1. 0.0.beta1 "
3+ version = " 0.0.0 "
44description = " Official Polygon.io REST and Websocket client."
55authors = [" polygon.io" ]
66license = " MIT"
@@ -38,5 +38,12 @@ sphinx-rtd-theme = "^1.0.0"
3838sphinx-autodoc-typehints = " ^1.18.1"
3939
4040[build-system ]
41- requires = [" poetry-core>=1.0.0" ]
42- build-backend = " poetry.core.masonry.api"
41+ # so releasing doesn't have to touch the "version" in this file
42+ # we have to use a beta release of poetry and this plugin:
43+ # https://pypi.org/project/poetry-dynamic-versioning-plugin/
44+ requires = [" poetry>=1.2.0b1" , " poetry-dynamic-versioning-plugin" ]
45+ build-backend = " poetry.masonry.api"
46+
47+ [tool .poetry-dynamic-versioning ]
48+ enable = true
49+ style = " semver"
You can’t perform that action at this time.
0 commit comments