-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
53 lines (46 loc) · 1.71 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
def get_version():
directory = os.path.abspath(os.path.dirname(__file__))
init_file = os.path.join(directory, "evo", "__init__.py")
with open(init_file) as f:
for line in f:
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
with open("README.md", "r") as rf:
README = rf.read()
with open("LICENSE", "r") as lf:
LICENSE = lf.read()
with open("requirements.txt", "r") as reqs:
requirements = reqs.read().split()
for i, requirement in enumerate(requirements):
if requirement.startswith("git+"):
package_name = requirement.rsplit("=", maxsplit=1)[1]
requirements[i] = f"{package_name} @ {requirement}"
setup(
name="evo",
packages=find_packages(),
version=get_version(),
description="Mono-repository of protein utilities",
author="Roshan Rao",
author_email="roshan_rao@berkeley.edu",
url="https://github.com/rmrao/evo",
license=LICENSE,
keywords=["Proteins", "Deep Learning", "Pytorch"],
include_package_data=True,
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence"
"Topic :: Scientific/Engineering :: Bio-Informatics"
],
)