Merge lp:~gary/lazr.delegates/fixbuild into lp:~launchpad-pqm/lazr.delegates/devel

Proposed by Gary Poster
Status: Merged
Merge reported by: Robert Collins
Merged at revision: not available
Proposed branch: lp:~gary/lazr.delegates/fixbuild
Merge into: lp:~launchpad-pqm/lazr.delegates/devel
Diff against target: None lines
To merge this branch: bzr merge lp:~gary/lazr.delegates/fixbuild
Reviewer Review Type Date Requested Status
Leonard Richardson (community) Approve
Review via email: mp+10884@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Gary Poster (gary) wrote :

This does the usual dance that we've done lately to fix our lazr builds: remove some build dependencies and get the version number from a file.

We also should move trunk from pqm to lazr-developers.

I need a release of this branch to merge my launchpad branch that uses all of our newest lazr releases (lp:~gary/launchpad/lazr-dist).

Revision history for this message
Leonard Richardson (leonardr) wrote :

> This does the usual dance that we've done lately to fix our lazr builds:
> remove some build dependencies and get the version number from a file.
>
> We also should move trunk from pqm to lazr-developers.
>
> I need a release of this branch to merge my launchpad branch that uses all of
> our newest lazr releases (lp:~gary/launchpad/lazr-dist).

Approved, merged, and released.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'MANIFEST.in'
2--- MANIFEST.in 2009-03-24 18:52:52 +0000
3+++ MANIFEST.in 2009-08-29 17:51:36 +0000
4@@ -1,2 +1,4 @@
5+include ez_setup.py
6+recursive-include src *.txt *.pt *.zcml *.xsd
7 exclude MANIFEST.in buildout.cfg bootstrap.py .bzrignore
8 prune _bootstrap
9
10=== modified file 'setup.py'
11--- setup.py 2009-03-24 19:51:29 +0000
12+++ setup.py 2009-08-29 17:51:36 +0000
13@@ -36,9 +36,7 @@
14 return '\n'.join(res)
15 # end generic helpers
16
17-
18-sys.path.insert(0, 'src')
19-from lazr.delegates import __version__
20+__version__ = open("src/lazr/delegates/version.txt").read().strip()
21
22 setup(
23 name='lazr.delegates',
24@@ -53,7 +51,7 @@
25 description=open('README.txt').readline().strip(),
26 long_description=generate(
27 'src/lazr/delegates/README.txt',
28- 'src/lazr/delegates/CHANGES.txt'),
29+ 'src/lazr/delegates/NEWS.txt'),
30 license='LGPL v3',
31 install_requires=[
32 'setuptools',
33@@ -71,6 +69,5 @@
34 docs=['Sphinx',
35 'z3c.recipe.sphinxdoc']
36 ),
37- setup_requires=['eggtestinfo', 'setuptools_bzr'],
38 test_suite='lazr.delegates.tests',
39 )
40
41=== renamed file 'src/lazr/delegates/CHANGES.txt' => 'src/lazr/delegates/NEWS.txt'
42--- src/lazr/delegates/CHANGES.txt 2009-03-24 19:51:29 +0000
43+++ src/lazr/delegates/NEWS.txt 2009-08-29 17:51:36 +0000
44@@ -1,6 +1,13 @@
45-=======
46-Changes
47-=======
48+=======================
49+NEWS for lazr.delegates
50+=======================
51+
52+1.1.0 (unreleased)
53+==================
54+
55+- Remove build dependencies on bzr and egg_info
56+
57+- remove sys.path hack in setup.py for __version__
58
59 1.0.1 (2009-03-24)
60 ==================
61
62=== modified file 'src/lazr/delegates/__init__.py'
63--- src/lazr/delegates/__init__.py 2009-03-24 20:27:31 +0000
64+++ src/lazr/delegates/__init__.py 2009-08-29 17:51:36 +0000
65@@ -16,15 +16,12 @@
66
67 """Decorator helpers that simplify class composition."""
68
69-__version__ = '1.0.1'
70+import pkg_resources
71+__version__ = pkg_resources.resource_string(
72+ "lazr.delegates", "version.txt").strip()
73
74-# Re-export in such a way that __version__ can still be imported if
75-# dependencies are not yet available.
76-try:
77- # While we generally frown on "*" imports, this, combined with the fact we
78- # only test code from this module, means that we can verify what has been
79- # exported.
80- from lazr.delegates._delegates import *
81- from lazr.delegates._delegates import __all__
82-except ImportError:
83- pass
84+# While we generally frown on "*" imports, this, combined with the fact we
85+# only test code from this module, means that we can verify what has been
86+# exported.
87+from lazr.delegates._delegates import *
88+from lazr.delegates._delegates import __all__
89
90=== added file 'src/lazr/delegates/version.txt'
91--- src/lazr/delegates/version.txt 1970-01-01 00:00:00 +0000
92+++ src/lazr/delegates/version.txt 2009-08-29 17:51:36 +0000
93@@ -0,0 +1,1 @@
94+1.1.0

Subscribers

People subscribed via source and target branches