-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PEP-518 build system specification This allows waterz to specify its own build-time dependencies, which means it can be installed directly using pip without any of those dependencies already installed. This is useful for downstream users for whom waterz is one of many dependencies; they can just stick it in their requirements.txt file and not have to worry about pre-installing dependencies. * Allow tests to run against installed version Pytest, by default, mangles sys.path to test against the local version. This doesn't work with libraries which need to be compiled. So, this explicitly removes the local version from the path. * Replace __builtins__ with builtins __builtins__ is a dict, not a module. __builtin__ was the module to use in py2. builtins is the module to use in py3. * Decouple requirements.txt and install_requires requirements.txt is designed for setting up a reproducible development environment; install_requires for flexible, minimal runtime dependencies. * Use pip install in readme, travis etc. * fix typo in pyproject * add required python version
- Loading branch information
Showing
6 changed files
with
30 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "numpy", "wheel"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
numpy | ||
cython | ||
|
||
# dev | ||
|
||
pytest | ||
coveralls | ||
pytest-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import sys | ||
from pathlib import Path | ||
|
||
# waterz is not locally importable; | ||
# this snippet forces the tests to use the installed version. | ||
# See here for more details: | ||
# https://stackoverflow.com/questions/67176036/how-to-prevent-pytest-using-local-module | ||
project_dir = str(Path(__file__).resolve().parent.parent) | ||
sys.path = [p for p in sys.path if not p.startswith(project_dir)] |