Skip to content

Commit

Permalink
Merge pull request #171 from uqfoundation/pep517
Browse files Browse the repository at this point in the history
enable support for develop and pep517
  • Loading branch information
mmckerns authored May 16, 2022
2 parents 9aed83e + ad97a09 commit f058e4e
Show file tree
Hide file tree
Showing 13 changed files with 544 additions and 457 deletions.
6 changes: 6 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ coverage:
target: auto
threshold: 1%

fixes:
# reduces pip-installed path to git root and
# remove dist-name from setup-installed path
- "*/site-packages/::"
- "*/site-packages/mystic-*::"

12 changes: 8 additions & 4 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ source =
cache
models
mystic/math
*/site-packages/mystic*/mystic
*/site-packages/mystic*/mystic/cache
*/site-packages/mystic*/mystic/math
*/site-packages/mystic*/mystic/models
*/site-packages/mystic
*/site-packages/mystic/cache
*/site-packages/mystic/math
*/site-packages/mystic/models
*/site-packages/mystic-*/mystic
*/site-packages/mystic-*/mystic/cache
*/site-packages/mystic-*/mystic/math
*/site-packages/mystic-*/mystic/models

[report]
include =
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sphinx:

# build
python:
version: "3.7"
version: "3.8"
install:
- method: pip
path: .
Expand Down
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ matrix:

- python: '3.7'
env:
- COVERAGE="true"
- MATPLOTLIB="true"
- SYMPY="true"
- SCIPY="true"

- python: '3.8'
env:

- python: '3.9'
env:
- COVERAGE="true"
- MATPLOTLIB="true"
- SYMPY="true"
- SCIPY="true"

- python: '3.10'
env:
Expand All @@ -28,6 +28,8 @@ matrix:
- python: '3.11-dev'
env:
- CYTHON="true" # numpy source build
- DILL="master"
- KLEPTO="master"

- python: 'pypy2.7-7.3.1' # most recent
dist: xenial
Expand All @@ -53,13 +55,17 @@ before_install:
- if [[ $SYMPY == "true" ]]; then pip install sympy; fi
- if [[ $SCIPY == "true" ]]; then pip install scipy; fi
- if [[ $CYTHON == "true" ]]; then pip install "cython<0.29.25"; fi #FIXME
- if [[ $DILL == "master" ]]; then pip install "https://github.com/uqfoundation/dill/archive/master.tar.gz"; fi
- if [[ $KLEPTO == "master" ]]; then pip install "https://github.com/uqfoundation/klepto/archive/master.tar.gz"; fi


install:
- python setup.py build && python setup.py install
- python -m pip install .

script:
- for test in tests/__init__.py; do echo $test ; if [[ $COVERAGE == "true" ]]; then coverage run -a $test > /dev/null; else python $test > /dev/null; fi ; done
- for test in tests/test_*.py; do echo $test ; if [[ $COVERAGE == "true" ]]; then coverage run -a $test > /dev/null; else python $test > /dev/null; fi ; done

after_success:
- if [[ $COVERAGE == "true" ]]; then bash <(curl -s https://codecov.io/bash); else echo ''; fi
- if [[ $COVERAGE == "true" ]]; then coverage report; fi
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
include LICENSE
include README*
include MANIFEST.in
include pyproject.toml
include tox.ini
recursive-include docs *
recursive-include examples *
Expand Down
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,47 @@ You can get the latest development version with all the shiny new features at:
If you have a new contribution, please submit a pull request.


Installation
------------
``mystic`` can be installed with ``pip``::

$ pip install mystic

To include optional scientific python support, with ``scipy``, install::

$ pip install mystic[math]

To include optional plotting support with ``matplotlib``, install::

$ pip install mystic[plotting]

To include optional parallel computing support, with ``pathos``, install::

$ pip install mystic[parallel]


Requirements
------------
``mystic`` requires:

* ``python`` (or ``pypy``), **==2.7** or **>=3.7**
* ``setuptools``, **>=42**
* ``wheel``, **>=0.1**
* ``cython``, **>=0.29.22**
* ``numpy``, **>=1.0**
* ``sympy``, **>=0.6.7**
* ``mpmath``, **>=0.19**
* ``dill``, **>=0.3.4**
* ``klepto``, **>=0.2.1**

Optional requirements:

* ``matplotlib``, **>=0.91**
* ``scipy``, **>=0.6.0**
* ``pathos``, **>=0.2.8**
* ``pyina``, **>=0.2.5**


More Information
----------------
Probably the best way to get started is to look at the documentation at
Expand Down
1 change: 1 addition & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)
-rm -f $(BUILDDIR)/../../scripts/_*py
-rm -f $(BUILDDIR)/../../scripts/_*pyc
-rm -rf $(BUILDDIR)/../../scripts/__pycache__

Loading

0 comments on commit f058e4e

Please sign in to comment.