Skip to content

Commit bbb4549

Browse files
committed
Merge branch 'feature/pypi' into develop
2 parents aab15ba + e9e4f42 commit bbb4549

File tree

4 files changed

+43
-5
lines changed

4 files changed

+43
-5
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ on:
99
pull_request:
1010
branches: [ develop ]
1111

12+
workflow_call: {}
13+
14+
1215
jobs:
1316
build:
14-
1517
runs-on: ubuntu-latest
1618
strategy:
1719
fail-fast: false

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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/*

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ universal = 1
44
[tool:pytest]
55
testpaths = tests
66
flake8-max-line-length = 120
7-
8-
[metadata]
9-
description_file = README.rst

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def readme():
5050
'Operating System :: MacOS',
5151
'Operating System :: Unix',
5252
'Programming Language :: Python',
53-
'Programming Language :: Python :: 2',
5453
'Programming Language :: Python :: 3',
5554
'Topic :: Software Development :: Libraries :: Python Modules',
5655
]

0 commit comments

Comments
 (0)