Commit 56fe4b3e authored by Yuxin Wu's avatar Yuxin Wu

auto publish seems to work

parent 8495d502
sudo: false sudo: false
dist: "trusty" dist: trusty
language: "python" language: python
cache: cache:
pip: true pip: true
apt: true apt: true
addons:
apt:
packages:
- pandoc
matrix: matrix:
fast_finish: true fast_finish: true
include: include:
- os: linux - os: linux
python: 2.7 python: 2.7
env: TF_VERSION=1.0.0rc1 TF_TYPE=release env: TF_VERSION=1.0.0rc1 TF_TYPE=release
- os: linux - os: linux
python: 3.5 python: 3.5
env: TF_VERSION=1.0.0rc1 TF_TYPE=release env: TF_VERSION=1.0.0rc1 TF_TYPE=release
- os: linux - os: linux
python: 2.7 python: 2.7
env: TF_VERSION=0.12.1 TF_TYPE=nightly env: TF_VERSION=1.0.0rc1 TF_TYPE=nightly
- os: linux - os: linux
python: 3.5 python: 3.5
env: TF_VERSION=0.12.1 TF_TYPE=nightly env: TF_VERSION=1.0.0rc1 TF_TYPE=nightly
allow_failures: allow_failures:
- env: TF_VERSION=0.12.1 TF_TYPE=nightly - env: TF_VERSION=1.0.0rc1 TF_TYPE=nightly
install: install:
# some packages on travis seem too old to work - pip install -U pip # the pip version on travis is too old
- pip install -U pip packaging - pip install flake8 opencv-python pypandoc
- pip install flake8 opencv-python # here we use opencv-python, but users are in general not recommended to use this package,
# Here we use opencv-python to overcome some travis probelms. # because it brings issues working with tensorflow on gpu
# Users are not recommended to use opencv-python because it brings issues working on GPU - ./tests/install-tensorflow.sh
# together with tensorflow. - pip install .
- ./tests/install-tensorflow.sh
- pip install .
before_script: before_script:
- flake8 --version - flake8 --version
- python -c "import cv2; print('OpenCV '+ cv2.__version__)" - python -c "import cv2; print('OpenCV '+ cv2.__version__)"
- python -c "import tensorflow as tf; print('TensorFlow '+ tf.__version__)" - python -c "import tensorflow as tf; print('TensorFlow '+ tf.__version__)"
script: script:
- flake8 . - flake8 .
- cd examples && flake8 . - cd examples && flake8 .
- cd $TRAVIS_BUILD_DIR && python tests/test_examples.py - cd $TRAVIS_BUILD_DIR && python tests/test_examples.py
notifications: notifications:
email: email:
recipients: recipients:
- ppwwyyxxc@gmail.com - ppwwyyxxc@gmail.com
on_success: never on_success: never
on_failure: change # default: always on_failure: change
deploy:
- provider: pypi
user: ppwwyyxx
distributions: "sdist bdist_wheel"
skip_upload_docs: true
password:
secure: lnNfzPFSk4HF7seuu63CoUa0g4V0JPs42H5FTzWecEIro8IqjdaAvzNKuhu9E4rkrMXPzoYYA6gC4YhseT7N/jg7lyV/Nn1koGXK1gmzu5JnXZXHw5/Ri0I3hOF3OFpEvkR39tzV0r5HsO0JIU3pl11+bBS8iloEtzdTPaUaRgyYxyZGrHl8l3VnUyM50PRnPGDouK6DHxJmknnFCOZFCrEpwN4zpOs55c1rChjJ8aql69rSsXQOUP8++jRtGwgqEvHh0K86uGm1AJUYvSWmcoD+5Urcg8LGaQzySmXtJnFgxtzsORactIEJoAteSMXufWZITn4OQ5VQkc4/CfU0HgHioQw86dpdJrfOLkhEx65JxfUsQiOTgpcTOgYYEda6+dY4cnTTpj2fASVDhQMQ/vo+Ab/W14nYG8z0IPwGJ1qDXRO6AtPD7vbah2LdHQTUTiAbbtva7NWuKbFiVxD2tdrVQHKWqmKXw+JF5F8TBDEnUxFtulW2hbM+vwu6mPxbYQZEpONjLKSa7qiZ8jQZ8cy9KatQYkqPLeGEbgI+IsmA4bnJJennToyWZ2N4W071ddtLB7hDH4ZRVdaLVYtfeKW/b/+YGX3N8p5cMKGIDjpGyF0BocFalQ7gYfg2ouAn1RyEPkCaw6ntA2uzIgvTqxU5inWJCFn20Ogst0oIaPs=
on:
tags: true
repo: ppwwyyxx/tensorpack
python: "3.5"
condition: "$TF_TYPE = release"
- provider: pypi
server: https://testpypi.python.org/pypi
user: ppwwyyxx
distributions: "sdist bdist_wheel"
skip_upload_docs: true
password:
secure: lnNfzPFSk4HF7seuu63CoUa0g4V0JPs42H5FTzWecEIro8IqjdaAvzNKuhu9E4rkrMXPzoYYA6gC4YhseT7N/jg7lyV/Nn1koGXK1gmzu5JnXZXHw5/Ri0I3hOF3OFpEvkR39tzV0r5HsO0JIU3pl11+bBS8iloEtzdTPaUaRgyYxyZGrHl8l3VnUyM50PRnPGDouK6DHxJmknnFCOZFCrEpwN4zpOs55c1rChjJ8aql69rSsXQOUP8++jRtGwgqEvHh0K86uGm1AJUYvSWmcoD+5Urcg8LGaQzySmXtJnFgxtzsORactIEJoAteSMXufWZITn4OQ5VQkc4/CfU0HgHioQw86dpdJrfOLkhEx65JxfUsQiOTgpcTOgYYEda6+dY4cnTTpj2fASVDhQMQ/vo+Ab/W14nYG8z0IPwGJ1qDXRO6AtPD7vbah2LdHQTUTiAbbtva7NWuKbFiVxD2tdrVQHKWqmKXw+JF5F8TBDEnUxFtulW2hbM+vwu6mPxbYQZEpONjLKSa7qiZ8jQZ8cy9KatQYkqPLeGEbgI+IsmA4bnJJennToyWZ2N4W071ddtLB7hDH4ZRVdaLVYtfeKW/b/+YGX3N8p5cMKGIDjpGyF0BocFalQ7gYfg2ouAn1RyEPkCaw6ntA2uzIgvTqxU5inWJCFn20Ogst0oIaPs=
on:
branch: test-travis
repo: ppwwyyxx/tensorpack
python: "3.5"
condition: "$TF_TYPE = release"
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
name = tensorpack name = tensorpack
author = TensorPack contributors author = TensorPack contributors
author-email = ppwwyyxxc@gmail.com author-email = ppwwyyxxc@gmail.com
description = Neural Network Toolbox on TensorFlow
long_description = file: README.md
url = https://github.com/ppwwyyxx/tensorpack url = https://github.com/ppwwyyxx/tensorpack
keywords = tensorflow, deep learning, neural network keywords = tensorflow, deep learning, neural network
license = Apache license = Apache
......
...@@ -9,6 +9,14 @@ libinfo = {'__file__': libinfo_py} ...@@ -9,6 +9,14 @@ libinfo = {'__file__': libinfo_py}
exec(compile(open(libinfo_py, "rb").read(), libinfo_py, 'exec'), libinfo, libinfo) exec(compile(open(libinfo_py, "rb").read(), libinfo_py, 'exec'), libinfo, libinfo)
__version__ = libinfo['__version__'] __version__ = libinfo['__version__']
# produce rst readme for pypi
try:
import pypandoc
long_description = pypandoc.convert_file('README.md', 'rst')
except ImportError:
raise
long_description = open('README.md').read()
# configure requirements # configure requirements
req = [ req = [
'numpy', 'numpy',
...@@ -47,10 +55,13 @@ for s in scripts: ...@@ -47,10 +55,13 @@ for s in scripts:
setup( setup(
version=__version__, version=__version__,
description='Neural Network Toolbox on TensorFlow',
long_description=long_description,
install_requires=req, install_requires=req,
tests_require=['flake8'], tests_require=['flake8'],
extras_require={ extras_require={
'all': extra_req 'all': extra_req
}, },
scripts=scripts_to_install scripts=scripts_to_install,
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment