Skip to content

Commit 57579a7

Browse files
committed
add todo list and design notes for hook scripts
1 parent c6d163d commit 57579a7

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

venv.org

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Org-mode notes and task list
2+
3+
* TODO convert to distribute for packaging
4+
- get rid of newvenvw and virtualenvwrapper virtualenvs and re-create
5+
6+
* TODO plugin system for hooks [0/5]
7+
- http://bitbucket.org/dhellmann/virtualenvwrapper/issue/28/
8+
- use Distribute/setuptools
9+
- namespace package `virtualenvwrapper` to hold plugins I write, but
10+
not required for other authors
11+
- [ ] how to specify execution order between plugin providers?
12+
- plugins could provide a "phase" function for sorting
13+
- return an integer, let the plugin author community sort out the
14+
ranges
15+
- alphabetical by plugin name
16+
- undefined
17+
- [ ] "user script" plugin implementation
18+
- uses pkg_resources to get contents of hook scripts out of
19+
python package and run them
20+
- move all/most existing hook execution here
21+
- handles both global & local hooks
22+
- [ ] cli app to run the hooks
23+
- [ ] how does cli app handle the "sourced" hook scripts
24+
- ability to `cd` into a specific directory, for example
25+
- separate plugin points for "foo_run_hook" and
26+
"foo_source_hook", handled differently by the calling script
27+
- run hooks are executed first (implement in any language)
28+
- source hooks are dumped to text files and then sourced
29+
(implement in shell language)
30+
- [ ] expose each hook point as an entry point function
31+
- [ ] requirements
32+
- automatically install packages based on requirements file
33+
given to pip
34+
- separate hook, or let a package just use postmkvirtualenv?
35+
- [ ] mkvirtualenv [0/2]
36+
- [ ] pre
37+
- [ ] post
38+
- [ ] activate [0/2]
39+
- [ ] pre
40+
- [ ] post
41+
- [ ] deactivate [0/2]
42+
- [ ] pre
43+
- [ ] post
44+
- [ ] rmvirtualenv [0/2]
45+
- [ ] pre
46+
- [ ] post
47+
- [ ] documentation for how to publish your own hooks
48+
49+
* TODO add pre/post hooks for cpvirtualenv
50+
- add new ones or just invoke existing hooks?
51+

0 commit comments

Comments
 (0)