-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (49 loc) · 1.64 KB
/
Copy pathsetup.py
File metadata and controls
54 lines (49 loc) · 1.64 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import setuptools
import re
def readme():
"""
Opens and reads the README.rst file.
"""
with open("README.rst", "r") as readme_file:
return readme_file.read()
metadata_file = "VEnCode/_metadata.py"
with open(metadata_file, "rt") as file:
metadata = file.read()
version_expression = r"^__version__ = ['\"]([^'\"]*)['\"]"
author_expression = r"^__author__ = ['\"]([^'\"]*)['\"]"
version_search = re.search(version_expression, metadata, re.M)
author_search = re.search(author_expression, metadata, re.M)
if version_search:
version = version_search.group(1)
else:
raise RuntimeError("Unable to find version string in {}.".format(metadata))
if author_search:
author = author_search.group(1)
else:
raise RuntimeError("Unable to find author string in {}.".format(metadata))
setuptools.setup(
name='VEnCode',
version=version,
description='Package to get VEnCodes as in Macedo and Gontijo, 2019',
long_description=readme(),
author=author,
author_email='andre.lopes.macedo@gmail.com',
url='https://github.com/AndreMacedo88/VEnCode',
packages=setuptools.find_packages(),
install_requires=[
"biopython",
"tqdm",
"numpy",
"pandas",
"matplotlib",
"scipy"
],
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
]
)