Skip to content

Commit c0b52e9

Browse files
committed
fix pep8 issues with setup.py
1 parent bce9ee4 commit c0b52e9

File tree

1 file changed

+41
-44
lines changed

1 file changed

+41
-44
lines changed

setup.py

+41-44
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/env python
22

33
PROJECT = 'virtualenvwrapper'
4-
5-
# Change docs/sphinx/conf.py too!
64
VERSION = '3.5'
75

86
# Bootstrap installation of Distribute
@@ -30,6 +28,7 @@
3028
standard_exclude_directories = ('.*', 'CVS', '_darcs', './build',
3129
'./dist', 'EGG-INFO', '*.egg-info')
3230

31+
3332
def find_package_data(
3433
where='.', package='',
3534
exclude=standard_exclude,
@@ -61,7 +60,7 @@ def find_package_data(
6160
6261
Note patterns use wildcards, or can be exact paths (including
6362
leading ``./``), and all searching is case-insensitive.
64-
63+
6564
This function is by Ian Bicking.
6665
"""
6766

@@ -106,42 +105,40 @@ def find_package_data(
106105
break
107106
if bad_name:
108107
continue
109-
out.setdefault(package, []).append(prefix+name)
108+
out.setdefault(package, []).append(prefix + name)
110109
return out
111110
################################################################################
112-
111+
113112

114113
setup(
115-
name = PROJECT,
116-
version = VERSION,
117-
118-
description = 'Enhancements to virtualenv',
119-
long_description = long_description,
120-
121-
author = 'Doug Hellmann',
122-
author_email = '[email protected]',
123-
124-
url = 'http://www.doughellmann.com/projects/%s/' % PROJECT,
125-
#download_url = 'http://www.doughellmann.com/downloads/%s-%s.tar.gz' % \
126-
# (PROJECT, VERSION),
127-
128-
classifiers = [ 'Development Status :: 5 - Production/Stable',
129-
'License :: OSI Approved :: MIT License',
130-
'Programming Language :: Python',
131-
'Programming Language :: Python :: 2',
132-
'Programming Language :: Python :: 2.6',
133-
'Programming Language :: Python :: 2.7',
134-
'Programming Language :: Python :: 3',
135-
'Programming Language :: Python :: 3.2',
136-
'Intended Audience :: Developers',
137-
'Environment :: Console',
138-
],
139-
140-
platforms = ['Any'],
141-
142-
scripts = ['virtualenvwrapper.sh',
143-
'virtualenvwrapper_lazy.sh',
144-
],
114+
name=PROJECT,
115+
version=VERSION,
116+
117+
description='Enhancements to virtualenv',
118+
long_description=long_description,
119+
120+
author='Doug Hellmann',
121+
author_email='[email protected]',
122+
123+
url='http://www.doughellmann.com/projects/%s/' % PROJECT,
124+
125+
classifiers=['Development Status :: 5 - Production/Stable',
126+
'License :: OSI Approved :: MIT License',
127+
'Programming Language :: Python',
128+
'Programming Language :: Python :: 2',
129+
'Programming Language :: Python :: 2.6',
130+
'Programming Language :: Python :: 2.7',
131+
'Programming Language :: Python :: 3',
132+
'Programming Language :: Python :: 3.2',
133+
'Intended Audience :: Developers',
134+
'Environment :: Console',
135+
],
136+
137+
platforms=['Any'],
138+
139+
scripts=['virtualenvwrapper.sh',
140+
'virtualenvwrapper_lazy.sh',
141+
],
145142

146143
provides=['virtualenvwrapper',
147144
'virtualenvwrapper.user_scripts',
@@ -152,18 +149,18 @@ def find_package_data(
152149
'stevedore',
153150
],
154151

155-
namespace_packages = [ 'virtualenvwrapper' ],
156-
packages = find_packages(),
157-
include_package_data = True,
152+
namespace_packages=['virtualenvwrapper'],
153+
packages=find_packages(),
154+
include_package_data=True,
158155
# Scan the input for package information
159-
# to grab any data files (text, images, etc.)
156+
# to grab any data files (text, images, etc.)
160157
# associated with sub-packages.
161-
package_data = find_package_data(PROJECT,
162-
package=PROJECT,
163-
only_in_packages=False,
164-
),
158+
package_data=find_package_data(PROJECT,
159+
package=PROJECT,
160+
only_in_packages=False,
161+
),
165162

166-
entry_points = {
163+
entry_points={
167164
#'console_scripts': [ 'venvw_hook = virtualenvwrapper.hook_loader:main' ],
168165
'virtualenvwrapper.initialize': [
169166
'user_scripts = virtualenvwrapper.user_scripts:initialize',

0 commit comments

Comments
 (0)