-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
34 lines (30 loc) · 976 Bytes
/
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
from setuptools import setup
def get_version(fname='flake8_blind_except.py'):
with open(fname) as f:
for line in f:
if line.startswith('__version__'):
return eval(line.split('=')[-1])
def get_long_description():
descr = []
for fname in ('README.rst',):
with open(fname) as f:
descr.append(f.read())
return '\n\n'.join(descr)
setup(
name='flake8-blind-except',
description='A flake8 extension that checks for blind except: statements',
long_description=get_long_description(),
keywords='flake8 except exception',
version=get_version(),
author='Elijah Andrews',
author_email='[email protected]',
entry_points={
'flake8.extension': [
'B90 = flake8_blind_except:check_blind_except'
],
},
url='https://github.com/elijahandrews/flake8-blind-except',
license='MIT',
py_modules=['flake8_blind_except'],
zip_safe=False,
)