Skip to content

Commit

Permalink
Merge pull request #310 from neurodata/travis_auto_pypi_upload
Browse files Browse the repository at this point in the history
Added travis auto PyPi upload on change to main
  • Loading branch information
jdey4 authored Oct 15, 2020
2 parents feb3e91 + 9e006b0 commit c5da9a2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ script:

after_success:
- codecov

deploy:
provider: pypi
username: "__token__"
password: "pypi-AgEIcHlwaS5vcmcCJGExMGU2ZDIwLWZjZjItNDE2OC1hMTAwLTBjMjcwODk0NmVhNgACOnsicGVybWlzc2lvbnMiOiB7InByb2plY3RzIjogWyJwcm9nbGVhcm4iXX0sICJ2ZXJzaW9uIjogMX0AAAYg4-9xmR2nprlOAV7X-Nv6Dkvi6N-WkTBEyTe8WvrWUC0"
on:
branch: main
2 changes: 2 additions & 0 deletions proglearn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
from .transformers import *
from .voters import *
from .deciders import *

__version__ = "0.0.1"
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from setuptools import setup, find_packages
import os

requirements = [
"keras",
Expand All @@ -8,6 +9,12 @@
"joblib",
]

# Find mgc version.
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
for line in open(os.path.join(PROJECT_PATH, "proglearn", "__init__.py")):
if line.startswith("__version__ = "):
VERSION = line.strip().split()[2][1:-1]

with open("README.md", mode="r", encoding = "utf8") as f:
LONG_DESCRIPTION = f.read()

Expand Down

0 comments on commit c5da9a2

Please sign in to comment.