Skip to content

Commit

Permalink
move dependencies to requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Jun 28, 2018
1 parent 1fa605c commit 8e570df
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 26 deletions.
25 changes: 25 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
decorator>=4.1.0
matplotlib==2.2.2
Shapely==1.5.17.post1
tqdm==4.15.0
numpy==1.14.3
six==1.11.0
setuptools==39.0.1
imageio==2.2.0
vispy==0.5.3
pandas==0.22.0
seaborn==0.8.1
requests==2.19.1
requests_futures==0.9.7
networkx==2.1
scipy==1.0.0
plotly==2.5.1
pyqt5
pypng==0.0.18

# Below are optional dependencies
# py2cytoscape==0.7.0
# pyoctree==0.2.2
# ete3==3.0.0b35
# trimesh==2.20.16
# rpy2==2.8.6
35 changes: 9 additions & 26 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import re


VERSIONFILE="pymaid/__init__.py"
VERSIONFILE = "pymaid/__init__.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
Expand All @@ -16,19 +16,21 @@
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))

with open('requirements.txt') as f:
requirements = f.read().splitlines()
requirements = [l for l in requirements if not l.startswith('#')]

setup(
name='pymaid',
version=verstr,
packages=['pymaid',],
packages=['pymaid', ],
license='GNU GPL V3',
description='Python interface with CATMAID',
long_description=open('README.md').read(),
url = 'https://github.com/schlegelp/pymaid',
url='https://github.com/schlegelp/pymaid',
author='Philipp Schlegel',
author_email = 'pms70@cam.ac.uk',
author_email='pms70@cam.ac.uk',
keywords='CATMAID interface neuron blender3d',

classifiers=[
'Development Status :: 5 - Production/Stable',

Expand All @@ -42,26 +44,7 @@
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],

install_requires=[
"decorator>=4.1.0", # This is required for networkx -> if not present, readthedocs acts up
"scipy>=1.0.0",
"numpy>=1.13.0",
"matplotlib>=2.2.0",
"plotly>=2.4.0",
"pandas>=0.22.0",
"vispy>=0.5.3",
"tqdm>=4.14.0",
"pyqt5",
"pypng",
"networkx>=2.1",
"seaborn",
"requests",
"requests-futures"
#"rpy2>=2.8.5", #This throws an error when no R is installed on the system
],

install_requires=requirements,
python_requires='>=3.4',

zip_safe = False
zip_safe=False
)

0 comments on commit 8e570df

Please sign in to comment.