forked from SciLifeLab/genologics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (52 loc) · 2.03 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
from setuptools import setup, find_packages
from genologics.version import __version__
import sys, os
import subprocess
import glob
# Fetch version from git tags.
# if git is not available (PyPi package), use stored version.py.
version_py = os.path.join(os.path.dirname(__file__), 'genologics', 'version.py')
version = subprocess.Popen(["git", "describe", "--abbrev=0"],stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].rstrip()
if not version:
version = __version__
else:
version = version.decode("utf-8")
try:
with open("requirements.txt") as rq:
requires=rq.readlines()
except:
requires=["requests"]
setup(name='genologics',
version=version,
description="Python interface to the GenoLogics LIMS (Laboratory Information Management System) server via its REST API.",
long_description="""A basic module for interacting with the GenoLogics LIMS server via its REST API.
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 :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Medical Science Apps."
],
keywords='genologics api rest',
author='Per Kraulis',
author_email='per.kraulis@scilifelab.se',
maintainer='Denis Moreno',
maintainer_email='denis.moreno@scilifelab.se',
url='https://github.com/scilifelab/genologics',
license='GPLv3',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
scripts=glob.glob("scripts/*.py"),
include_package_data=True,
zip_safe=False,
install_requires=[
"requests"
],
entry_points="""
# -*- Entry points: -*-
""",
)