Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
f41b4623
Commit
f41b4623
authored
Apr 21, 2009
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write information for Zope2 package
parent
f73e357f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
inst/generate_index.py
inst/generate_index.py
+14
-9
No files found.
inst/generate_index.py
View file @
f41b4623
...
...
@@ -9,16 +9,8 @@ import sys
from
xmlrpclib
import
Server
from
ConfigParser
import
ConfigParser
CP
=
ConfigParser
()
CP
.
read
([
'versions.cfg'
])
server
=
Server
(
'http://pypi.python.org/pypi'
)
links
=
list
()
dirname
=
sys
.
argv
[
1
]
for
package
in
CP
.
options
(
'versions'
):
version
=
CP
.
get
(
'versions'
,
package
)
def
write_index
(
package
,
version
):
print
>>
sys
.
stderr
,
'Package %s==%s'
%
(
package
,
version
)
dest_dir
=
os
.
path
.
join
(
dirname
,
package
)
if
not
os
.
path
.
exists
(
dest_dir
):
...
...
@@ -33,3 +25,16 @@ for package in CP.options('versions'):
print
>>
fp
,
'<br/>'
print
>>
fp
,
'</body></html>'
fp
.
close
()
CP
=
ConfigParser
()
CP
.
read
([
'versions.cfg'
])
server
=
Server
(
'http://pypi.python.org/pypi'
)
links
=
list
()
dirname
=
sys
.
argv
[
1
]
write_index
(
'Zope2'
,
'2.12.0a3'
)
for
package
in
CP
.
options
(
'versions'
):
version
=
CP
.
get
(
'versions'
,
package
)
write_index
(
package
,
version
)
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