Skip to content

Commit b7fff96

Browse files
committed
Support __version__
1 parent d770b24 commit b7fff96

File tree

2 files changed

+19
-25
lines changed

2 files changed

+19
-25
lines changed

labkey/__init__.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
import labkey
17-
import labkey.query
18-
import labkey.wiki
19-
import labkey.messageboard
16+
__title__ = 'labkey'
17+
__version__ = '0.24'
18+
__author__ = 'LabKey Software'
19+
__license__ = 'Apache 2.0'
20+
21+
from labkey import query, wiki, messageboard

setup.py

+13-21
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,8 @@
1919
Also installs included versions of third party libraries, if those libraries
2020
are not already installed.
2121
"""
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-
3122
from distutils.core import setup
23+
from labkey import __version__
3224

3325
packages = [
3426
'labkey'
@@ -38,28 +30,28 @@
3830

3931
setup(
4032
name='labkey',
41-
version='0.24',
33+
version=__version__,
4234
description='Python client API for LabKey Server',
4335
long_description=long_desc,
4436
license="Apache License 2.0",
4537
author='Elizabeth Nelson',
4638
author_email='[email protected]',
4739
maintainer='Brian Connolly',
4840
maintainer_email='[email protected]',
49-
url='https://www.labkey.org/wiki/home/Documentation/page.view?name=python',
41+
url='https://github.com/LabKey/labkey-api-python',
5042
packages=packages,
5143
package_data={},
5244
keywords="labkey api client",
5345
classifiers=[
54-
'Development Status :: 4 - Beta',
55-
'Environment :: Console',
56-
'Intended Audience :: Science/Research',
57-
'Intended Audience :: System Administrators',
58-
'License :: OSI Approved :: Apache Software License',
59-
'Operating System :: MacOS',
60-
'Operating System :: Microsoft',
61-
'Operating System :: POSIX',
62-
'Programming Language :: Python :: 2',
63-
'Topic :: Scientific/Engineering'
46+
'Development Status :: 4 - Beta',
47+
'Environment :: Console',
48+
'Intended Audience :: Science/Research',
49+
'Intended Audience :: System Administrators',
50+
'License :: OSI Approved :: Apache Software License',
51+
'Operating System :: MacOS',
52+
'Operating System :: Microsoft',
53+
'Operating System :: POSIX',
54+
'Programming Language :: Python :: 2',
55+
'Topic :: Scientific/Engineering'
6456
]
6557
)

0 commit comments

Comments
 (0)