Skip to content

Commit

Permalink
Merge pull request #469 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 d2f916c + 2895353 commit e461ad4
Show file tree
Hide file tree
Showing 13 changed files with 447 additions and 381 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/dill-*::"

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

[paths]
source =
dill
*/site-packages/dill
*/site-packages/dill-*/dill

[report]
include =
*/dill/*
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.9"
install:
- method: pip
path: .
Expand Down
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ matrix:

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

- python: '3.8'
env:

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

- python: '3.10'
env:
Expand Down Expand Up @@ -48,11 +48,12 @@ before_install:
- if [[ $NUMPY == "true" ]]; then pip install numpy; 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
include scripts/*
include tests/*py
Expand Down
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,35 @@ 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
------------
``dill`` can be installed with ``pip``::

$ pip install dill

To optionally include the ``objgraph`` diagnostic tool in the install::

$ pip install dill[graph]

For windows users, to optionally install session history tools::

$ pip install dill[readline]


Requirements
------------
``dill`` requires:

* ``python`` (or ``pypy``), **==2.7** or **>=3.7**
* ``setuptools``, **>=42**
* ``wheel``, **>=0.1**

Optional requirements:

* ``objgraph``, **>=1.7.2**
* ``pyreadline``, **>=1.7.1** (on windows)


Basic Usage
-----------
``dill`` is a drop-in replacement for ``pickle``. Existing code can be
Expand Down
Loading

0 comments on commit e461ad4

Please sign in to comment.