forked from Robpol86/flake8-pydocstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·62 lines (53 loc) · 1.92 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env python
"""Setup script for the project."""
from __future__ import print_function
import codecs
import os
from setuptools import setup
def safe_read(path):
"""Try to read file or return empty string if failed.
:param str path: Relative file path to read.
:return: File contents.
:rtype: str
"""
abspath, file_handle = os.path.join(os.path.abspath(os.path.dirname(__file__)), path), None
try:
file_handle = codecs.open(abspath, encoding='utf-8')
return file_handle.read(131072)
except IOError:
return ''
finally:
getattr(file_handle, 'close', lambda: None)()
setup(
author='@Robpol86',
author_email='[email protected]',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: MacOS X',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Quality Assurance',
],
description='Flake8 plugin for the pep257 Python utility.',
entry_points={'flake8.extension': 'D = flake8_pep257:Main'},
install_requires=['flake8', 'pep257'],
keywords='flake8 pep257 docstrings',
license='MIT',
long_description=safe_read('README.rst'),
name='flake8-pep257',
py_modules=['flake8_pep257'],
url='https://github.com/Robpol86/flake8-pep257',
version='1.0.5',
zip_safe=True,
)