Skip to content

Commit 6711eff

Browse files
committed
Some makefile fixes
1 parent 25c831c commit 6711eff

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

Changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ A library for working with graphs in Python
44

55
CHANGELOG
66

7+
Unreleased:
8+
9+
Enhancements:
10+
New location, and new main maintainers.
11+
Various fixes and improvements to the Makefile and testrunning.
12+
Automatic tests and coverage of master and pull request with Travis and Coveralls.
13+
714

815
Release 1.8.2 [July 14, 2012]
916

Makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ TESTS_DIR="tests/"
1010
DOCS_DIR="docs/"
1111
TEMP="temp/"
1212
PYTHONPATH="`pwd`/core:`pwd`/dot"
13+
PYTHON="python"
14+
PYTHON3="python3"
1315

1416

1517
# General ------------------------------------------------------------
@@ -67,28 +69,28 @@ test-pre:
6769
reset
6870

6971
test: test-pre
70-
PYTHONPATH=${PYTHONPATH} python tests/testrunner.py
72+
PYTHONPATH=${PYTHONPATH} ${PYTHON} tests/testrunner.py
7173

7274
test3: test-pre
73-
PYTHONPATH=${PYTHONPATH} python3 tests/testrunner.py
75+
PYTHONPATH=${PYTHONPATH} ${PYTHON3} tests/testrunner.py
7476

7577
tests: test
7678

7779

7880
# Tests --------------------------------------------------------------
7981

8082
console:
81-
export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && python
83+
export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && ${PYTHON}
8284

8385
console3:
84-
export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && python3
86+
export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && ${PYTHON3}
8587

8688

8789
# Cleaning -----------------------------------------------------------
8890

8991
cleanpyc:
90-
find . -name *.pyc -exec rm {} \;
91-
find . -name __pycache__ -exec rm -rf {} \;
92+
find tests dot core -name *.pyc -exec rm {} \;
93+
find tests dot core -name __pycache__ -exec rm -rf {} \; -prune
9294

9395
clean: cleanpyc
9496
rm -rf ${DOCS_DIR}

README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ Jonathan Sternberg <jonathansternberg@gmail.com>
125125
Daniel Merritt <dmerritt@gmail.com>
126126
* Fixed reading of XML-stored graphs with edge attributes.
127127

128+
Sandro Tosi <morph@debian.org>
129+
* Some improvements to Makefile
130+
128131

129132
LICENSE
130133

0 commit comments

Comments
 (0)