|
1 | | -import re |
2 | | -import sys |
| 1 | +from setuptools import setup |
3 | 2 |
|
4 | | -from setuptools import find_packages, setup |
5 | | - |
6 | | -with open("README.md", "r") as fh: |
7 | | - long_description = fh.read() |
8 | | - |
9 | | -VERSION = "devel" |
10 | | -if sys.argv[1] == "--release-version": |
11 | | - sys.argv.pop(1) |
12 | | - VERSION = sys.argv.pop(1) |
13 | | - assert re.match( |
14 | | - r"[0-9]+\.[0-9]+\.[0-9]+", VERSION |
15 | | - ), "Version definition required as first arg" |
16 | | - |
17 | | -requirements = ["3scale-api", "openshift-client"] |
18 | | - |
19 | | -extra_requirements = { |
20 | | - "dev": ["flake8", "mypy", "pylint", "pytest", "python-dotenv", "backoff"], |
21 | | - "docs": ["sphinx"], |
22 | | -} |
23 | | - |
24 | | -setup( |
25 | | - name="3scale-api-crd", |
26 | | - version=VERSION, |
27 | | - description="3scale CRD Python Client", |
28 | | - author="Martin Kudlej", |
29 | | - author_email="kudlej.martin@gmail.com", |
30 | | - maintainer="Matej Dujava", |
31 | | - maintainer_email="mdujava@redhat.com", |
32 | | - url="https://github.com/3scale-qe/3scale-api-python-crd", |
33 | | - packages=find_packages(exclude=("tests",)), |
34 | | - long_description=long_description, |
35 | | - long_description_content_type="text/markdown", |
36 | | - include_package_data=True, |
37 | | - install_requires=requirements, |
38 | | - extras_require=extra_requirements, |
39 | | - entry_points={}, |
40 | | - classifiers=[ |
41 | | - "Programming Language :: Python :: 3", |
42 | | - "Operating System :: OS Independent", |
43 | | - "License :: OSI Approved :: Apache Software License", |
44 | | - "Intended Audience :: Developers", |
45 | | - "Topic :: Utilities", |
46 | | - ], |
47 | | -) |
| 3 | +setup() |
0 commit comments