Skip to content

Commit c6397d8

Browse files
committed
Merge branch 'v1.x' into pr/110
2 parents 0091d01 + 54d3f68 commit c6397d8

26 files changed

+944
-348
lines changed

.github/workflows/python-publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflows will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Publish Python Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.x'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine
25+
- name: Build and publish
26+
env:
27+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29+
run: |
30+
python setup.py sdist bdist_wheel
31+
twine upload dist/*

.travis.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
1-
sudo: false
21
language: python
3-
python:
4-
- "2.7"
5-
- "3.5"
6-
- "3.6"
7-
# - "3.7" It doesn't look like Travis is supporting v3.7 yet
8-
install: "script/setup"
9-
script: "script/ci"
102
cache: pip
3+
4+
install: script/setup
5+
6+
jobs:
7+
include:
8+
- name: "Lint"
9+
python: 3.8
10+
script: script/test lint
11+
12+
- name: "Tests on Python 2.7"
13+
python: 2.7
14+
script: script/ci
15+
16+
- name: "Tests on Python 3.5"
17+
python: 3.5
18+
script: script/ci
19+
20+
- name: "Tests on Python 3.6"
21+
python: 3.6
22+
script: script/ci
23+
24+
- name: "Tests on Python 3.7"
25+
python: 3.7
26+
script: script/ci
27+
28+
- name: "Tests on Python 3.8"
29+
python: 3.8
30+
script: script/ci

0 commit comments

Comments
 (0)