This repository has been archived by the owner on Apr 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from jameslamb/ci
Added Travis and Appveyor setup (fixes #1)
Showing
3 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ nosetests.xml | |
coverage.xml | ||
*,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
# Stuff shared by all builds | ||
install: | ||
- python setup.py install | ||
script: | ||
- python -m pytest | ||
|
||
matrix: | ||
include: | ||
|
||
- language: python | ||
os: linux | ||
python: 3.6 | ||
|
||
# This is actually a py3.6 + Mac OSX build (with conda). | ||
# The mac + python version pairings for Travis are weird, | ||
# and as of this writing 3.6 isn't supported. For more, see | ||
# https://docs.travis-ci.com/user/multi-os/#python-example-unsupported-languages | ||
- os: osx | ||
language: generic | ||
before_install: | ||
- wget https://repo.continuum.io/miniconda/Miniconda3-4.3.21-MacOSX-x86_64.sh -O miniconda.sh | ||
- bash miniconda.sh -b -p $HOME/miniconda | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- hash -r | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
- conda info -a | ||
- conda create -q -n testenv python=3.6.1 nose pytest | ||
- source activate testenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
import setuptools | ||
|
||
with open('README.md', 'r') as f: | ||
with open("README.md", "r") as f: | ||
my_long_description = f.read() | ||
|
||
|
||
documentation_packages = [] | ||
regular_packages = [ | ||
"click", | ||
"mlflow", | ||
"pandas", | ||
"pillow", | ||
"tensorflow", | ||
"tensorflow_hub" | ||
] | ||
testing_packages = [ | ||
"pytest" | ||
] | ||
|
||
setuptools.setup( | ||
name="autofocus", | ||
version="0.1.0", | ||
url="https://github.com/UptakeOpenSource/autofocus", | ||
python_requires='>=3.6.0', | ||
|
||
author="Greg Gandenberger", | ||
author_email="[email protected]", | ||
|
@@ -15,6 +30,10 @@ | |
long_description=my_long_description, | ||
|
||
packages=setuptools.find_packages(), | ||
test_suite="tests", | ||
|
||
install_requires=['click', 'mlflow', 'pandas', 'pillow', 'tensorflow', 'tensorflow_hub'] | ||
install_requires=regular_packages, | ||
extras_require={ | ||
"testing": testing_packages + regular_packages | ||
} | ||
) |