-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request #11: Fix setup.py; run tests using tox
Merge in HYP/hypernetx from hotfix/HYP-257-hypernetx-does-not-install-because-of-missing-library to master * commit '9e1574d9c5efa5d52fbfe783a16b282a7301236b': Fix setup.py; run tests using tox
- Loading branch information
Showing
5 changed files
with
47 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,5 @@ tutorials/h2d-hnx-why_v5.tar.gz | |
vis_develop | ||
dist/ | ||
*.egg-info* | ||
.tox/ | ||
venv* |
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,30 @@ | ||
|
||
SHELL = /bin/bash | ||
|
||
# Variables | ||
VENV = venv_test | ||
PYTHON = $(VENV)/bin/python | ||
|
||
## Environment | ||
|
||
venv: | ||
@rm -rf VENV; | ||
@python -m venv $(VENV); | ||
|
||
deps: | ||
@$(PYTHON) -m pip install tox | ||
|
||
.PHONY: venv deps | ||
|
||
## Test | ||
|
||
test: venv deps | ||
rm -rf .tox | ||
@$(PYTHON) -m tox | ||
|
||
.PHONY: test | ||
|
||
clean: | ||
rm -rf .out .pytest_cache .tox *.egg-info dist build | ||
|
||
.PHONY: clean |
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,3 +1,3 @@ | ||
[metadata] | ||
description-file=README.md | ||
description_file=README.md | ||
|
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,13 @@ | ||
# tox (https://tox.readthedocs.io/) is a tool for running tests | ||
# in multiple virtualenvs. This configuration file will run the | ||
# test suite on all supported python versions. To use it, "pip install tox" | ||
# and then run "tox" from this directory. | ||
|
||
[tox] | ||
envlist = py37 | ||
|
||
[testenv] | ||
deps = | ||
pytest | ||
commands = | ||
pytest hypernetx/ -v --disable-warnings |