Skip to content

Commit 7354161

Browse files
committed
introduce setup.cfg
1 parent 9d3c2f6 commit 7354161

File tree

2 files changed

+50
-48
lines changed

2 files changed

+50
-48
lines changed

setup.cfg

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[metadata]
2+
name = 3scale-api
3+
version = 0.35.2
4+
description = 3scale API python client
5+
author = Peter Stanko
6+
author_email = stanko@mail.muni.cz
7+
maintainer = Matej Dujava
8+
maintainer_email = mdujava@redhat.com
9+
url = https://github.com/3scale-qe/3scale-api-python
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+
requests
25+
backoff
26+
27+
[options.packages.find]
28+
exclude = tests
29+
30+
[options.extras_require]
31+
dev =
32+
coverage
33+
flake8
34+
mypy
35+
pylint
36+
pytest
37+
python-dotenv
38+
responses
39+
docs = sphinx
40+
41+
[flake8]
42+
max-line-length = 120
43+
ignore = E203,W503
44+
45+
[mypy]
46+
ignore_missing_imports = True
47+
check_untyped_defs = true
48+
local_partial_types = true

setup.py

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +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") 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(r"[0-9]+\.[0-9]+\.[0-9]+", VERSION), "Version definition required as first arg"
14-
15-
requirements = ["requests", "backoff"]
16-
17-
extra_requirements = {"dev": ["pytest", "coverage", "python-dotenv", "responses"], "docs": ["sphinx"]}
18-
19-
setup(
20-
name="3scale-api",
21-
version=VERSION,
22-
description="3scale API python client",
23-
author="Peter Stanko",
24-
author_email="stanko@mail.muni.cz",
25-
maintainer="Matej Dujava",
26-
maintainer_email="mdujava@redhat.com",
27-
url="https://github.com/3scale-qe/3scale-api-python",
28-
packages=find_packages(exclude=("tests",)),
29-
long_description=long_description,
30-
long_description_content_type="text/markdown",
31-
include_package_data=True,
32-
install_requires=requirements,
33-
extras_require=extra_requirements,
34-
entry_points={},
35-
classifiers=[
36-
"Operating System :: OS Independent",
37-
"License :: OSI Approved :: Apache Software License",
38-
"Intended Audience :: Developers",
39-
"Topic :: Utilities",
40-
"Programming Language :: Python :: 3",
41-
"Programming Language :: Python :: 3.7",
42-
"Programming Language :: Python :: 3.8",
43-
"Programming Language :: Python :: 3.9",
44-
"Programming Language :: Python :: 3.10",
45-
"Programming Language :: Python :: 3.11",
46-
"Programming Language :: Python :: 3.12",
47-
"Programming Language :: Python :: 3.13",
48-
],
49-
)
3+
setup()

0 commit comments

Comments
 (0)