-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
78 lines (68 loc) · 2.51 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
"""
Description
Setup script to install nebulizer: command line utilities for managing
users, tools and data libraries in Galaxy instances via the API
Copyright (C) University of Manchester 2015-2021 Peter Briggs
"""
from setuptools import setup
import codecs
import os.path
# Installation requirements
install_requires = ['bioblend==0.15.0',
'mako',
'click==7.1.2',]
# Acquire package version for installation
# (see https://packaging.python.org/guides/single-sourcing-package-version/)
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
NEBULIZER_VERSION = get_version("nebulizer/__init__.py")
# Get long description from the project README
readme = read('README.rst')
# Setup for installation etc
setup(
name = "nebulizer",
version = NEBULIZER_VERSION,
description = "CLI for remote admin of Galaxy servers",
long_description = readme,
url = 'https://github.com/pjbriggs/nebulizer',
maintainer = 'Peter Briggs',
maintainer_email = 'peter.briggs@manchester.ac.uk',
packages = ['nebulizer',],
entry_points = { 'console_scripts': [
'nebulizer = nebulizer.cli:nebulizer',]
},
license = 'AFL',
install_requires = install_requires,
test_suite = 'nose.collector',
tests_require = ['nose'],
platforms="Posix; MacOS X; Windows",
python_requires=">=3.6",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: System Administrators",
"Intended Audience :: Developers",
"License :: OSI Approved :: Academic Free License (AFL)",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
"Programming Language :: Python :: 3 :: Only",
],
include_package_data=True,
zip_safe = False
)