Skip to content

Commit 9b29a37

Browse files
committed
Initial files, versioning, etc
1 parent 829c4f5 commit 9b29a37

File tree

9 files changed

+2443
-0
lines changed

9 files changed

+2443
-0
lines changed

Diff for: .gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
microsetta_interface/_version.py export-subst

Diff for: .travis.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
sudo: false
2+
os:
3+
- linux
4+
5+
env:
6+
- CONDA_PY=3.8
7+
- CONDA_PY=3.7
8+
9+
before_install:
10+
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
11+
- bash miniconda.sh -b -p $HOME/miniconda
12+
- export PATH="$HOME/miniconda/bin:$PATH"
13+
- conda update --yes conda
14+
15+
install:
16+
- conda create --yes -n env_name python=$CONDA_PY
17+
- conda install --yes -n env_name --file ci/conda_requirements.txt
18+
- source activate env_name
19+
- pip install -r ci/pip_requirements.txt
20+
- make install
21+
22+
script:
23+
- make lint
24+
- make test-cov
25+
- make test-install
26+
27+
after_success:
28+
- coveralls

Diff for: MANIFEST.in

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include versioneer.py
2+
include microsetta_interface/_version.py
3+
4+
graft microsetta_interface

Diff for: Makefile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# shamelessly adapt https://github.com/qiime2/q2-emperor/blob/master/Makefile
2+
.PHONY: all lint test test-cov install dev clean distclean
3+
4+
PYTHON ?= python
5+
6+
all: ;
7+
8+
lint:
9+
flake8 microsetta_interface
10+
11+
test: all
12+
py.test
13+
14+
test-install: all
15+
# ensure the package is installed and the app is buildable. this test
16+
# is a passive verification that non-py essential files are part of the
17+
# installed entity.
18+
cd / # go somewhere to avoid relative imports
19+
python -c "from microsetta_interface import server; server.build_app()"
20+
21+
test-cov: all
22+
py.test --cov=microsetta_interface
23+
24+
install: all
25+
$(PYTHON) setup.py install
26+
27+
dev: all
28+
pip install -e .
29+
30+
clean: distclean
31+
32+
distclean: ;

Diff for: microsetta_interface/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
from ._version import get_versions
3+
__version__ = get_versions()['version']
4+
del get_versions

0 commit comments

Comments
 (0)