Skip to content

Commit 3f8ba1c

Browse files
committed
Line width
1 parent 7fffead commit 3f8ba1c

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

setup.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,28 @@
77

88

99
def read(*args):
10-
return open(os.path.join(os.path.dirname(__file__), *args),
11-
encoding='utf8').read()
10+
return open(os.path.join(os.path.dirname(__file__), *args), encoding='utf8').read()
1211

1312

1413
def extract_version(version_file):
15-
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
16-
version_file, re.M)
14+
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
1715
if version_match:
1816
return version_match.group(1)
1917

2018
raise RuntimeError("Unable to find version string.")
2119

2220

2321
if sys.version_info < (3, 6):
24-
sys.stderr.write('ERROR: You need Python 3.6 or later '
25-
'to install this package.\n')
22+
sys.stderr.write('ERROR: You need Python 3.6 or later to install this package.\n')
2623
exit(1)
2724

2825
extras_require = {'plotting': ['matplotlib'],
2926
'bloch_sphere_visualization': ['qutip', 'matplotlib'],
3027
'fancy_progressbar': ['requests'],
31-
'doc': ['jupyter', 'nbsphinx', 'numpydoc', 'sphinx',
32-
'sphinx_rtd_theme'],
28+
'doc': ['jupyter', 'nbsphinx', 'numpydoc', 'sphinx', 'sphinx_rtd_theme'],
3329
'tests': ['pytest>=4.6', 'pytest-cov', 'codecov']}
3430

35-
extras_require['all'] = [dep for deps in extras_require.values()
36-
for dep in deps]
31+
extras_require['all'] = [dep for deps in extras_require.values() for dep in deps]
3732

3833
setup(name='filter_functions',
3934
version=extract_version(read('filter_functions', '__init__.py')),

0 commit comments

Comments
 (0)