Skip to content

Commit

Permalink
Pull request #11: Fix setup.py; run tests using tox
Browse files Browse the repository at this point in the history
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
brendapraggastis committed Aug 8, 2022
2 parents abadc62 + 9e1574d commit 6feeec0
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ tutorials/h2d-hnx-why_v5.tar.gz
vis_develop
dist/
*.egg-info*
.tox/
venv*
30 changes: 30 additions & 0 deletions Makefile
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
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[metadata]
description-file=README.md
description_file=README.md

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"pandas>=0.23",
"python-igraph>=0.9.6",
"celluloid>=0.2.0",
"decorator>=5.1.1"
],
license="3-Clause BSD license",
long_description="""
Expand Down
13 changes: 13 additions & 0 deletions tox.ini
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

0 comments on commit 6feeec0

Please sign in to comment.