-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (33 loc) · 1.11 KB
/
setup.py
File metadata and controls
39 lines (33 loc) · 1.11 KB
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
37
38
39
import os
from setuptools import setup
import re, pathlib
# view filename
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_property(prop, project):
result = re.search(r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop), open(project + '/__init__.py').read())
return result.group(1)
def get_requirements():
reqpath = pathlib.Path("./requirements.txt")
reqs = reqpath.read_text().splitlines()
return reqs
project_name = "KEGGutils"
setup(
name = project_name,
version = get_property('__version__', project_name),
python_reqyuires = '>3.8',
author = "Filippo Castelli",
author_email = "[email protected]",
description = ("Simple utils to work with KEGG data on NetworkX"),
license = "Unlicense",
keywords = "KEGG networkx utils",
url = "https://github.com/filippocastelli/KEGGutils",
packages=['KEGGutils'],
install_requires= get_requirements(),
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: Public Domain",
],
)