|
1 | 1 | #! /usr/bin/env python |
2 | 2 |
|
3 | | -# adapted from mne-python |
4 | | - |
5 | | -import os |
6 | | - |
7 | 3 | from setuptools import setup |
8 | 4 |
|
9 | | -from codespell_lib import __version__ |
10 | | - |
11 | | -DISTNAME = 'codespell' |
12 | | -DESCRIPTION = """Codespell""" |
13 | | -MAINTAINER = 'Lucas De Marchi' |
14 | | -MAINTAINER_EMAIL = '[email protected]' |
15 | | -URL = 'https://github.com/codespell-project/codespell/' |
16 | | -LICENSE = 'GPL v2' |
17 | | -DOWNLOAD_URL = 'https://github.com/codespell-project/codespell/' |
18 | | -with open('README.rst', 'r') as f: |
19 | | - LONG_DESCRIPTION = f.read() |
20 | | - |
21 | 5 | if __name__ == "__main__": |
22 | | - if os.path.exists('MANIFEST'): |
23 | | - os.remove('MANIFEST') |
24 | | - |
25 | | - setup(name=DISTNAME, |
26 | | - maintainer=MAINTAINER, |
27 | | - include_package_data=True, |
28 | | - maintainer_email=MAINTAINER_EMAIL, |
29 | | - description=DESCRIPTION, |
30 | | - license=LICENSE, |
31 | | - url=URL, |
32 | | - version=__version__, |
33 | | - download_url=DOWNLOAD_URL, |
34 | | - long_description=LONG_DESCRIPTION, |
35 | | - long_description_content_type='text/x-rst', |
36 | | - zip_safe=False, |
37 | | - classifiers=['Intended Audience :: Developers', |
38 | | - 'License :: OSI Approved', |
39 | | - 'Programming Language :: Python', |
40 | | - 'Topic :: Software Development', |
41 | | - 'Operating System :: Microsoft :: Windows', |
42 | | - 'Operating System :: POSIX', |
43 | | - 'Operating System :: Unix', |
44 | | - 'Operating System :: MacOS'], |
45 | | - platforms='any', |
46 | | - python_requires='>=3.7', |
47 | | - packages=[ |
48 | | - 'codespell_lib', |
49 | | - 'codespell_lib.tests', |
50 | | - 'codespell_lib.data', |
51 | | - ], |
52 | | - package_data={'codespell_lib': [ |
53 | | - os.path.join('data', 'dictionary*.txt'), |
54 | | - os.path.join('data', 'linux-kernel.exclude'), |
55 | | - ]}, |
56 | | - entry_points={ |
57 | | - 'console_scripts': [ |
58 | | - 'codespell = codespell_lib:_script_main' |
59 | | - ], |
60 | | - }, |
61 | | - # TODO: toml will need to be updated when 3.11 comes out as it's a |
62 | | - # CPython module there |
63 | | - extras_require={ |
64 | | - "dev": ["check-manifest", "flake8", "pytest", "pytest-cov", |
65 | | - "pytest-dependency", "tomli"], |
66 | | - "hard-encoding-detection": ["chardet"], |
67 | | - "toml": ["tomli"], |
68 | | - } |
69 | | - ) |
| 6 | + setup() |
0 commit comments