From eeec7b7fde70fcb9f2b5a82d20a4731040523129 Mon Sep 17 00:00:00 2001 From: Lee McCuller <Lee.McCuller@gmail.com> Date: Wed, 30 May 2018 11:02:57 -0400 Subject: [PATCH] added helpers for setup.py --- .gitignore | 2 ++ MANIFEST.in | 13 +++++++++++ setup.cfg | 13 +++++++++++ tox.ini | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 MANIFEST.in create mode 100644 setup.cfg create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index e341f8ba..2de76202 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ __pycache__/ # Backups *~ +MANIFEST + diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..3ec6f0a6 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,13 @@ +include LICENSE +include README.rst +include DISTRIBUTION-README.md +include MANIFEST.in +include setup.cfg +include setup.py +include setup_opt.py +include tox.ini + +recursive-include iirrational *.py +recursive-include iirrational *.m +recursive-include test *.py +recursive-include test *.m diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..f575ad34 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,13 @@ +[bdist_wheel] +# This flag says that the code is written to work on both Python 2 and Python +# 3. If at all possible, it is good practice to do this. If you cannot, you +# will need to generate wheels for each Python version that you support. +universal=1 + +[aliases] +test=pytest + +[metadata] +description-file = README.rst + + diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..8acbe23c --- /dev/null +++ b/tox.ini @@ -0,0 +1,62 @@ +# content of: tox.ini , put in same dir as setup.py +[tox] +envlist = + py35 + py36 + py27 + py34 +indexserver = + DEV = http://localhost:8085 +[testenv] +setenv = + PYTHONPATH = '' +deps = + pytest + pytest-xdist + pytest-benchmark + tabulate + matplotlib + pycairo + pygobject + wxpython + h5py +commands=py.test test/ -s +pip_pre=True + + +[testenv:full] +setenv = + PYTHONPATH = '' +deps = + pytest + pytest-xdist + pytest-benchmark + tabulate + matplotlib + pycairo + h5py +commands= + py.test test/ -s +pip_pre=True +usedevelop=True + +[testenv:LLO] +basepython = python2.7 +setenv = + PYTHONPATH = '' +deps = + pytest + pytest-xdist + pytest-benchmark + numpy==1.7.1 + scipy==0.16.1 + matplotlib==1.4.3 + tabulate + pycairo + h5py +commands= + py.test test/ -s +pip_pre=True +usedevelop=True + + -- GitLab