Skip to content

Commit

Permalink
Initial files, versioning, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
wasade committed Jun 23, 2020
1 parent 829c4f5 commit 9b29a37
Show file tree
Hide file tree
Showing 9 changed files with 2,443 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
microsetta_interface/_version.py export-subst
28 changes: 28 additions & 0 deletions .travis.yml
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
4 changes: 4 additions & 0 deletions MANIFEST.in
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
32 changes: 32 additions & 0 deletions Makefile
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: ;
4 changes: 4 additions & 0 deletions microsetta_interface/__init__.py
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
Loading

0 comments on commit 9b29a37

Please sign in to comment.