Skip to content

Commit fd82a59

Browse files
authored
CI: publish to test.pypi.org, normal commit building CI, release CI part 2 (#12)
* Disable linter * Use versioneer, when the project is tagged, project version also updates see https://github.com/python-versioneer/python-versioneer * CI: publish to test.pypi.org small patch should publish to test.pypi.org first. * Remove travis test duplicate to github action * Also supports py3.9 & py3.10 * Set name * use list item, more readable * remove setup-miniconda * only one dependency: `json` * show package version * rename `*.yml` -> `*.yaml` * use twine to check dist
1 parent e83209e commit fd82a59

File tree

6 files changed

+70
-21
lines changed

6 files changed

+70
-21
lines changed

.github/workflows/sdist.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: sdist
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- "v*"
9+
pull_request:
10+
branches:
11+
- master
12+
13+
jobs:
14+
sdist:
15+
name: ${{ matrix.python-version }}
16+
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
shell: bash -l {0}
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
python-version:
24+
- "3.6"
25+
- "3.7"
26+
- "3.8"
27+
- "3.9"
28+
- "3.10"
29+
steps:
30+
- uses: actions/checkout@v2
31+
with:
32+
fetch-depth: 0 # Fetch all history for all tags and branches
33+
34+
- uses: actions/setup-python@v2
35+
with:
36+
python-version: ${{ matrix.python-version }}
37+
38+
- name: Install dependencies
39+
run: python -m pip install --upgrade pip setuptools wheel twine
40+
41+
- name: Build sdist
42+
run: |
43+
python setup.py sdist bdist_wheel
44+
twine check --strict dist/*
45+
ls -l dist
46+
47+
- name: Install from sdist
48+
run: |
49+
pip list
50+
python -m pip install dist/*.gz
51+
52+
- name: Import flowlauncher
53+
run: |
54+
python -V
55+
python -c "from flowlauncher import __version__; print(__version__);"
56+
python -c "import pprint; from flowlauncher._version import get_versions; pprint.pprint(get_versions());"
57+
conda info
58+
conda list
59+
60+
- name: Publish to TestPyPI
61+
if: ${{ github.event_name == 'push' }}
62+
uses: pypa/[email protected]
63+
with:
64+
user: __token__
65+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
66+
repository_url: https://test.pypi.org/legacy/
67+
verbose: true
68+
skip_existing: true

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Flow.Launcher.JsonRPC.Python
22

3-
[![Build Status](https://img.shields.io/travis/Zeroto521/Flow.Launcher.JsonRPC.Python/master?style=for-the-badge)](https://travis-ci.org/Zeroto521/Flow.Launcher.JsonRPC.Python)
43
[![](https://img.shields.io/pypi/v/flowlauncher.svg?style=for-the-badge)](https://pypi.org/project/flowlauncher/)
54
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/flowlauncher?style=for-the-badge)](https://pypi.org/project/flowlauncher/)
65

requirements-dev.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
"Programming Language :: Python :: 3.6",
4040
"Programming Language :: Python :: 3.7",
4141
"Programming Language :: Python :: 3.8",
42+
"Programming Language :: Python :: 3.9",
43+
"Programming Language :: Python :: 3.10",
4244

4345
"Topic :: Software Development",
4446
"Topic :: Software Development :: Libraries",

test.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)