File tree Expand file tree Collapse file tree 4 files changed +43
-5
lines changed Expand file tree Collapse file tree 4 files changed +43
-5
lines changed Original file line number Diff line number Diff line change 9
9
pull_request :
10
10
branches : [ develop ]
11
11
12
+ workflow_call : {}
13
+
14
+
12
15
jobs :
13
16
build :
14
-
15
17
runs-on : ubuntu-latest
16
18
strategy :
17
19
fail-fast : false
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches : [ 'feature/pypi' ]
6
+ tags : [ '**' ]
7
+
8
+ jobs :
9
+ build :
10
+ uses : ./.github/workflows/build.yml
11
+
12
+ release :
13
+ needs :
14
+ - build
15
+ runs-on : ubuntu-latest
16
+ permissions :
17
+ id-token : write
18
+ contents : read
19
+ strategy :
20
+ fail-fast : false
21
+
22
+ steps :
23
+ - uses : actions/checkout@v4
24
+ - name : Set up Python
25
+ uses : actions/setup-python@v5
26
+ with :
27
+ python-version : 3.12
28
+
29
+ - name : Install tools
30
+ run : |
31
+ pip install build twine
32
+
33
+ - name : Build project
34
+ run : python -m build
35
+
36
+ - name : Upload to PyPI
37
+ env :
38
+ TWINE_USERNAME : __token__
39
+ TWINE_PASSWORD : ${{ secrets.TWINE_API_KEY }}
40
+ run : twine upload dist/*
Original file line number Diff line number Diff line change @@ -4,6 +4,3 @@ universal = 1
4
4
[tool:pytest]
5
5
testpaths = tests
6
6
flake8-max-line-length = 120
7
-
8
- [metadata]
9
- description_file = README.rst
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ def readme():
50
50
'Operating System :: MacOS' ,
51
51
'Operating System :: Unix' ,
52
52
'Programming Language :: Python' ,
53
- 'Programming Language :: Python :: 2' ,
54
53
'Programming Language :: Python :: 3' ,
55
54
'Topic :: Software Development :: Libraries :: Python Modules' ,
56
55
]
You can’t perform that action at this time.
0 commit comments