-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·72 lines (66 loc) · 3.12 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
#!/usr/bin/env python
################################################################################
# Copyright (c) 2014-2020, National Research Foundation (Square Kilometre Array)
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy
# of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
from setuptools import setup, find_packages
# These are safe to import inside setup.py as the only external dependency
# is setuptools and that is already available
from katversion import get_version
from katversion.build import AddVersionToInitBuildPy, AddVersionToInitSdist
with open('README.rst') as readme:
long_description = readme.read()
setup(name="katversion",
description="Reliable git-based versioning for Python packages",
long_description=long_description,
author="The MeerKAT CAM Team",
author_email="cam@ska.ac.za",
packages=find_packages(),
include_package_data=True,
scripts=["scripts/kat-get-version.py"],
url='https://github.com/ska-sa/katversion',
license="BSD",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Software Distribution",
"Topic :: Software Development :: Libraries :: Python Modules"],
platforms=["OS Independent"],
keywords="versioning meerkat ska",
# Register 'use_katversion' keyword for use in participating setup.py files
entry_points={'distutils.setup_keywords':
'use_katversion = katversion.build:setuptools_entry'},
# Handle our own version directly instead of via entry point
version=get_version(),
cmdclass={'build_py': AddVersionToInitBuildPy,
'sdist': AddVersionToInitSdist},
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4',
tests_require=["unittest2>=0.5.1",
"nose>=1.3, <2.0"],
zip_safe=False,
test_suite="nose.collector")