-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
57 lines (52 loc) · 2.18 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
from setuptools import setup, find_packages
import sys, os
import subprocess
import glob
# Fetch version from git tags, and write to version.py.
# Also, when git is not available (PyPi package), use stored version.py.
version_py = os.path.join(os.path.dirname(__file__), 'version.py')
try:
version_git = subprocess.Popen(["git", "describe", "--abbrev=0"],stdout=subprocess.PIPE).communicate()[0].rstrip()
except:
with open(version_py, 'r') as fh:
version_git = open(version_py).read().strip().split('=')[-1].replace('"','')
try:
with open("requirements.txt", "r") as f:
install_requires = [x.strip() for x in f.readlines()]
except IOError:
install_requires = [
"SQLAlchemy",
"pyyaml",
"psycopg2"]
setup(name='genologics_sql',
version=version_git,
description="Python interface to the Illumina Clarity LIMS (Laboratory Information Management System) (formerly Genologics) server via its postgres database.",
long_description="""A basic module for interacting with the Clarity LIMS server via its postgres database.
The goal is to provide simple access to the most common entities and their attributes in a reasonably Pythonic fashion.""",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Medical Science Apps."
],
keywords='genologics database postgres clarity lims illumina',
author='Denis Moreno',
author_email='[email protected]',
maintainer='Denis Moreno',
maintainer_email='[email protected]',
url='https://github.com/SciLifeLab/genologics_sql',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
scripts=glob.glob("scripts/*.py"),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
entry_points="""
# -*- Entry points: -*-
""",
)