|
2 | 2 |
|
3 | 3 | import ast |
4 | 4 | import io |
5 | | -import os |
6 | 5 | import re |
7 | | -import sys |
8 | 6 |
|
9 | 7 | from setuptools import setup |
10 | 8 |
|
|
13 | 11 | with io.open("minfraud/version.py", "r", encoding="utf-8") as f: |
14 | 12 | _version = str(ast.literal_eval(_version_re.search(f.read()).group(1))) |
15 | 13 |
|
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 | | - |
27 | 14 | setup( |
28 | | - name="minfraud", |
29 | 15 | 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.8.6"], |
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 | | - }, |
64 | 16 | ) |
0 commit comments