|
1 | 1 | from setuptools import setup
|
2 |
| - |
3 |
| - |
4 |
| -def get_version(): |
5 |
| - with open('pycodestyle.py') as f: |
6 |
| - for line in f: |
7 |
| - if line.startswith('__version__'): |
8 |
| - return eval(line.split('=')[-1]) |
9 |
| - |
10 |
| - |
11 |
| -def get_long_description(): |
12 |
| - descr = [] |
13 |
| - for fname in 'README.rst', 'CHANGES.txt': |
14 |
| - with open(fname) as f: |
15 |
| - descr.append(f.read()) |
16 |
| - return '\n\n'.join(descr) |
17 |
| - |
18 |
| - |
19 |
| -setup( |
20 |
| - name='pycodestyle', |
21 |
| - version=get_version(), |
22 |
| - description="Python style guide checker", |
23 |
| - long_description=get_long_description(), |
24 |
| - keywords='pycodestyle, pep8, PEP 8, PEP-8, PEP8', |
25 |
| - author='Johann C. Rocholl', |
26 |
| - |
27 |
| - maintainer='Ian Lee', |
28 |
| - maintainer_email='[email protected]', |
29 |
| - url='https://pycodestyle.pycqa.org/', |
30 |
| - license='Expat license', |
31 |
| - py_modules=['pycodestyle'], |
32 |
| - include_package_data=True, |
33 |
| - zip_safe=False, |
34 |
| - python_requires='>=3.8', |
35 |
| - entry_points={ |
36 |
| - 'console_scripts': [ |
37 |
| - 'pycodestyle = pycodestyle:_main', |
38 |
| - ], |
39 |
| - }, |
40 |
| - classifiers=[ |
41 |
| - 'Development Status :: 5 - Production/Stable', |
42 |
| - 'Environment :: Console', |
43 |
| - 'Intended Audience :: Developers', |
44 |
| - 'License :: OSI Approved :: MIT License', |
45 |
| - 'Operating System :: OS Independent', |
46 |
| - 'Programming Language :: Python', |
47 |
| - 'Programming Language :: Python :: 3', |
48 |
| - 'Programming Language :: Python :: Implementation :: CPython', |
49 |
| - 'Programming Language :: Python :: Implementation :: PyPy', |
50 |
| - 'Topic :: Software Development :: Libraries :: Python Modules', |
51 |
| - ], |
52 |
| - project_urls={ |
53 |
| - 'Changes': |
54 |
| - 'https://pycodestyle.pycqa.org/en/latest/developer.html#changes', |
55 |
| - }, |
56 |
| -) |
| 2 | +setup() |
0 commit comments