Skip to content

Commit

Permalink
Reorganize extra requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
emerali committed Sep 5, 2018
1 parent d74dc26 commit 19cd24f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 22 deletions.
29 changes: 29 additions & 0 deletions .build_tools/build-wheels.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
set -e -x

# Install a system package required by our library
#yum install -y atlas-devel

PYBINS=(
"/opt/python/cp35-cp35m/bin"
"/opt/python/cp36-cp36m/bin"
"/opt/python/cp37-cp37m/bin"
)

# Compile wheels
for PYBIN in ${PYBINS[@]}; do
#"${PYBIN}/pip" install -r /io/requirements.txt
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
done

# Bundle external shared libraries into the wheels
#for whl in wheelhouse/*.whl; do
# auditwheel repair "$whl" -w /io/wheelhouse/
#done

# Install packages and test
#for PYBIN in ${PYBINS[@]}; do
# "${PYBIN}/pip" install python-manylinux-demo --no-index -f /io/wheelhouse
# (cd "$HOME"; "${PYBIN}/nosetests" pymanylinuxdemo)
#done

3 changes: 0 additions & 3 deletions .build_tools/invoke/code_cells_only.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@

{%- block markdowncell -%}
{%- endblock markdowncell -%}

{%- block headingcell -%}
{%- endblock headingcell -%}
{%- block rawcell -%}
{%- endblock rawcell -%}
{%- block unknowncell -%}
{%- endblock unknowncell -%}


{%- block in_prompt -%}
{%- endblock in_prompt -%}
34 changes: 15 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,46 +39,42 @@
with open(".build_tools/readthedocs/requirements.txt", "r") as reqs:
rtd_requires = [line.strip() for line in reqs.readlines()]

doc_requires = rtd_requires + ["sphinx_rtd_theme>=0.4.1", "sphinx-autobuild>=0.7.1"]

build_requires = ["setuptools>=40.0.0", "wheel>=0.31.1"]

test_requires = ["pytest>=3.7.1", "tox>=3.2.1"]

coverage_requires = test_requires + ["pytest-cov>=2.5.1"]

style_requires = [
"radon>=2.2.0",
"black==18.6b4; python_version>='3.6'",
"flake8>=3.5.0",
"flake8-per-file-ignores>=0.6",
"flake8-bugbear>=18.2.0",
]

travis_requires = (
build_requires
+ coverage_requires
+ [
"radon>=2.2.0",
"black==18.6b4; python_version>='3.6'",
"flake8>=3.5.0",
"flake8-per-file-ignores>=0.6",
"flake8-bugbear>=18.2.0",
"invoke>=1.1.1",
]
+ style_requires
+ ["invoke>=1.1.1", "nbconvert>=5.3.1"]
)

appveyor_requires = build_requires + test_requires

dev_requires = (
travis_requires
+ rtd_requires
+ [
"pre_commit>=1.10.5",
"sphinx_rtd_theme>=0.4.1",
"sphinx-autobuild>=0.7.1",
"nbconvert>=5.3.1",
"nbval>=0.9.1",
]
)
dev_requires = travis_requires + doc_requires + ["pre_commit>=1.10.5", "nbval>=0.9.1"]

extras_require = {
"dev": dev_requires,
"test": test_requires,
"coverage": coverage_requires,
"style": style_requires,
"travis": travis_requires,
"appveyor": appveyor_requires,
"rtd": rtd_requires,
"doc": doc_requires,
}

setuptools.setup(
Expand Down

0 comments on commit 19cd24f

Please sign in to comment.