Skip to content

Commit e461ad4

Browse files
authored
Merge pull request #469 from uqfoundation/pep517
enable support for develop and pep517
2 parents d2f916c + 2895353 commit e461ad4

13 files changed

Lines changed: 447 additions & 381 deletions

.codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ coverage:
2020
target: auto
2121
threshold: 1%
2222

23+
fixes:
24+
# reduces pip-installed path to git root and
25+
# remove dist-name from setup-installed path
26+
- "*/site-packages/::"
27+
- "*/site-packages/dill-*::"
28+

.coveragerc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[run]
22
# source = dill
3-
include = */dill/*
3+
include =
4+
*/dill/*
45
omit =
56
*/tests/*
67
*/info.py
@@ -11,7 +12,15 @@ branch = true
1112
# data_file = $TRAVIS_BUILD_DIR/.coverage
1213
# debug = trace
1314

15+
[paths]
16+
source =
17+
dill
18+
*/site-packages/dill
19+
*/site-packages/dill-*/dill
20+
1421
[report]
22+
include =
23+
*/dill/*
1524
exclude_lines =
1625
pragma: no cover
1726
raise NotImplementedError

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sphinx:
88

99
# build
1010
python:
11-
version: "3.7"
11+
version: "3.9"
1212
install:
1313
- method: pip
1414
path: .

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ matrix:
1010

1111
- python: '3.7'
1212
env:
13-
- COVERAGE="true"
14-
- NUMPY="true"
1513

1614
- python: '3.8'
1715
env:
1816

1917
- python: '3.9'
2018
env:
19+
- COVERAGE="true"
20+
- NUMPY="true"
2121

2222
- python: '3.10'
2323
env:
@@ -48,11 +48,12 @@ before_install:
4848
- if [[ $NUMPY == "true" ]]; then pip install numpy; fi
4949

5050
install:
51-
- python setup.py build && python setup.py install
51+
- python -m pip install .
5252

5353
script:
5454
- 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
5555
- 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
5656

5757
after_success:
5858
- if [[ $COVERAGE == "true" ]]; then bash <(curl -s https://codecov.io/bash); else echo ''; fi
59+
- if [[ $COVERAGE == "true" ]]; then coverage report; fi

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
include LICENSE
22
include README*
3+
include MANIFEST.in
4+
include pyproject.toml
35
include tox.ini
46
include scripts/*
57
include tests/*py

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,35 @@ You can get the latest development version with all the shiny new features at:
8383
If you have a new contribution, please submit a pull request.
8484

8585

86+
Installation
87+
------------
88+
``dill`` can be installed with ``pip``::
89+
90+
$ pip install dill
91+
92+
To optionally include the ``objgraph`` diagnostic tool in the install::
93+
94+
$ pip install dill[graph]
95+
96+
For windows users, to optionally install session history tools::
97+
98+
$ pip install dill[readline]
99+
100+
101+
Requirements
102+
------------
103+
``dill`` requires:
104+
105+
* ``python`` (or ``pypy``), **==2.7** or **>=3.7**
106+
* ``setuptools``, **>=42**
107+
* ``wheel``, **>=0.1**
108+
109+
Optional requirements:
110+
111+
* ``objgraph``, **>=1.7.2**
112+
* ``pyreadline``, **>=1.7.1** (on windows)
113+
114+
86115
Basic Usage
87116
-----------
88117
``dill`` is a drop-in replacement for ``pickle``. Existing code can be

0 commit comments

Comments
 (0)