Skip to content

Commit

Permalink
Travis ci (#14)
Browse files Browse the repository at this point in the history
* initial setup attempt for travis-ci

* add tensorflow-probability to setup.py

* Update README.md

* turn off email notifications

* fails at python 3.5
  • Loading branch information
Digo committed Aug 31, 2018
1 parent de91fc7 commit f4f5eaf
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sudo: required
language: python
python:
- "3.6"

install:
pip install -e .[tensorflow-cpu]

script:
# units test
- pytest

notifications:
email: false
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

-----------------

[![Build Status](https://travis-ci.org/asyml/texar.svg?branch=master)](https://travis-ci.org/asyml/texar)
[![Documentation Status](https://readthedocs.org/projects/texar/badge/?version=latest)](https://texar.readthedocs.io/en/latest/?badge=latest)


Expand Down
24 changes: 16 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
#
"""
Setup file.
"""

import setuptools


long_description = '''
Texar is an open-source toolkit based on Tensorflow,
aiming to support a broad set of machine learning especially text generation tasks,
such as machine translation, dialog, summarization, content manipulation, language modeling, and so on.
Texar is designed for both researchers and practitioners for fast prototyping and experimentation.
'''

setuptools.setup(
name="texar",
version="0.1",
url="https://github.com/asyml/texar",

description="Toolkit for Text Generation and Beyond",
long_description=long_description,
license='Apache License Version 2.0',

packages=setuptools.find_packages(),
platforms='any',
Expand All @@ -21,15 +27,17 @@
'requests',
],
extras_require={
'tensorflow': ['tensorflow>=1.7.0'],
'tensorflow with gpu': ['tensorflow-gpu>=1.7.0']
'tensorflow-cpu': ['tensorflow>=1.7.0', 'tensorflow-probability >= 0.3.0'],
'tensorflow-gpu': ['tensorflow-gpu>=1.7.0', 'tensorflow-probability-gpu >= 0.3.0']
},
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)
)

0 comments on commit f4f5eaf

Please sign in to comment.