publish to test-pypi

with user token

updated url

added author

only sdist

make bdist_wheel

fix typo

publish to pypi

moved to 1 workflow

remove test workflow

add to test

github.event_name

run on relase created
This commit is contained in:
Kashif Rasul
2020-07-05 11:22:31 +02:00
parent f0d64126c6
commit d39c569d47
3 changed files with 42 additions and 2 deletions
+36
View File
@@ -0,0 +1,36 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on:
release:
types: [created]
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: >-
python -m
pip install --upgrade
pip setuptools twine
--user
- name: Build a binary wheel and a source tarball
run: >-
python setup.py sdist
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
+3
View File
@@ -102,5 +102,8 @@ venv.bak/
# mypy
.mypy_cache/
# other
.idea/
runs/
.vscode/
+3 -2
View File
@@ -6,8 +6,9 @@ setup(
description="PyTorch Probabilistic Time Series Modeling framework",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url='https://github.com/kashif/pytorch-ts',
author='Kashif Rasul',
author_email="kashif.rasul@zalando.de",
url='https://github.com/zalandoresearch/pytorch-ts',
license='MIT',
packages=find_packages(exclude=["tests"]),