|
8 | 8 |
|
9 | 9 | def read(file_name):
|
10 | 10 | """Read a text file and return the content as a string."""
|
11 |
| - with io.open(os.path.join(os.path.dirname(__file__), file_name), |
12 |
| - encoding='utf-8') as f: |
| 11 | + with io.open( |
| 12 | + os.path.join(os.path.dirname(__file__), file_name), encoding="utf-8" |
| 13 | + ) as f: |
13 | 14 | return f.read()
|
14 | 15 |
|
| 16 | + |
15 | 17 | setuptools.setup(
|
16 |
| - name='python-magic', |
17 |
| - description='File type identification using libmagic', |
18 |
| - author='Adam Hupp', |
19 |
| - |
| 18 | + name="python-magic", |
| 19 | + description="File type identification using libmagic", |
| 20 | + author="Adam Hupp", |
| 21 | + |
20 | 22 | url="http://github.com/ahupp/python-magic",
|
21 |
| - version='0.4.28', |
22 |
| - long_description=read('README.md'), |
23 |
| - long_description_content_type='text/markdown', |
24 |
| - packages=['magic'], |
| 23 | + version="0.4.28", |
| 24 | + long_description=read("README.md"), |
| 25 | + long_description_content_type="text/markdown", |
| 26 | + packages=["magic"], |
25 | 27 | package_data={
|
26 |
| - 'magic': ['py.typed', '*.pyi', '**/*.pyi'], |
| 28 | + "magic": ["py.typed", "*.pyi", "**/*.pyi"], |
27 | 29 | },
|
28 | 30 | keywords="mime magic file",
|
29 | 31 | license="MIT",
|
30 |
| - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*', |
| 32 | + python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", |
31 | 33 | classifiers=[
|
32 |
| - 'Intended Audience :: Developers', |
33 |
| - 'License :: OSI Approved :: MIT License', |
34 |
| - 'Programming Language :: Python', |
35 |
| - 'Programming Language :: Python :: 2.7', |
36 |
| - 'Programming Language :: Python :: 3', |
37 |
| - 'Programming Language :: Python :: 3.5', |
38 |
| - 'Programming Language :: Python :: 3.6', |
39 |
| - 'Programming Language :: Python :: 3.7', |
40 |
| - 'Programming Language :: Python :: 3.8', |
41 |
| - 'Programming Language :: Python :: 3.9', |
42 |
| - 'Programming Language :: Python :: 3.10', |
43 |
| - 'Programming Language :: Python :: 3.11', |
44 |
| - 'Programming Language :: Python :: 3.12', |
45 |
| - 'Programming Language :: Python :: Implementation :: CPython', |
| 34 | + "Intended Audience :: Developers", |
| 35 | + "License :: OSI Approved :: MIT License", |
| 36 | + "Programming Language :: Python", |
| 37 | + "Programming Language :: Python :: 2.7", |
| 38 | + "Programming Language :: Python :: 3", |
| 39 | + "Programming Language :: Python :: 3.5", |
| 40 | + "Programming Language :: Python :: 3.6", |
| 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 | + "Programming Language :: Python :: Implementation :: CPython", |
46 | 49 | ],
|
47 | 50 | )
|
48 |
| - |
|
0 commit comments