Skip to content

Commit 335e326

Browse files
authored
Merge pull request #2 from stephenhky/py3test
Py3test
2 parents 31cf9c1 + cd9af80 commit 335e326

File tree

7 files changed

+27
-18
lines changed

7 files changed

+27
-18
lines changed

.travis.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
sudo: true
2-
dist: trusty
3-
sudo: required
41
language: python
52
python:
63
- "2.7"
7-
before_install:
8-
- wget 'http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh' -O miniconda.sh
9-
- chmod +x miniconda.sh
10-
- ./miniconda.sh -b
11-
- export PATH=/home/travis/miniconda2/bin:$PATH
12-
- conda update --yes conda
13-
- sudo apt-get update
4+
- "3.5"
5+
- "3.5-dev" # 3.5 development branch
6+
- "3.6"
7+
- "3.6-dev" # 3.6 development branch
8+
# - "3.7-dev" # 3.7 development branch # failing at 3.7-dev
9+
# command to install dependencies
10+
install:
1411
- sudo apt-get install libc6
1512
- sudo apt-get install gfortran
16-
install:
17-
- conda create --yes -n graphflow-test python=$TRAVIS_PYTHON_VERSION pip numpy scipy
18-
- source activate graphflow-test
13+
- pip install -U pandas
1914
- pip install -U .
15+
# command to run tests
2016
script:
21-
- python setup.py test
17+
- pytest # or py.test for Python versions 3.5 and below

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# graphflow : Algorithms for Graph Flow Analysis
22

3+
[![Build Status](https://travis-ci.org/stephenhky/GraphFlow.svg?branch=master)](https://travis-ci.org/stephenhky/GraphFlow)
4+
35
This Python package provides numerical routines for graph flow analysis, particularly:
46

57
* PageRank
@@ -17,5 +19,6 @@ After ensuring they have been installed, type the following to install `graphflo
1719

1820
# News
1921

22+
* 06/14/2018: `graphflow` 0.1.3 released.
2023
* 06/06/2018: `graphflow` 0.1.2 released.
2124
* 04/12/2018: `graphflow` 0.1.1 released.

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
# The short X.Y version.
6060
version = u'0.1'
6161
# The full version, including alpha/beta/rc tags.
62-
release = u'0.1.2'
62+
release = u'0.1.3'
6363

6464
# The language for content autogenerated by Sphinx. Refer to documentation
6565
# for a list of supported languages.

doc/source/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
Welcome to GraphFlow's documentation!
77
=====================================
88

9+
.. image:: https://travis-ci.org/stephenhky/GraphFlow.svg?branch=master
10+
:target: https://travis-ci.org/stephenhky/GraphFlow
11+
912
Contents:
1013

1114
.. toctree::

doc/source/news.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
News
22
====
33

4+
* 06/14/2018: `graphflow` 0.1.3 released.
45
* 06/06/2018: `graphflow` 0.1.2 released.
56
* 04/12/2018: `graphflow` 0.1.1 released.
67

78
What's New
89
----------
910

11+
Release 0.1.3 (Jun 14, 2018)
12+
----------------------------
13+
14+
* Compatibility with Python 3.5 and 3.6.
15+
16+
1017
Release 0.1.2 (Jun 06, 2018)
1118
----------------------------
1219

graphflow/simvoltage/resistancedist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ def __init__(self, nodes=default_nodes, edges=default_edges):
1919
self.Omega = self.computeResistanceDistance()
2020

2121
def getResistance(self, node1, node2):
22-
if self.nodesIdx.has_key(node1) and self.nodesIdx.has_key(node2):
22+
if (node1 in self.nodesIdx) and (node2 in self.nodesIdx):
2323
idx0 = self.nodesIdx[node1]
2424
idx1 = self.nodesIdx[node2]
2525
return self.Omega[idx0, idx1]
2626
else:
27-
unknown_keys = [node for node in [node1, node2] if not self.nodesIdx.has_key(node)]
27+
unknown_keys = [node for node in [node1, node2] if not node in self.nodesIdx]
2828
raise Exception('Unknown key(s): '+' '.join(unknown_keys))
2929

3030
def initializeClass(self, nodes, edges):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def readme():
1010

1111

1212
setup(name='graphflow',
13-
version="0.1.2",
13+
version="0.1.3",
1414
description="Algorithms for Graph Flow Analysis",
1515
long_description="Numerical routines for analyzing data represented by graphs",
1616
classifiers=[

0 commit comments

Comments
 (0)