Skip to content

Commit

Permalink
Merge branch 'feature/fix-ci' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
philopon committed Sep 4, 2018
2 parents d65d3fa + adabe35 commit 8cf94e4
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 608 deletions.
32 changes: 0 additions & 32 deletions Pipfile

This file was deleted.

514 changes: 0 additions & 514 deletions Pipfile.lock

This file was deleted.

9 changes: 6 additions & 3 deletions extra/ci/get-rdkit-version.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import re

comment = re.compile(r'^\s*#')

def main(data, os, pyver):
d = {
(os, pyver): ver
for os, pyver, ver
in (line.strip().split() for line in open(data))
in (line.strip().split() for line in open(data) if not comment.match(line))
}

print(d[(os, pyver)])
Expand All @@ -12,5 +16,4 @@ def main(data, os, pyver):
import sys
import os

data = os.path.join(os.path.dirname(__file__), "rdkit-versions.txt")
main(data, *sys.argv[1:])
main(*sys.argv[1:])
21 changes: 3 additions & 18 deletions extra/ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,7 @@ info conda update -y --all

info conda install python=$PYTHON_VERSION

# install requirements
info pip install pipenv
RDKIT="rdkit==$(python ./extra/ci/get-rdkit-version.py ./extra/requirements/rdkit-versions.txt $OS_NAME $PYTHON_VERSION)"
info conda install $RDKIT --file ./extra/requirements/requirements-conda.txt

pipenv lock -r > requirements.txt
info python ./extra/ci/scrub-requirements.py requirements.txt

banner "requirements.txt start"
cat requirements.txt
banner "requirements.txt end "

RDKIT="rdkit==$(python ./extra/ci/get-rdkit-version.py $OS_NAME $PYTHON_VERSION)"
info conda install $RDKIT --file requirements.txt --file ./extra/ci/requirements-conda.txt

pipenv lock -r --dev > requirements.txt
banner "requirements.txt(dev) start"
cat requirements.txt
banner "requirements.txt(dev) end "

info pip install -r requirements.txt
info pip install -r ./extra/requirements/requirements-pip.txt
9 changes: 0 additions & 9 deletions extra/ci/rdkit-versions.txt

This file was deleted.

2 changes: 0 additions & 2 deletions extra/ci/requirements-conda.txt

This file was deleted.

30 changes: 0 additions & 30 deletions extra/ci/scrub-requirements.py

This file was deleted.

10 changes: 10 additions & 0 deletions extra/requirements/rdkit-versions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
MacOSX 3.6 2018.03.4.0
MacOSX 3.5 2018.03.3.0
MacOSX 2.7 2018.03.4.0
Linux 3.6 2018.03.4.0
Linux 3.5 2018.03.4.0
Linux 2.7 2018.03.4.0
Windows 3.6 2018.03.4.0
# 2018.03.1.1 and 2017.09.3.0 on Windows/3.5 are broken
Windows 3.5 2017.09.2.0
Windows 2.7 2017.09.3.0
19 changes: 19 additions & 0 deletions extra/requirements/requirements-conda.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
networkx
six
numpy
tqdm
pandas

pyyaml
nose

pep8
isort
flake8
coverage
coveralls

sphinx

conda-build
anaconda-client
10 changes: 10 additions & 0 deletions extra/requirements/requirements-pip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
flake8-quotes
flake8-print
flake8-commas
flake8-comprehensions
flake8-docstrings
flake8-sorted-keys
flake8-regex
flake8-string-format
sphinx-rtd-theme
sphinxcontrib-bibtex

0 comments on commit 8cf94e4

Please sign in to comment.