mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-06-27 16:46:32 +08:00
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:
@@ -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/
|
||||
@@ -102,5 +102,8 @@ venv.bak/
|
||||
|
||||
# mypy
|
||||
.mypy_cache/
|
||||
|
||||
# other
|
||||
.idea/
|
||||
runs/
|
||||
.vscode/
|
||||
|
||||
@@ -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"]),
|
||||
|
||||
Reference in New Issue
Block a user