Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
c0f57714
Commit
c0f57714
authored
May 02, 2016
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tabs to spaces in two more files. Ref #489.
parent
0d3a8966
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
pavement.py
pavement.py
+19
-19
setuptools/version.py
setuptools/version.py
+2
-2
No files found.
pavement.py
View file @
c0f57714
...
@@ -4,25 +4,25 @@ from paver.easy import task, path as Path
...
@@ -4,25 +4,25 @@ from paver.easy import task, path as Path
import
pip
import
pip
def
remove_all
(
paths
):
def
remove_all
(
paths
):
for
path
in
paths
:
for
path
in
paths
:
path
.
rmtree
()
if
path
.
isdir
()
else
path
.
remove
()
path
.
rmtree
()
if
path
.
isdir
()
else
path
.
remove
()
@
task
@
task
def
update_vendored
():
def
update_vendored
():
vendor
=
Path
(
'pkg_resources/_vendor'
)
vendor
=
Path
(
'pkg_resources/_vendor'
)
remove_all
(
vendor
.
glob
(
'packaging*'
))
remove_all
(
vendor
.
glob
(
'packaging*'
))
remove_all
(
vendor
.
glob
(
'six*'
))
remove_all
(
vendor
.
glob
(
'six*'
))
remove_all
(
vendor
.
glob
(
'pyparsing*'
))
remove_all
(
vendor
.
glob
(
'pyparsing*'
))
install_args
=
[
install_args
=
[
'install'
,
'install'
,
'-r'
,
str
(
vendor
/
'vendored.txt'
),
'-r'
,
str
(
vendor
/
'vendored.txt'
),
'-t'
,
str
(
vendor
),
'-t'
,
str
(
vendor
),
]
]
pip
.
main
(
install_args
)
pip
.
main
(
install_args
)
packaging
=
vendor
/
'packaging'
packaging
=
vendor
/
'packaging'
for
file
in
packaging
.
glob
(
'*.py'
):
for
file
in
packaging
.
glob
(
'*.py'
):
text
=
file
.
text
()
text
=
file
.
text
()
text
=
re
.
sub
(
r' (pyparsing|six)'
,
r' pkg_resources.extern.\1'
,
text
)
text
=
re
.
sub
(
r' (pyparsing|six)'
,
r' pkg_resources.extern.\1'
,
text
)
file
.
write_text
(
text
)
file
.
write_text
(
text
)
remove_all
(
vendor
.
glob
(
'*.dist-info'
))
remove_all
(
vendor
.
glob
(
'*.dist-info'
))
remove_all
(
vendor
.
glob
(
'*.egg-info'
))
remove_all
(
vendor
.
glob
(
'*.egg-info'
))
setuptools/version.py
View file @
c0f57714
import
pkg_resources
import
pkg_resources
try
:
try
:
__version__
=
pkg_resources
.
require
(
'setuptools'
)[
0
].
version
__version__
=
pkg_resources
.
require
(
'setuptools'
)[
0
].
version
except
Exception
:
except
Exception
:
__version__
=
'unknown'
__version__
=
'unknown'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment