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

Added Travis and Appveyor setup (fixes #1) #62

Merged
merged 4 commits into from
Dec 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
Expand Down
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]",
Expand All @@ -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
}
)