Skip to content

Commit

Permalink
Merge pull request #237 from uqfoundation/pep517
Browse files Browse the repository at this point in the history
enable support for develop and pep517
  • Loading branch information
mmckerns committed May 16, 2022
2 parents c9cbe43 + 2209fae commit 348cc9e
Show file tree
Hide file tree
Showing 13 changed files with 413 additions and 394 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/pathos-*::"

26 changes: 25 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[run]
# source = pathos
include = */pathos/*
include =
*/pathos/*
*/pathos/helpers/*
*/pathos/secure/*
*/pathos/xmlrpc/*
omit =
*/tests/*
*/info.py
Expand All @@ -11,7 +15,27 @@ branch = true
# data_file = $TRAVIS_BUILD_DIR/.coverage
# debug = trace

[paths]
source =
pathos
pathos/helpers
pathos/secure
pathos/xmlrpc
*/site-packages/pathos
*/site-packages/pathos/helpers
*/site-packages/pathos/secure
*/site-packages/pathos/xmlrpc
*/site-packages/pathos-*/pathos
*/site-packages/pathos-*/pathos/helpers
*/site-packages/pathos-*/pathos/secure
*/site-packages/pathos-*/pathos/xmlrpc

[report]
include =
*/pathos/*
*/pathos/helpers/*
*/pathos/secure/*
*/pathos/xmlrpc/*
exclude_lines =
pragma: no cover
raise NotImplementedError
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
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ matrix:

- python: '3.7'
env:
- COVERAGE="true"

- python: '3.8'
env:

- python: '3.9'
env:
- COVERAGE="true"

- python: '3.10'
env:
Expand Down Expand Up @@ -51,11 +51,12 @@ before_install:
- if [[ $MULTIPROCESS == "true" ]]; then pip install multiprocess --no-binary multiprocess; 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 applications *
recursive-include docs *
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,26 @@ 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
------------
``pathos`` can be installed with ``pip``::

$ pip install pathos


Requirements
------------
``pathos`` requires:

* ``python`` (or ``pypy``), **==2.7** or **>=3.7**
* ``setuptools``, **>=42**
* ``wheel``, **>=0.1**
* ``pox``, **>=0.3.0**
* ``dill``, **>=0.3.4**
* ``ppft``, **>=1.6.6.4**
* ``multiprocess``, **>=0.70.12.1**


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__

0 comments on commit 348cc9e

Please sign in to comment.