Skip to content

Commit f29cd54

Browse files
committed
introduce setup.cfg
1 parent 803d36d commit f29cd54

File tree

2 files changed

+50
-55
lines changed

2 files changed

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

0 commit comments

Comments
 (0)