forked from BjornFJohansson/pydna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
81 lines (69 loc) · 2.33 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Read __author__, __email__. from __init__.py
__author__ = "__author__"
__email__ = "__email__"
for line in open("src/pydna/__init__.py"):
if line.startswith("__author__") or line.startswith("__email__"):
exec(line.strip())
from setuptools import setup
from setuptools import Command
from setuptools import find_packages
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, "run_test.py"])
raise SystemExit(errno)
setup(
name="pydna",
author=__author__,
author_email=__email__,
zip_safe=False,
cmdclass={"test": PyTest},
packages=find_packages("src"),
package_dir={"": "src"},
url="https://github.com/BjornFJohansson/pydna",
license="LICENSE.txt",
description="""Contains classes and code for representing double
stranded DNA and functions for simulating homologous
recombination between DNA molecules.""",
long_description=long_description,
long_description_content_type="text/markdown",
setup_requires=["pytest-runner", "setuptools_scm"],
tests_require=["pytest"],
use_scm_version={"write_to": "src/pydna/_version.py"},
install_requires=[
"appdirs",
"biopython",
"networkx",
"prettytable",
"pyparsing",
"requests",
],
keywords="bioinformatics",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Education",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
)