Create find-links list of tags
Project description
Taglist generator for findlinks
tha.taglist generates an html list of svn tags suitable for zc.buildout’s find-links.
Installation
Installation is the normal buildout procedure.
How it works
The script iterates over the BASE repository as defined in tha/taglist/defaults.py. It first tries to use BASE_ON_SERVER, which you can use to define file:///svn as an alternative base when available, which speeds it up on the server and which also makes it usable for every user account. It has a blacklist of directories it won’t interate into. Every directory is examined for “stop indicators” like setup.py that indicate that there aren’t any useful tag directories further down. See defaults.py for documentation on how to override it in your buildout.
If a tags/ directory is found an entry in the packages.html is added with:
The tag (‘1.0’). We do a regex search for the version in the setup.py. If found and if it doesn’t match the tag, we emit a warning.
The svn url.
The name that is extracted (with a regex) from the setup.py.
You can start the script with ‘-v’ or ‘-vv’ for more verbose logging.
Changelog for tha.taglist
1.1 (2009-07-17)
Writing to tempfile again and shutil.move()-ing it in place. See if that helps with file permissions. Writing directly gave me permission errors in the post-commit hook that I didn’t get with the tempfile still enabled. [reinout]
1.0 (2009-06-24)
Generating page with a jinja template now. Instead of yucky string replacement. [reinout]
0.9 (2009-06-24)
Fix for 0.8: filtering out non-numeric versions for the list of latest versions. [reinout]
0.8 (2009-06-24)
Added listing of latest versions to the bottom of the page. [reinout]
0.7 (2009-03-03)
Small bugfix (reported by Maurits): use shutil.move instead of os.rename as the latter doesn’t work between two filesystems. [reinout]
0.6.1 (2009-02-26)
Doc update. [reinout]
0.6 (2009-02-26)
Configuration is now done through a defaults file that can be overridden by a buildout option. [reinout]
0.5 (2009-02-26)
Added generation date to the top of the generated html file. [reinout]
Quieted down logging to only emit warnings. Added -v and –v options for info/debug level logging. [reinout]
Added check (regex-based) whether the version in setup.py matches the tag. If not, it emits a warning. [reinout]
0.3 (2009-02-25)
Added TODO.txt
Make destination configurable.
0.2 (2009-02-25)
Using file:///svn on server (with non-server fallback to svn+ssh). [reinout]
0.1 (2009-02-25)
Added buildout.cfg. [reinout]
Tags are searched in the entire tree (excluding blacklisted items). [reinout]
The html gets written to generated.html. [reinout]
Extracting name from setup.py with a regular expression. [reinout]
TODO
Option: check the name and version for each tagged package by finding the setup.py, running it and asking for its name and version instead of doing a regex search. For this you need a full checkout of the whole repository instead of just a temporary checkout of a setup.py file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tha.taglist-1.1.tar.gz
.
File metadata
- Download URL: tha.taglist-1.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd272fc5668a9ff2b25fe39fff7dac6d3ea3f2f7e8bdfb7835bb14f12f187f44 |
|
MD5 | 5710e85ac7b07c2a621cc7ee93f60c26 |
|
BLAKE2b-256 | 3830f58fb89cccd1424b9ade57b060a77c4aec3243835bd894d4db5555f4bedb |