Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #62 from jameslamb/ci
Browse files Browse the repository at this point in the history
Added Travis and Appveyor setup (fixes #1)
gsganden authored Dec 28, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents ad19a6a + 85130b0 commit 144a707
Showing 3 changed files with 52 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
30 changes: 30 additions & 0 deletions .travis.yml
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
23 changes: 21 additions & 2 deletions setup.py
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
}
)

0 comments on commit 144a707

Please sign in to comment.