-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
2,443 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
microsetta_interface/_version.py export-subst |
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,28 @@ | ||
sudo: false | ||
os: | ||
- linux | ||
|
||
env: | ||
- CONDA_PY=3.8 | ||
- CONDA_PY=3.7 | ||
|
||
before_install: | ||
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh | ||
- bash miniconda.sh -b -p $HOME/miniconda | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- conda update --yes conda | ||
|
||
install: | ||
- conda create --yes -n env_name python=$CONDA_PY | ||
- conda install --yes -n env_name --file ci/conda_requirements.txt | ||
- source activate env_name | ||
- pip install -r ci/pip_requirements.txt | ||
- make install | ||
|
||
script: | ||
- make lint | ||
- make test-cov | ||
- make test-install | ||
|
||
after_success: | ||
- coveralls |
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,4 @@ | ||
include versioneer.py | ||
include microsetta_interface/_version.py | ||
|
||
graft microsetta_interface |
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,32 @@ | ||
# shamelessly adapt https://github.com/qiime2/q2-emperor/blob/master/Makefile | ||
.PHONY: all lint test test-cov install dev clean distclean | ||
|
||
PYTHON ?= python | ||
|
||
all: ; | ||
|
||
lint: | ||
flake8 microsetta_interface | ||
|
||
test: all | ||
py.test | ||
|
||
test-install: all | ||
# ensure the package is installed and the app is buildable. this test | ||
# is a passive verification that non-py essential files are part of the | ||
# installed entity. | ||
cd / # go somewhere to avoid relative imports | ||
python -c "from microsetta_interface import server; server.build_app()" | ||
|
||
test-cov: all | ||
py.test --cov=microsetta_interface | ||
|
||
install: all | ||
$(PYTHON) setup.py install | ||
|
||
dev: all | ||
pip install -e . | ||
|
||
clean: distclean | ||
|
||
distclean: ; |
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,4 @@ | ||
|
||
from ._version import get_versions | ||
__version__ = get_versions()['version'] | ||
del get_versions |
Oops, something went wrong.