File tree Expand file tree Collapse file tree 2 files changed +65
-2
lines changed Expand file tree Collapse file tree 2 files changed +65
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Upload Python Package
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ permissions :
8+ contents : read
9+
10+ env :
11+ PYTHON_VERSION : " 3.8"
12+ POETRY_CORE_VERSION : " 1.9.0"
13+
14+ jobs :
15+ release-build :
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - uses : actions/setup-python@v5
22+ with :
23+ python-version : ${{ env.PYTHON_VERSION }}
24+
25+ - name : Build release distributions
26+ run : |
27+ python -m pip install build poetry-core==${{ env.POETRY_CORE_VERSION }}
28+ python -m build
29+
30+ - name : Upload distributions
31+ uses : actions/upload-artifact@v4
32+ with :
33+ name : release-dists
34+ path : dist/
35+
36+ pypi-publish :
37+ runs-on : ubuntu-latest
38+
39+ needs :
40+ - release-build
41+
42+ permissions :
43+ # IMPORTANT: this permission is mandatory for trusted publishing
44+ id-token : write
45+
46+ environment :
47+ name : test_pypi
48+ url : https://test.pypi.org/p/toggl_python
49+
50+ steps :
51+ - name : Retrieve release distributions
52+ uses : actions/download-artifact@v4
53+ with :
54+ name : release-dists
55+ path : dist/
56+
57+ - name : Publish release distributions to PyPI
58+ uses : pypa/gh-action-pypi-publish@release/v1
59+ with :
60+ repository-url : https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " toggl_python"
3- version = " 0.2.9 "
3+ version = " 0.3.0a0 "
44description = " Python wrapper for Toggl API."
55authors = [
" Evrone <[email protected] >" ]
66maintainers = [
" Nifadev Vadim <[email protected] >" ]
@@ -9,16 +9,19 @@ homepage = "https://github.com/evrone/toggl_python"
99repository = " https://github.com/evrone/toggl_python"
1010documentation = " https://toggl-python.readthedocs.io"
1111classifiers = [
12- " Development Status :: 2 - Pre-Alpha " ,
12+ " Development Status :: 4 - Beta " ,
1313 " Intended Audience :: Developers" ,
1414 " License :: OSI Approved :: MIT License" ,
1515 " Natural Language :: English" ,
16+ " Operating System :: OS Independent" ,
1617 " Programming Language :: Python :: 3" ,
18+ " Programming Language :: Python :: 3 :: Only" ,
1719 " Programming Language :: Python :: 3.8" ,
1820 " Programming Language :: Python :: 3.9" ,
1921 " Programming Language :: Python :: 3.10" ,
2022 " Programming Language :: Python :: 3.11" ,
2123 " Programming Language :: Python :: 3.12" ,
24+ " Typing :: Typed" ,
2225]
2326
2427
You can’t perform that action at this time.
0 commit comments