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
d189e4d4
Commit
d189e4d4
authored
May 24, 2013
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Plain Diff
Merge with distribute 0.6.42
parents
2faf1e9a
62e96b0e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
58 additions
and
8 deletions
+58
-8
.hgtags
.hgtags
+1
-0
CHANGES.txt
CHANGES.txt
+9
-0
CONTRIBUTORS.txt
CONTRIBUTORS.txt
+1
-0
setup.py
setup.py
+3
-7
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+1
-1
setuptools/package_index.py
setuptools/package_index.py
+32
-0
setuptools/py24compat.py
setuptools/py24compat.py
+11
-0
setuptools/site-patch.py
setuptools/site-patch.py
+0
-0
No files found.
.hgtags
View file @
d189e4d4
...
@@ -52,3 +52,4 @@ d737b2039c5f92af8000f78bbc80b6a5183caa97 0.6.39
...
@@ -52,3 +52,4 @@ d737b2039c5f92af8000f78bbc80b6a5183caa97 0.6.39
9b2e2aa06e058c63e06c5e42a7f279ddae2dfb7d 0.7b1
9b2e2aa06e058c63e06c5e42a7f279ddae2dfb7d 0.7b1
0a783fa0dceb95b5fc743e47c2d89c1523d0afb7 0.6.40
0a783fa0dceb95b5fc743e47c2d89c1523d0afb7 0.6.40
ad107e9b4beea24516ac4e1e854696e586fe279d 0.6.41
ad107e9b4beea24516ac4e1e854696e586fe279d 0.6.41
f30167716b659f96c5e0b7ea3d5be2bcff8c0eac 0.6.42
CHANGES.txt
View file @
d189e4d4
...
@@ -20,6 +20,14 @@ Added several features that were slated for setuptools 0.6c12:
...
@@ -20,6 +20,14 @@ Added several features that were slated for setuptools 0.6c12:
* Added support for SSL certificate validation when installing packages from
* Added support for SSL certificate validation when installing packages from
an HTTPS service.
an HTTPS service.
------
0.6.42
------
* External links finder no longer yields duplicate links.
* Issue #337: Moved site.py to setuptools/site-patch.py (graft of very old
patch from setuptools trunk which inspired PR #31).
------
------
0.6.41
0.6.41
------
------
...
@@ -79,6 +87,7 @@ Added several features that were slated for setuptools 0.6c12:
...
@@ -79,6 +87,7 @@ Added several features that were slated for setuptools 0.6c12:
0.6.35
0.6.35
------
------
Note this release is backward-incompatible with distribute 0.6.23-0.6.34 in
Note this release is backward-incompatible with distribute 0.6.23-0.6.34 in
how it parses version numbers.
how it parses version numbers.
...
...
CONTRIBUTORS.txt
View file @
d189e4d4
...
@@ -8,6 +8,7 @@ Contributors
...
@@ -8,6 +8,7 @@ Contributors
* Christophe Combelles
* Christophe Combelles
* Daniel Stutzbach
* Daniel Stutzbach
* Daniel Holth
* Daniel Holth
* Dirley Rodrigues
* Grigory Petrov
* Grigory Petrov
* Hanno Schlichting
* Hanno Schlichting
* Jannis Leidel
* Jannis Leidel
...
...
setup.py
View file @
d189e4d4
...
@@ -132,20 +132,18 @@ dist = setup(
...
@@ -132,20 +132,18 @@ dist = setup(
test_suite
=
'setuptools.tests'
,
test_suite
=
'setuptools.tests'
,
src_root
=
src_root
,
src_root
=
src_root
,
packages
=
find_packages
(),
packages
=
find_packages
(),
package_data
=
{
'setuptools'
:[
'*.exe'
],
'setuptools.command'
:[
'*.xml'
]},
package_data
=
{
'setuptools'
:[
'*.exe'
,
'site-patch.py'
],
'setuptools.command'
:[
'*.xml'
]},
py_modules
=
[
'pkg_resources'
,
'easy_install'
,
'site'
],
py_modules
=
[
'pkg_resources'
,
'easy_install'
],
zip_safe
=
(
sys
.
version
>=
"2.5"
),
# <2.5 needs unzipped for -m to work
zip_safe
=
(
sys
.
version
>=
"2.5"
),
# <2.5 needs unzipped for -m to work
cmdclass
=
{
'test'
:
test
},
cmdclass
=
{
'test'
:
test
},
entry_points
=
{
entry_points
=
{
"distutils.commands"
:
[
"distutils.commands"
:
[
"%(cmd)s = setuptools.command.%(cmd)s:%(cmd)s"
%
locals
()
"%(cmd)s = setuptools.command.%(cmd)s:%(cmd)s"
%
locals
()
for
cmd
in
SETUP_COMMANDS
for
cmd
in
SETUP_COMMANDS
],
],
"distutils.setup_keywords"
:
[
"distutils.setup_keywords"
:
[
"eager_resources = setuptools.dist:assert_string_list"
,
"eager_resources = setuptools.dist:assert_string_list"
,
"namespace_packages = setuptools.dist:check_nsp"
,
"namespace_packages = setuptools.dist:check_nsp"
,
...
@@ -166,7 +164,6 @@ dist = setup(
...
@@ -166,7 +164,6 @@ dist = setup(
"use_2to3_fixers = setuptools.dist:assert_string_list"
,
"use_2to3_fixers = setuptools.dist:assert_string_list"
,
"use_2to3_exclude_fixers = setuptools.dist:assert_string_list"
,
"use_2to3_exclude_fixers = setuptools.dist:assert_string_list"
,
],
],
"egg_info.writers"
:
[
"egg_info.writers"
:
[
"PKG-INFO = setuptools.command.egg_info:write_pkg_info"
,
"PKG-INFO = setuptools.command.egg_info:write_pkg_info"
,
"requires.txt = setuptools.command.egg_info:write_requirements"
,
"requires.txt = setuptools.command.egg_info:write_requirements"
,
...
@@ -177,7 +174,6 @@ dist = setup(
...
@@ -177,7 +174,6 @@ dist = setup(
"depends.txt = setuptools.command.egg_info:warn_depends_obsolete"
,
"depends.txt = setuptools.command.egg_info:warn_depends_obsolete"
,
"dependency_links.txt = setuptools.command.egg_info:overwrite_arg"
,
"dependency_links.txt = setuptools.command.egg_info:overwrite_arg"
,
],
],
"console_scripts"
:
console_scripts
,
"console_scripts"
:
console_scripts
,
"setuptools.file_finders"
:
"setuptools.file_finders"
:
...
@@ -185,7 +181,7 @@ dist = setup(
...
@@ -185,7 +181,7 @@ dist = setup(
"setuptools.installation"
:
"setuptools.installation"
:
[
'eggsecutable = setuptools.command.easy_install:bootstrap'
],
[
'eggsecutable = setuptools.command.easy_install:bootstrap'
],
},
},
classifiers
=
textwrap
.
dedent
(
"""
classifiers
=
textwrap
.
dedent
(
"""
...
...
setuptools/command/easy_install.py
View file @
d189e4d4
...
@@ -1276,7 +1276,7 @@ Please make the appropriate changes for your system and try again.""" % (
...
@@ -1276,7 +1276,7 @@ Please make the appropriate changes for your system and try again.""" % (
return
# already did it, or don't need to
return
# already did it, or don't need to
sitepy
=
os
.
path
.
join
(
self
.
install_dir
,
"site.py"
)
sitepy
=
os
.
path
.
join
(
self
.
install_dir
,
"site.py"
)
source
=
resource_string
(
Requirement
.
parse
(
"setuptools"
),
"site
.py"
)
source
=
resource_string
(
"setuptools"
,
"site-patch
.py"
)
current
=
""
current
=
""
if
os
.
path
.
exists
(
sitepy
):
if
os
.
path
.
exists
(
sitepy
):
...
...
setuptools/package_index.py
View file @
d189e4d4
"""PyPI and direct package downloading"""
"""PyPI and direct package downloading"""
import
sys
,
os
.
path
,
re
,
urlparse
,
urllib2
,
shutil
,
random
,
socket
,
cStringIO
import
sys
,
os
.
path
,
re
,
urlparse
,
urllib2
,
shutil
,
random
,
socket
,
cStringIO
import
itertools
import
base64
import
base64
import
httplib
,
urllib
import
httplib
,
urllib
from
setuptools
import
ssl_support
from
setuptools
import
ssl_support
...
@@ -11,6 +12,8 @@ try:
...
@@ -11,6 +12,8 @@ try:
except
ImportError
:
except
ImportError
:
from
md5
import
md5
from
md5
import
md5
from
fnmatch
import
translate
from
fnmatch
import
translate
from
.py24compat
import
wraps
EGG_FRAGMENT
=
re
.
compile
(
r'^egg=([-A-Za-z0-9_.]+)$'
)
EGG_FRAGMENT
=
re
.
compile
(
r'^egg=([-A-Za-z0-9_.]+)$'
)
HREF
=
re
.
compile
(
"""href
\
\
s*=
\
\
s*['"]?([^'"> ]+)"""
,
re
.
I
)
HREF
=
re
.
compile
(
"""href
\
\
s*=
\
\
s*['"]?([^'"> ]+)"""
,
re
.
I
)
# this is here to fix emacs' cruddy broken syntax highlighting
# this is here to fix emacs' cruddy broken syntax highlighting
...
@@ -134,9 +137,38 @@ def interpret_distro_name(location, basename, metadata,
...
@@ -134,9 +137,38 @@ def interpret_distro_name(location, basename, metadata,
platform
=
platform
platform
=
platform
)
)
# From Python 2.7 docs
def
unique_everseen
(
iterable
,
key
=
None
):
"List unique elements, preserving order. Remember all elements ever seen."
# unique_everseen('AAAABBBCCDAABBB') --> A B C D
# unique_everseen('ABBCcAD', str.lower) --> A B C D
seen
=
set
()
seen_add
=
seen
.
add
if
key
is
None
:
for
element
in
itertools
.
ifilterfalse
(
seen
.
__contains__
,
iterable
):
seen_add
(
element
)
yield
element
else
:
for
element
in
iterable
:
k
=
key
(
element
)
if
k
not
in
seen
:
seen_add
(
k
)
yield
element
def
unique_values
(
func
):
"""
Wrap a function returning an iterable such that the resulting iterable
only ever yields unique items.
"""
@
wraps
(
func
)
def
wrapper
(
*
args
,
**
kwargs
):
return
unique_everseen
(
func
(
*
args
,
**
kwargs
))
return
wrapper
REL
=
re
.
compile
(
"""<([^>]*
\
s
r
el
\
s*=
\
s*['"]?([^'">]+)[^>]*)>"""
,
re
.
I
)
REL
=
re
.
compile
(
"""<([^>]*
\
s
r
el
\
s*=
\
s*['"]?([^'">]+)[^>]*)>"""
,
re
.
I
)
# this line is here to fix emacs' cruddy broken syntax highlighting
# this line is here to fix emacs' cruddy broken syntax highlighting
@
unique_values
def
find_external_links
(
url
,
page
):
def
find_external_links
(
url
,
page
):
"""Find rel="homepage" and rel="download" links in `page`, yielding URLs"""
"""Find rel="homepage" and rel="download" links in `page`, yielding URLs"""
...
...
setuptools/py24compat.py
0 → 100644
View file @
d189e4d4
"""
Forward-compatibility support for Python 2.4 and earlier
"""
# from jaraco.compat 1.2
try
:
from
functools
import
wraps
except
ImportError
:
def
wraps
(
func
):
"Just return the function unwrapped"
return
lambda
x
:
x
s
ite
.py
→
s
etuptools/site-patch
.py
100755 → 100644
View file @
d189e4d4
File moved
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