Skip to content

Commit

Permalink
Merge pull request #2 from kamo-naoyuki/pypi
Browse files Browse the repository at this point in the history
add pythonpublish.yml
  • Loading branch information
kamo-naoyuki authored May 2, 2020
2 parents 1c7378f + 62fd6e5 commit 3b539c0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
max-parallel: 20
matrix:
os: [ubuntu-16.04, ubuntu-latest]
python-version: [3.6, 3.7]
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
push:
tags:
- 'v*'

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
**WARNING! This repository is temporal yet!!! We might remove this repositoy without notifacation.**

# ESPnet TTS Frontend
![CI](https://github.com/espnet/espnet_tts_frontend/workflows/CI/badge.svg)

Text frontend for [ESPnet](https://github.com/espnet/espnet) tts recipes.
A tools collection of text frontend for [ESPnet](https://github.com/espnet/espnet) tts recipes.

## Install
```bash
git clone https://github.com/espnet/espnet_tts_frontend
pip install -e espnet_tts_frontend
# OR
# pit install git+https://github.com/espnet/espnet_tts_frontend
pip install espnet_tts_frontend
```

### Install with pyopenjtalk
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ def run(self):

setup(
name="espnet_tts_frontend",
version="0.0.0",
version="0.0.1",
long_description=open(os.path.join(dirname, 'README.md'),
encoding='utf-8').read(),
long_description_content_type="text/markdown",
url="http://github.com/espnet/espnet_tts_frontend",
packages=find_packages(include=["tacotron_cleaner*", "vietnamese_cleaner*"]),
install_requires=install_requires,
Expand All @@ -87,6 +90,7 @@ def run(self):
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
Expand Down

0 comments on commit 3b539c0

Please sign in to comment.