Repository: Flow-Launcher/Flow.Launcher.JsonRPC.Python (language: python)

Issue:
Publish new release and setup CI
changes made so need to publish new release and setup CI


Discussion / hints:
Sorry for the late reply. I get some leisure time to do this now.

I need your help, set two action secrets would send an email to you.

Fix patch:
diff --git a/.github/workflows/sdist.yaml b/.github/workflows/sdist.yaml
new file mode 100644
index 0000000..92b71fe
--- /dev/null
+++ b/.github/workflows/sdist.yaml
@@ -0,0 +1,68 @@
+name: sdist
+
+on:
+  push:
+    branches:
+      - master
+    tags:
+      - "v*"
+  pull_request:
+    branches:
+      - master
+
+jobs:
+  sdist:
+    name: ${{ matrix.python-version }}
+    runs-on: ubuntu-latest
+    defaults:
+      run:
+        shell: bash -l {0}
+    strategy:
+      fail-fast: false
+      matrix:
+        python-version:
+          - "3.6"
+          - "3.7"
+          - "3.8"
+          - "3.9"
+          - "3.10"
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0 # Fetch all history for all tags and branches
+
+      - uses: actions/setup-python@v2
+        with:
+          python-version: ${{ matrix.python-version }}
+
+      - name: Install dependencies
+        run: python -m pip install --upgrade pip setuptools wheel twine
+
+      - name: Build sdist
+        run: |
+          python setup.py sdist bdist_wheel
+          twine check --strict dist/*
+          ls -l dist
+
+      - name: Install from sdist
+        run: |
+          pip list
+          python -m pip install dist/*.gz
+
+      - name: Import flowlauncher
+        run: |
+          python -V
+          python -c "from flowlauncher import __version__; print(__version__);"
+          python -c "import pprint; from flowlauncher._version import get_versions; pprint.pprint(get_versions());"
+          conda info
+          conda list
+
+      - name: Publish to TestPyPI
+        if: ${{ github.event_name == 'push' }}
+        uses: pypa/gh-action-pypi-publish@v1.4.2
+        with:
+          user: __token__
+          password: ${{ secrets.TEST_PYPI_API_TOKEN }}
+          repository_url: https://test.pypi.org/legacy/
+          verbose: true
+          skip_existing: true
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index dad84fa..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-sudo: false
-language: python
-python:
-    - "3.6"
-    - "3.7"
-    - "3.8"
-
-install:
-    - pip install -r requirements-dev.txt
-
-before_install:
-    - sudo apt-get update
-
-script:
-    - echo 'building test'
-    - sh ./test.sh
diff --git a/README.md b/README.md
index 20be3ba..e5161eb 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,5 @@
 # Flow.Launcher.JsonRPC.Python
 
-[![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)
 [![](https://img.shields.io/pypi/v/flowlauncher.svg?style=for-the-badge)](https://pypi.org/project/flowlauncher/)
 [![PyPI pyversions](https://img.shields.io/pypi/pyversions/flowlauncher?style=for-the-badge)](https://pypi.org/project/flowlauncher/)
 
diff --git a/requirements-dev.txt b/requirements-dev.txt
deleted file mode 100644
index c9133d6..0000000
--- a/requirements-dev.txt
+++ /dev/null
@@ -1,1 +0,0 @@
-twine
\ No newline at end of file
diff --git a/setup.py b/setup.py
index ecb3042..7631795 100644
--- a/setup.py
+++ b/setup.py
@@ -39,6 +39,8 @@
     "Programming Language :: Python :: 3.6",
     "Programming Language :: Python :: 3.7",
     "Programming Language :: Python :: 3.8",
+    "Programming Language :: Python :: 3.9",
+    "Programming Language :: Python :: 3.10",
 
     "Topic :: Software Development",
     "Topic :: Software Development :: Libraries",


Test patch:
diff --git a/test.sh b/test.sh
deleted file mode 100644
index bb3e7c2..0000000
--- a/test.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-python setup.py check
-python setup.py sdist bdist_wheel
-python setup.py install