Skip to content

Commit abd8914

Browse files
committed
Migrate most of the setup metadata to setup.cfg
1 parent 976abe1 commit abd8914

2 files changed

Lines changed: 45 additions & 49 deletions

File tree

setup.cfg

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,54 @@
1+
[metadata]
2+
name = minfraud
3+
author = Gregory Oschwald
4+
author_email = goschwald@maxmind.com
5+
license = Apache License 2.0
6+
description = MaxMind minFraud Score, Insights, Factors and Report Transactions API
7+
url = https://www.maxmind.com/
8+
long_description = file: README.rst
9+
classifiers =
10+
Development Status :: 5 - Production/Stable
11+
Environment :: Web Environment
12+
Intended Audience :: Developers
13+
License :: OSI Approved :: Apache Software License
14+
Programming Language :: Python :: 3
15+
Programming Language :: Python :: 3.7
16+
Programming Language :: Python :: 3.8
17+
Programming Language :: Python :: 3.9
18+
Programming Language :: Python :: 3.10
19+
Programming Language :: Python
20+
Topic :: Internet :: Proxy Servers
21+
Topic :: Internet :: WWW/HTTP
22+
Topic :: Internet
23+
platforms = any
24+
project_urls =
25+
Documentation = https://minfraud.readthedocs.org/
26+
Source Code = https://github.com/maxmind/minfraud-api-python
27+
Issue Tracker = https://github.com/maxmind/minfraud-api-python/issues
28+
129
[flake8]
230
# black uses 88 : ¯\_(ツ)_/¯
331
max-line-length = 88
432

33+
[options]
34+
packages = minfraud
35+
install_requires =
36+
aiohttp>=3.6.2,<4.0.0
37+
email_validator>=1.1.1,<3.0.0
38+
geoip2>=4.7.0,<5.0.0
39+
requests>=2.24.0,<3.0.0
40+
voluptuous
41+
include_package_data = True
42+
python_requires = >=3.7
43+
test_suite = tests
44+
tests_require = mocket>=3.11.1
45+
546
[wheel]
647
universal = 1
748

49+
[options.package_data]
50+
minfraud = py.typed
51+
852
[tox:tox]
953
envlist = {py37,py38,py39,py310}-test,py310-{black,lint,flake8,mypy}
1054

@@ -27,7 +71,7 @@ commands = pytest tests
2771

2872
[testenv:py310-black]
2973
deps = black
30-
commands = black --check --diff .
74+
commands = black --check --diff .
3175

3276
[testenv:py310-lint]
3377
deps = pylint

setup.py

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import ast
44
import io
5-
import os
65
import re
7-
import sys
86

97
from setuptools import setup
108

@@ -13,52 +11,6 @@
1311
with io.open("minfraud/version.py", "r", encoding="utf-8") as f:
1412
_version = str(ast.literal_eval(_version_re.search(f.read()).group(1)))
1513

16-
with io.open("README.rst", "r", encoding="utf-8") as f:
17-
_readme = f.read()
18-
19-
requirements = [
20-
"aiohttp>=3.6.2,<4.0.0",
21-
"email_validator>=1.1.1,<3.0.0",
22-
"geoip2>=4.7.0,<5.0.0",
23-
"requests>=2.24.0,<3.0.0",
24-
"voluptuous",
25-
]
26-
2714
setup(
28-
name="minfraud",
2915
version=_version,
30-
description="MaxMind minFraud Score, Insights, Factors and Report Transactions API",
31-
long_description=_readme,
32-
author="Gregory Oschwald",
33-
author_email="goschwald@maxmind.com",
34-
url="https://www.maxmind.com/",
35-
packages=["minfraud"],
36-
package_data={"minfraud": ["py.typed"]},
37-
include_package_data=True,
38-
platforms="any",
39-
python_requires=">=3.7",
40-
install_requires=requirements,
41-
tests_require=["mocket>=3.11.1"],
42-
test_suite="tests",
43-
license="Apache License 2.0 ",
44-
classifiers=[
45-
"Development Status :: 5 - Production/Stable",
46-
"Environment :: Web Environment",
47-
"Intended Audience :: Developers",
48-
"License :: OSI Approved :: Apache Software License",
49-
"Programming Language :: Python :: 3",
50-
"Programming Language :: Python :: 3.7",
51-
"Programming Language :: Python :: 3.8",
52-
"Programming Language :: Python :: 3.9",
53-
"Programming Language :: Python :: 3.10",
54-
"Programming Language :: Python",
55-
"Topic :: Internet :: Proxy Servers",
56-
"Topic :: Internet :: WWW/HTTP",
57-
"Topic :: Internet",
58-
],
59-
project_urls={
60-
"Documentation": "https://minfraud.readthedocs.org/",
61-
"Source Code": "https://github.com/maxmind/minfraud-api-python",
62-
"Issue Tracker": "https://github.com/maxmind/minfraud-api-python/issues",
63-
},
6416
)

0 commit comments

Comments
 (0)