forked from Open-Book-Genome-Project/sequencer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (43 loc) · 1.43 KB
/
setup.py
File metadata and controls
51 lines (43 loc) · 1.43 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
"""
OBGP: Open Book Genome Project
"""
import codecs
from os.path import dirname, isdir, join, abspath
import re
from subprocess import CalledProcessError, check_output
import setuptools
here = abspath(dirname(__file__))
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open("requirements.txt", "r", encoding="utf-8") as fh:
install_requires = fh.read()
with open("bgp/__init__.py", "r", encoding="utf-8") as fh:
version_file = fh.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
version = version_match.group(1)
else:
raise RuntimeError("Unable to find version string.")
setuptools.setup(
name='obgp',
version=version,
description="Open Book Genome Project",
long_description=long_description,
long_description_content_type="text/markdown",
author='OBGP',
author_email='michael.karpeles@gmail.com',
url='https://github.com/Open-Book-Genome-Project/sequencer',
packages=[
'bgp',
'bgp/modules'
],
keywords="open book genome fulltext analysis",
platforms='any',
include_package_data=True,
license='https://www.gnu.org/licenses/agpl-3.0.en.html',
install_requires=install_requires,
classifiers=[
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
],
)