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
|
from setuptools import setup
import importlib
with open('README.rst') as readme_file:
README = readme_file.read()
def get_version():
ver_file = None
try:
spec = importlib.util.spec_from_file_location('__version__', 'src/vcstools/__version__.py')
vermod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(vermod)
version = vermod.version
return version
finally:
if ver_file is not None:
ver_file.close()
test_required = [
"nose",
"coverage",
"coveralls",
"mock",
"pep8",
# run checks in multiple environments
"tox",
"tox-pyenv",
# code metrics
"radon~=1.4.0; python_version > '3'",
# coala lint checks only in newest python
"coala; python_version > '3'",
"coala-bears; python_version > '3'",
# mypy typing checks only in newest python
"mypy; python_version > '3'"
]
setup(name='vcstools',
version=get_version(),
packages=['vcstools'],
package_dir={'': 'src'},
scripts=[],
install_requires=['pyyaml', 'python-dateutil'],
# tests_require automatically installed when running python setup.py test
tests_require=test_required,
# extras_require allow pip install .[test]
extras_require={
'test': test_required
},
author="Tully Foote, Thibault Kruse, Ken Conley",
author_email="tfoote@osrfoundation.org",
url="http://wiki.ros.org/vcstools",
keywords=["scm", "vcs", "git", "svn", "hg", "bzr"],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Development Status :: 7 - Inactive",
"Topic :: Software Development :: Version Control"
],
description="VCS/SCM source control library for svn, git, hg, and bzr",
long_description=README,
license="BSD")
|