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
48b0d2bf
Commit
48b0d2bf
authored
Jun 19, 2013
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Plain Diff
Merge with 0.7.4
parents
5d9d3930
aa2269f6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
667 additions
and
4 deletions
+667
-4
.hgtags
.hgtags
+1
-0
CHANGES.txt
CHANGES.txt
+6
-0
MANIFEST.in
MANIFEST.in
+1
-1
setuptools/command/egg_info.py
setuptools/command/egg_info.py
+4
-3
setuptools/tests/entries-v10
setuptools/tests/entries-v10
+615
-0
setuptools/tests/test_egg_info.py
setuptools/tests/test_egg_info.py
+40
-0
No files found.
.hgtags
View file @
48b0d2bf
...
...
@@ -64,3 +64,4 @@ ddca71ae5ceb9b14512dc60ea83802c10e224cf0 0.6.45
d04c05f035e3a5636006fc34f4be7e6c77035d17 0.7.2
d212e48e0cef689acba57ed017289c027660b23c 0.7.3
74c6c12268059986f9cc0b535399594f1d131201 0.8b1
85640475dda0621f20e11db0995fa07f51744a98 0.7.4
CHANGES.txt
View file @
48b0d2bf
...
...
@@ -9,6 +9,12 @@ CHANGES
* Code base now runs on Python 2.4 - Python 3.3 without Python 2to3
conversion.
-----
0.7.4
-----
* Issue #20: Fix comparison of parsed SVN version on Python 3.
-----
0.7.3
-----
...
...
MANIFEST.in
View file @
48b0d2bf
recursive-include setuptools *.py *.txt *.exe *.xml
recursive-include tests *.py *.c *.pyx *.txt
recursive-include setuptools/tests *.html
recursive-include setuptools/tests *.html
entries*
recursive-include docs *.py *.txt *.conf *.css *.css_t Makefile indexsidebar.html
recursive-include _markerlib *.py
include *.py
...
...
setuptools/command/egg_info.py
View file @
48b0d2bf
...
...
@@ -211,7 +211,8 @@ class egg_info(Command):
def
get_svn_revision
(
self
):
@
staticmethod
def
get_svn_revision
():
revision
=
0
urlre
=
re
.
compile
(
'url="([^"]+)"'
)
revre
=
re
.
compile
(
'committed-rev="(
\
d+)
"
'
)
...
...
@@ -231,11 +232,11 @@ class egg_info(Command):
else
:
try
:
svnver
=
int
(
data
.
splitlines
()[
0
])
except
:
svnver
=-
1
if
data
<
8
:
if
svnver
<
8
:
log
.
warn
(
"unrecognized .svn/entries format; skipping %s"
,
base
)
dirs
[:]
=
[]
continue
data
=
list
(
map
(
str
.
splitlines
,
data
.
split
(
'
\
n
\
x0c
\
n
'
)))
del
data
[
0
][
0
]
# get rid of the '8' or '9' or '10'
dirurl
=
data
[
0
][
3
]
...
...
setuptools/tests/entries-v10
0 → 100644
View file @
48b0d2bf
10
dir
89001
http://svn.python.org/projects/sandbox/branches/setuptools-0.6
http://svn.python.org/projects
2013-06-03T17:26:03.052972Z
89000
phillip.eby
6015fed2-1504-0410-9fe1-9d1591cc4771
api_tests.txt
file
2013-06-19T13:20:47.948712Z
dec366372ca14fbeaeb26f492bcf5725
2013-05-15T22:04:59.389374Z
88997
phillip.eby
has-props
12312
setuptools.egg-info
dir
README.txt
file
2013-06-19T13:20:47.948712Z
26f0dd5d095522ba3ad999b6b6777b92
2011-05-31T20:10:56.416725Z
88846
phillip.eby
has-props
7615
easy_install.py
file
2013-06-19T13:20:47.948712Z
97b52fe7253bf4683f9f626f015eb72e
2006-09-20T20:48:18.716070Z
51935
phillip.eby
has-props
126
setuptools
dir
launcher.c
file
2013-06-19T13:20:47.924700Z
e5a8e77de9022688b80f77fc6d742fee
2009-10-19T21:03:29.785400Z
75544
phillip.eby
has-props
7476
ez_setup.py
file
2013-06-19T13:20:47.924700Z
17e8ec5e08faccfcb08b5f8d5167ca14
2011-01-20T18:50:00.815420Z
88124
phillip.eby
has-props
8350
version
file
2013-06-19T13:20:47.924700Z
e456da09e0c9e224a56302f8316b6dbf
2007-01-09T19:21:05.921317Z
53317
phillip.eby
has-props
1143
setup.py
file
2013-06-19T13:20:47.924700Z
d4e5b3c16bd61bfef6c0bb9377a3a3ea
2013-05-15T22:04:59.389374Z
88997
phillip.eby
has-props
5228
release.sh
file
2013-06-19T13:20:47.932704Z
b1fd4054a1c107ff0f27baacd97be94c
2009-10-28T17:12:45.227140Z
75925
phillip.eby
has-props
1044
pkg_resources.txt
file
2013-06-19T13:20:47.928702Z
f497e7c92a4de207cbd9ab1943f93388
2009-10-12T20:00:02.336146Z
75385
phillip.eby
has-props
94518
site.py
file
2013-06-19T13:20:47.932704Z
ebaac6fb6525f77ca950d22e6f8315df
2006-03-11T00:39:09.666740Z
42965
phillip.eby
has-props
2362
version.dat
file
2013-06-19T13:20:47.932704Z
8e14ecea32b9874cd7d29277494554c0
2009-10-28T17:12:45.227140Z
75925
phillip.eby
has-props
80
virtual-python.py
file
2013-06-19T13:20:47.932704Z
aa857add3b5563238f0a904187f5ded9
2005-10-17T02:26:39.000000Z
41262
pje
has-props
3898
setup.cfg
file
2013-06-19T13:20:47.932704Z
eda883e744fce83f8107ad8dc8303536
2006-09-21T22:26:48.050256Z
51965
phillip.eby
has-props
296
setuptools.txt
file
2013-06-19T13:20:47.940708Z
11926256f06046b196eaf814772504e7
2013-05-15T22:04:59.389374Z
88997
phillip.eby
has-props
149832
pkg_resources.py
file
2013-06-19T13:20:47.940708Z
b63a30f5f0f0225a788c2c0e3430b3cf
2013-05-15T22:04:59.389374Z
88997
phillip.eby
has-props
90397
tests
dir
wikiup.cfg
file
2013-06-19T13:20:47.944710Z
34ad845a5e0a0b46458557fa910bf429
2008-08-21T17:23:50.797633Z
65935
phillip.eby
has-props
136
EasyInstall.txt
file
2013-06-19T13:20:47.944710Z
e97387c517f70fc18a377e42d19d64d4
2013-05-15T22:04:59.389374Z
88997
phillip.eby
has-props
82495
setuptools/tests/test_egg_info.py
0 → 100644
View file @
48b0d2bf
import
os
import
tempfile
import
shutil
import
unittest
import
pkg_resources
from
setuptools.command
import
egg_info
ENTRIES_V10
=
pkg_resources
.
resource_string
(
__name__
,
'entries-v10'
)
"An entries file generated with svn 1.6.17 against the legacy Setuptools repo"
class
TestEggInfo
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
test_dir
=
tempfile
.
mkdtemp
()
os
.
mkdir
(
os
.
path
.
join
(
self
.
test_dir
,
'.svn'
))
self
.
old_cwd
=
os
.
getcwd
()
os
.
chdir
(
self
.
test_dir
)
def
tearDown
(
self
):
os
.
chdir
(
self
.
old_cwd
)
shutil
.
rmtree
(
self
.
test_dir
)
def
_write_entries
(
self
,
entries
):
fn
=
os
.
path
.
join
(
self
.
test_dir
,
'.svn'
,
'entries'
)
entries_f
=
open
(
fn
,
'wb'
)
entries_f
.
write
(
entries
)
entries_f
.
close
()
def
test_version_10_format
(
self
):
"""
"""
self
.
_write_entries
(
ENTRIES_V10
)
rev
=
egg_info
.
egg_info
.
get_svn_revision
()
self
.
assertEqual
(
rev
,
'89000'
)
def
test_suite
():
return
unittest
.
defaultTestLoader
.
loadTestsFromName
(
__name__
)
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