Skip to content

Commit 9f4a8aa

Browse files
authored
Setup poetry and github publish action
* Add publish job * Add poetry * Update version * Fix PyPi package info * test beta version PyPi * test beta version PyPi * Use real PyPi on next tag release * Add tornado * Switch back to test * Yet another test * Py 35 * Fix Base URL * beta 7 * Losen stripe requirements (py 35) * Fix string format py 35 * beta 9
1 parent 73d96db commit 9f4a8aa

File tree

5 files changed

+531
-2
lines changed

5 files changed

+531
-2
lines changed

.github/workflows/main.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Python package
2+
on:
3+
push:
4+
tags:
5+
- 'v*.*.*'
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Build and publish to pypi
12+
uses: JRubics/[email protected]
13+
with:
14+
# pypi_token: ${{ secrets.PYPI_TOKEN }}
15+
repository_name: 'testpypi'
16+
repository_url: 'https://test.pypi.org/legacy/'
17+
pypi_token: ${{ secrets.TEST_PYPI_TOKEN }}

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.pythonPath": ".venv/bin/python"
3+
}

async_stripe/resources/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from async_stripe.patched_stripe import real_stripe
66

77

8-
BASE_URL = 'https://api.stripe.com/v1/' # :TODO: Construct urls from real_stripe
9-
8+
VERSION = "v1"
9+
BASE_URL = "{}/{}/".format(real_stripe.api_base, VERSION)
1010

1111
client = AsyncHTTPClient()
1212

0 commit comments

Comments
 (0)