Skip to content

Commit bc16fc0

Browse files
committed
switch to setup.cfg
1 parent eca3788 commit bc16fc0

3 files changed

Lines changed: 60 additions & 52 deletions

File tree

Pipfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
[dev-packages]
2+
black = "*"
23
flake8 = "*"
34
mypy = "*"
45
pylint = "*"
5-
black = "*"
6-
pytest = "*"
7-
python-dotenv = "*"
8-
backoff = "*"
9-
python-language-server = "*"
6+
7+
#python-language-server = "*"
108
#pyls-mypy = "*"
11-
pyls-isort = "*"
9+
#pyls-isort = "*"
10+
11+
python-dotenv = "*"
12+
pytest = "*"
13+
pytest-xdist = "*"
1214
pytest-order = "*"
1315

1416
[packages]
1517
3scale-api = "*"
1618
openshift-client = "*"
19+
python-backoff = "*"
1720

1821
[requires]
1922
python_version = "3"

setup.cfg

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[metadata]
2+
name = 3scale-api-crd
3+
version = VERSION
4+
description = 3scale CRD Python Client
5+
author = Martin Kudlej
6+
author_email = kudlej.martin@gmail.com
7+
maintainer = Matej Dujava
8+
maintainer_email = mdujava@redhat.com
9+
url = https://github.com/3scale-qe/3scale-api-python-crd
10+
license = Apache-2.0
11+
license_files = LICENSE
12+
long_description = file: README.md
13+
long_description_content_type = text/markdown
14+
classifiers =
15+
Operating System :: OS Independent
16+
Intended Audience :: Developers
17+
Topic :: Utilities
18+
Programming Language :: Python :: 3
19+
20+
[options]
21+
packages = find:
22+
include_package_data = True
23+
install_requires =
24+
3scale-api
25+
openshift-client
26+
python-backoff
27+
28+
[options.packages.find]
29+
exclude = tests
30+
31+
[options.extras_require]
32+
dev =
33+
flake8
34+
mypy
35+
pylint
36+
pytest
37+
pytest-xdist
38+
pytest-order
39+
python-dotenv
40+
docs = sphinx
41+
42+
[flake8]
43+
max-line-length = 120
44+
ignore = E203,W503
45+
46+
[mypy]
47+
ignore_missing_imports = True
48+
check_untyped_defs = true
49+
local_partial_types = true

setup.py

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,3 @@
1-
import re
2-
import sys
1+
from setuptools import setup
32

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

Comments
 (0)