|
19 | 19 | # with Crate these terms will supersede the license and you may use the |
20 | 20 | # software solely pursuant to the terms of the relevant commercial agreement. |
21 | 21 |
|
22 | | -from setuptools import setup, find_packages |
23 | 22 | import os |
24 | 23 | import re |
25 | 24 |
|
| 25 | +from setuptools import find_packages, setup |
| 26 | + |
26 | 27 |
|
27 | 28 | def read(path): |
28 | 29 | with open(os.path.join(os.path.dirname(__file__), path)) as f: |
29 | 30 | return f.read() |
30 | 31 |
|
31 | 32 |
|
32 | | -long_description = read('README.rst') |
| 33 | +long_description = read("README.rst") |
33 | 34 | versionf_content = read("src/crate/client/__init__.py") |
34 | 35 | version_rex = r'^__version__ = [\'"]([^\'"]*)[\'"]$' |
35 | 36 | m = re.search(version_rex, versionf_content, re.M) |
36 | 37 | if m: |
37 | 38 | version = m.group(1) |
38 | 39 | else: |
39 | | - raise RuntimeError('Unable to find version string') |
| 40 | + raise RuntimeError("Unable to find version string") |
40 | 41 |
|
41 | 42 | setup( |
42 | | - name='crate', |
| 43 | + name="crate", |
43 | 44 | version=version, |
44 | | - url='https://github.com/crate/crate-python', |
45 | | - author='Crate.io', |
46 | | - |
47 | | - package_dir={'': 'src'}, |
48 | | - description='CrateDB Python Client', |
| 45 | + url="https://github.com/crate/crate-python", |
| 46 | + author="Crate.io", |
| 47 | + |
| 48 | + package_dir={"": "src"}, |
| 49 | + description="CrateDB Python Client", |
49 | 50 | long_description=long_description, |
50 | | - long_description_content_type='text/x-rst', |
51 | | - platforms=['any'], |
52 | | - license='Apache License 2.0', |
53 | | - keywords='cratedb db api dbapi database sql http rdbms olap', |
54 | | - packages=find_packages('src'), |
55 | | - namespace_packages=['crate'], |
| 51 | + long_description_content_type="text/x-rst", |
| 52 | + platforms=["any"], |
| 53 | + license="Apache License 2.0", |
| 54 | + keywords="cratedb db api dbapi database sql http rdbms olap", |
| 55 | + packages=find_packages("src"), |
| 56 | + namespace_packages=["crate"], |
56 | 57 | install_requires=[ |
57 | | - 'urllib3<2.3', |
58 | | - 'verlib2==0.2.0', |
| 58 | + "urllib3<2.3", |
| 59 | + "verlib2==0.2.0", |
59 | 60 | ], |
60 | | - extras_require=dict( |
61 | | - test=['tox>=3,<5', |
62 | | - 'zope.testing>=4,<6', |
63 | | - 'zope.testrunner>=5,<7', |
64 | | - 'zc.customdoctests>=1.0.1,<2', |
65 | | - 'backports.zoneinfo<1; python_version<"3.9"', |
66 | | - 'certifi', |
67 | | - 'createcoverage>=1,<2', |
68 | | - 'stopit>=1.1.2,<2', |
69 | | - 'flake8>=4,<8', |
70 | | - 'pytz', |
71 | | - ], |
72 | | - doc=['sphinx>=3.5,<9', |
73 | | - 'crate-docs-theme>=0.26.5'], |
74 | | - ), |
75 | | - python_requires='>=3.6', |
76 | | - package_data={'': ['*.txt']}, |
| 61 | + extras_require={ |
| 62 | + "doc": [ |
| 63 | + "crate-docs-theme>=0.26.5", |
| 64 | + "sphinx>=3.5,<9", |
| 65 | + ], |
| 66 | + "test": [ |
| 67 | + 'backports.zoneinfo<1; python_version<"3.9"', |
| 68 | + "certifi", |
| 69 | + "createcoverage>=1,<2", |
| 70 | + "mypy<1.14", |
| 71 | + "poethepoet<0.30", |
| 72 | + "ruff<0.8", |
| 73 | + "stopit>=1.1.2,<2", |
| 74 | + "tox>=3,<5", |
| 75 | + "pytz", |
| 76 | + "zc.customdoctests>=1.0.1,<2", |
| 77 | + "zope.testing>=4,<6", |
| 78 | + "zope.testrunner>=5,<7", |
| 79 | + ], |
| 80 | + }, |
| 81 | + python_requires=">=3.6", |
| 82 | + package_data={"": ["*.txt"]}, |
77 | 83 | classifiers=[ |
78 | | - 'Development Status :: 5 - Production/Stable', |
79 | | - 'Intended Audience :: Developers', |
80 | | - 'License :: OSI Approved :: Apache Software License', |
81 | | - 'Operating System :: OS Independent', |
82 | | - 'Programming Language :: Python', |
83 | | - 'Programming Language :: Python :: 3', |
84 | | - 'Programming Language :: Python :: 3.6', |
85 | | - 'Programming Language :: Python :: 3.7', |
86 | | - 'Programming Language :: Python :: 3.8', |
87 | | - 'Programming Language :: Python :: 3.9', |
88 | | - 'Programming Language :: Python :: 3.10', |
89 | | - 'Programming Language :: Python :: 3.11', |
90 | | - 'Programming Language :: Python :: 3.12', |
91 | | - 'Programming Language :: Python :: 3.13', |
92 | | - 'Programming Language :: Python :: Implementation :: CPython', |
93 | | - 'Programming Language :: Python :: Implementation :: PyPy', |
94 | | - 'Topic :: Database' |
| 84 | + "Development Status :: 5 - Production/Stable", |
| 85 | + "Intended Audience :: Developers", |
| 86 | + "License :: OSI Approved :: Apache Software License", |
| 87 | + "Operating System :: OS Independent", |
| 88 | + "Programming Language :: Python", |
| 89 | + "Programming Language :: Python :: 3", |
| 90 | + "Programming Language :: Python :: 3.6", |
| 91 | + "Programming Language :: Python :: 3.7", |
| 92 | + "Programming Language :: Python :: 3.8", |
| 93 | + "Programming Language :: Python :: 3.9", |
| 94 | + "Programming Language :: Python :: 3.10", |
| 95 | + "Programming Language :: Python :: 3.11", |
| 96 | + "Programming Language :: Python :: 3.12", |
| 97 | + "Programming Language :: Python :: 3.13", |
| 98 | + "Programming Language :: Python :: Implementation :: CPython", |
| 99 | + "Programming Language :: Python :: Implementation :: PyPy", |
| 100 | + "Topic :: Database", |
95 | 101 | ], |
96 | 102 | ) |
0 commit comments