Skip to content

Commit d24e217

Browse files
committed
Update setup.py. Switch from distutils to setuptools.
1 parent 529e1ce commit d24e217

File tree

1 file changed

+52
-28
lines changed

1 file changed

+52
-28
lines changed

setup.py

Lines changed: 52 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python
2-
31
#
42
# Copyright (c) 2011-2015 LabKey Corporation
53
#
@@ -15,30 +13,56 @@
1513
# See the License for the specific language governing permissions and
1614
# limitations under the License.
1715
#
16+
"""
17+
Setup script for Python client API for LabKey Server.
18+
19+
Also installs included versions of third party libraries, if those libraries
20+
are not already installed.
21+
"""
22+
from __future__ import print_function
23+
24+
import sys
25+
26+
if sys.version_info < (2, 6):
27+
print('labkey-api-python requires python version >= 2.6.',
28+
file=sys.stderr)
29+
sys.exit(1)
30+
31+
from setuptools import setup
32+
33+
packages = [
34+
'labkeyapi'
35+
]
36+
37+
install_requires = []
38+
39+
long_desc = "Python client API for LabKey Server. Supports for query, wiki, and messageboard APIs."
1840

19-
from distutils.core import setup
20-
setup(name='LabKey',
21-
version='0.24',
22-
description='Python client API for LabKey Server',
23-
long_description = open('README.txt').read() + open('NEWS.txt').read(),
24-
license="Apache License 2.0",
25-
author='Elizabeth Nelson',
26-
author_email='eknelson@labkey.com',
27-
maintainer='Brian Connolly',
28-
maintainer_email='brian@labkey.com',
29-
url='https://www.labkey.org/wiki/home/Documentation/page.view?name=python',
30-
download_url='http://www.labkey.com/download-labkey-server',
31-
packages=['labkey'],
32-
classifiers=[
33-
'Development Status :: 4 - Beta',
34-
'Environment :: Console',
35-
'Intended Audience :: Science/Research',
36-
'Intended Audience :: System Administrators',
37-
'License :: OSI Approved :: Apache Software License',
38-
'Operating System :: MacOS',
39-
'Operating System :: Microsoft',
40-
'Operating System :: POSIX',
41-
'Programming Language :: Python :: 2',
42-
'Topic :: Scientific/Engineering'
43-
]
44-
)
41+
setup(
42+
name='labkey',
43+
version='0.24',
44+
description='Python client API for LabKey Server',
45+
long_description=long_desc
46+
license="Apache License 2.0",
47+
author='Elizabeth Nelson',
48+
author_email='eknelson@labkey.com',
49+
maintainer='Brian Connolly',
50+
maintainer_email='brian@labkey.com',
51+
url='https://www.labkey.org/wiki/home/Documentation/page.view?name=python',
52+
install_requires=install_requires
53+
packages=packages,
54+
package_data={},
55+
keywords="labkey api client",
56+
classifiers=[
57+
'Development Status :: 4 - Beta',
58+
'Environment :: Console',
59+
'Intended Audience :: Science/Research',
60+
'Intended Audience :: System Administrators',
61+
'License :: OSI Approved :: Apache Software License',
62+
'Operating System :: MacOS',
63+
'Operating System :: Microsoft',
64+
'Operating System :: POSIX',
65+
'Programming Language :: Python :: 2',
66+
'Topic :: Scientific/Engineering'
67+
]
68+
)

0 commit comments

Comments
 (0)