Skip to content

Commit 56c3697

Browse files
authored
Merge pull request #63 from Mastercard/cormacdalton-publish
Create python-publish.yml
2 parents c084f2e + be8ca25 commit 56c3697

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
release-build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.8"
20+
21+
- name: Install dependencies
22+
run: |
23+
pip3 install -r requirements.txt
24+
pip3 install wheel
25+
pip3 install pytest
26+
pip3 install twine
27+
28+
- name: Build and Test
29+
run: |
30+
python3 setup.py build
31+
pytest
32+
33+
- name: Publish to PyPI
34+
run: |
35+
python3 setup.py sdist bdist_wheel &> package_setup.log
36+
curl --connect-timeout 10 -kI https://test.pypi.org
37+
twine upload -u ${{ secrets.USER }} -p ${{ secrets.PASS }} 'dist/*'

oauth1/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# -*- coding: utf-8 -*-
2-
__version__ = '1.9.0'
2+
__version__ = '1.9.1'

0 commit comments

Comments
 (0)