From 688a043ea015d2d66b92c4fd96fc3aa5a90b8f99 Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Mon, 7 Sep 2020 17:32:16 +0200 Subject: Update versioneer and packaging build configs --- setup.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index bf79cf2..d6416a4 100644 --- a/setup.py +++ b/setup.py @@ -9,12 +9,6 @@ import versioneer PROJECT = 'obsapi' -versioneer.VCS = 'git' -versioneer.versionfile_source = '%s/_version.py' % PROJECT -versioneer.versionfile_build = '%s/_version.py' % PROJECT -versioneer.tag_prefix = '%s-' % PROJECT # tags are like 1.2.0 -versioneer.parentdir_prefix = '%s-' % PROJECT # dirname like 'myproject-1.2.0' - class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] @@ -34,6 +28,7 @@ class PyTest(TestCommand): errno = pytest.main(self.pytest_args) sys.exit(errno) + cmdclass = versioneer.get_cmdclass() cmdclass['test'] = PyTest @@ -49,13 +44,13 @@ setup( 'obsapi', ], license='GPL-2.0', - classifiers=( + classifiers=[ 'Natural Language :: English', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.7', - ), + ], install_requires=[ 'requests', 'lxml', -- cgit v1.2.3