Merge lp:~wes-turner/pydoctor/setuptools into lp:~mwhudson/pydoctor/dev

Proposed by Wes Turner on 2010-09-12
Status: Needs review
Proposed branch: lp:~wes-turner/pydoctor/setuptools
Merge into: lp:~mwhudson/pydoctor/dev
Diff against target: 67 lines (+14/-16)
3 files modified
bin/pydoctor (+0/-12)
pydoctor/driver.py (+4/-0)
setup.py (+10/-4)
To merge this branch: bzr merge lp:~wes-turner/pydoctor/setuptools
Reviewer Review Type Date Requested Status
Michael Hudson-Doyle 2010-09-12 Pending
Review via email: mp+35221@code.launchpad.net

Description of the Change

Switches from bare distutils to setuptools for install_requires and console_script entry_points to add support for things like "pip install -e bzr+lp:pydoctor" (Test: "python setup.py develop").

Not sure what the packaging requirements are. Just added this while installing this evening and thought I'd share.

To post a comment you must log in.

Unmerged revisions

566. By wturner <wturner@wrk> on 2010-09-12

Migrating setup.py to setuptools. Adding install_requires, a console_script entry_point, and (presumably?) updating the project URL.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed directory 'bin'
2=== removed file 'bin/pydoctor'
3--- bin/pydoctor 2010-02-06 03:30:38 +0000
4+++ bin/pydoctor 1970-01-01 00:00:00 +0000
5@@ -1,12 +0,0 @@
6-#!/usr/bin/env python
7-import os
8-import sys
9-
10-d = os.path.dirname(os.path.dirname(__file__))
11-
12-if os.path.isdir(os.path.join(d, 'pydoctor')):
13- sys.path.insert(0, d)
14-
15-from pydoctor.driver import main
16-
17-sys.exit(main(sys.argv[1:]))
18
19=== modified file 'pydoctor/driver.py'
20--- pydoctor/driver.py 2010-03-11 03:18:45 +0000
21+++ pydoctor/driver.py 2010-09-12 07:01:00 +0000
22@@ -223,6 +223,10 @@
23 options.verbosity -= options.quietness
24 return options, args
25
26+def console_main():
27+ import sys
28+ main(sys.argv[1:])
29+
30 def main(args):
31 import cPickle
32 options, args = parse_args(args)
33
34=== modified file 'setup.py'
35--- setup.py 2010-03-28 22:55:26 +0000
36+++ setup.py 2010-09-12 07:01:00 +0000
37@@ -1,12 +1,12 @@
38 #!/usr/bin/python
39-from distutils.core import setup
40+from setuptools import setup
41
42 setup(
43 name='pydoctor',
44 version='0.3',
45 author='Michael Hudson',
46 author_email='micahel@gmail.com',
47- url='http://codespeak.net/svn/user/mwh/pydoctor/trunk',
48+ url='https://code.launchpad.net/~mwhudson/pydoctor/dev',
49 description='API doc generator.',
50 license='MIT/X11',
51 packages=[
52@@ -19,7 +19,13 @@
53 'templates/*',
54 ],
55 },
56- scripts=[
57- 'bin/pydoctor',
58+ install_requires=[
59+ 'twisted',
60+ 'nevow',
61 ],
62+ entry_points={
63+ 'console_scripts': [
64+ 'pydoctor = pydoctor.driver:console_main',
65+ ]
66+ }
67 )

Subscribers

People subscribed via source and target branches

to all changes:
to status/vote changes: