-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
36 lines (30 loc) · 1.04 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from setuptools import setup
from os import path
script_directory = path.abspath(path.dirname(__file__))
# Version
package_name = "ensemble_networkx"
version = None
with open(path.join(script_directory, package_name, '__init__.py')) as f:
for line in f.readlines():
line = line.strip()
if line.startswith("__version__"):
version = line.split("=")[-1].strip().strip('"')
assert version is not None, f"Check version in {package_name}/__init__.py"
requirements = list()
with open(path.join(script_directory, 'requirements.txt')) as f:
for line in f.readlines():
line = line.strip()
if line:
if not line.startswith("#"):
requirements.append(line)
setup(
name='ensemble_networkx',
version=version,
description='Ensemble networks in Python',
url='https://github.com/jolespin/ensemble_networkx',
author='Josh L. Espinoza',
author_email='[email protected]',
license='BSD-3',
packages=["ensemble_networkx"],
install_requires=requirements,
)