Skip to content

Commit

Permalink
Merge pull request #37 from njzjz/dev
Browse files Browse the repository at this point in the history
 use setuptools_scm
  • Loading branch information
njzjz authored Jan 18, 2019
2 parents 19d3523 + 5c6ac3b commit df23e3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions reacnetgenerator/reacnetgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import base64
from io import StringIO
from collections import Counter, defaultdict
from pkg_resources import get_distribution, DistributionNotFound
import numpy as np
import networkx as nx
import networkx.algorithms.isomorphism as iso
Expand All @@ -70,6 +71,11 @@

plt.switch_backend('Agg')

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass

class ReacNetGenerator(object):
''' Use ReacNetGenerator for trajectory analysis'''
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from setuptools import setup
setup(name='reacnetgenerator',
version='1.2.20',
description='Reaction Network Generator',
keywords="reaction network",
url='https://njzjz.github.io/reacnetgenerator/',
Expand All @@ -15,4 +14,6 @@
},
test_suite='reacnetgenerator.test',
tests_require=['requests'],
use_scm_version=True,
setup_requires=['setuptools_scm'],
)

0 comments on commit df23e3a

Please sign in to comment.