File: setup.py

package info (click to toggle)
flake8-blind-except 0.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 68 kB
  • sloc: python: 48; sh: 5; makefile: 3
file content (34 lines) | stat: -rw-r--r-- 976 bytes parent folder | download
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='elijahcandrews@gmail.com',
    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,
)