Re: [Zope3-dev] Cleaning up dependencies for Zope 3.4 eggs

2007-04-10 Thread Jim Fulton


On Apr 10, 2007, at 4:25 AM, Christian Theune wrote:


Hi,

Am Montag, den 09.04.2007, 10:58 -0400 schrieb Jim Fulton:

On Apr 5, 2007, at 9:08 AM, Christian Theune wrote:


Hi,

we're starting work on an application that we're going to use  
Zope 3.4

for and that I'd like to base on the eggs. That should give me the
chance to clean up some of the egg dependencies.


Cool.


First thing that I found: ZODB 3.4 eggs just require


Zope 3.4 I assume.



ZODB3, but don't
state a version. This should currently be ZODB33.7 and would
move to
ZODB3=3.8 in the future, right?


Why?  Unless they depend on a particular feature, such as Blobs. I
see no reason to be specific.


Ah, sorry. I forgot to mention that there is code in Zope 3.4 that  
uses

doom (formlib) and requires ZODB 3.8 therefor. I noticed because of
test-breakage.


Only that code should depend on 3.8 then,

Jim

--
Jim Fulton  mailto:[EMAIL PROTECTED]Python 
Powered!
CTO (540) 361-1714  
http://www.python.org
Zope Corporationhttp://www.zope.com http://www.zope.org



___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Cleaning up dependencies for Zope 3.4 eggs

2007-04-09 Thread Jim Fulton


On Apr 5, 2007, at 9:08 AM, Christian Theune wrote:


Hi,

we're starting work on an application that we're going to use Zope 3.4
for and that I'd like to base on the eggs. That should give me the
chance to clean up some of the egg dependencies.


Cool.


First thing that I found: ZODB 3.4 eggs just require


Zope 3.4 I assume.



ZODB3, but don't
state a version. This should currently be ZODB33.7 and would  
move to

ZODB3=3.8 in the future, right?


Why?  Unless they depend on a particular feature, such as Blobs. I  
see no reason to be specific.


BTW, there are development releases of ZODB3 3.8 on download.zope.org.

Jim

--
Jim Fulton  mailto:[EMAIL PROTECTED]Python 
Powered!
CTO (540) 361-1714  
http://www.python.org
Zope Corporationhttp://www.zope.com http://www.zope.org



___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Cleaning up dependencies for Zope 3.4 eggs

2007-04-05 Thread Baiju M

On 4/5/07, Christian Theune [EMAIL PROTECTED] wrote:

Hi,
I'd start adding those more specific version dependencies to zope.app
and the other eggs.


Since we almost eggified all packages under zope.app namespace,
should we keep the all-in-one zope.app egg ?
Can we remove this egg from PyPI and it's svn repository?
(So far only development versions are released)

Regards,
Baiju M
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Cleaning up dependencies for Zope 3.4 eggs

2007-04-05 Thread Stephan Richter
On Thursday 05 April 2007 09:08, Christian Theune wrote:
 we're starting work on an application that we're going to use Zope 3.4
 for and that I'd like to base on the eggs. That should give me the
 chance to clean up some of the egg dependencies.

Yeah, I wanted to look into some dependencies too, since I noticed that 
zope.pagetemplate will pull in pretty much all of Zope.

I think what we need is a tool that draws us a dependency graph. Is there 
something out there already, at least for creating the dependency graph text 
version? Since all dependencies are specified as an argument to the setup 
function, I would not immediately know how to extract that information, 
except than monkey patching into it.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Cleaning up dependencies for Zope 3.4 eggs

2007-04-05 Thread Bernd Dorn


On 05.04.2007, at 16:23, Stephan Richter wrote:


On Thursday 05 April 2007 09:08, Christian Theune wrote:
we're starting work on an application that we're going to use Zope  
3.4

for and that I'd like to base on the eggs. That should give me the
chance to clean up some of the egg dependencies.


Yeah, I wanted to look into some dependencies too, since I noticed  
that

zope.pagetemplate will pull in pretty much all of Zope.

I think what we need is a tool that draws us a dependency graph. Is  
there
something out there already, at least for creating the dependency  
graph text
version? Since all dependencies are specified as an argument to the  
setup
function, I would not immediately know how to extract that  
information,

except than monkey patching into it.



i use this tiny script

http://svn.zope.org/z3c.configurator/trunk/importchecker.py? 
rev=73771view=log


and as already mentioned: please forget about the zope.app egg

regards, bernd



Regards,
Stephan
--
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/bernd.dorn% 
40lovelysystems.com




___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Cleaning up dependencies for Zope 3.4 eggs

2007-04-05 Thread Marius Gedminas
On Thu, Apr 05, 2007 at 10:23:44AM -0400, Stephan Richter wrote:
 On Thursday 05 April 2007 09:08, Christian Theune wrote:
  we're starting work on an application that we're going to use Zope 3.4
  for and that I'd like to base on the eggs. That should give me the
  chance to clean up some of the egg dependencies.
 
 Yeah, I wanted to look into some dependencies too, since I noticed that 
 zope.pagetemplate will pull in pretty much all of Zope.
 
 I think what we need is a tool that draws us a dependency graph. Is there 
 something out there already, at least for creating the dependency graph text 
 version? Since all dependencies are specified as an argument to the setup 
 function, I would not immediately know how to extract that information, 
 except than monkey patching into it.

I have a half-baked tool that analyzes Python module dependencies by
parsing import statements.  It was not as useful as I hoped, as the
graphs produced from SchoolTool sources were big and unwieldy.

Marius Gedminas
-- 
This company has performed an illegal operation and will be shut down. If
the problem persists, contact your vendor or appeal to a higher court.


signature.asc
Description: Digital signature
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Cleaning up dependencies for Zope 3.4 eggs

2007-04-05 Thread Brian Sutherland
On Thu, Apr 05, 2007 at 11:34:50AM -0400, Stephan Richter wrote:
 On Thursday 05 April 2007 11:08, Bernd Dorn wrote:
  i use this tiny script
 
  http://svn.zope.org/z3c.configurator/trunk/importchecker.py?
  rev=73771view=log
 
 Right, I know about the importchecker. But it does nto generate the 
 dependency 
 tree for me and is agnostic to optional dependencies, which are supported by 
 setuptools. I really want to hook into the dependencies of the setup script.

This is the way I'm using to get at the config of setup.py in some of my
tools:

from distutils.core import run_setup
dist = run_setup('setup.py', stop_after='config')

Then, it get's a little complex to actually get the data you want. I've
been doing something like:

from pkg_resources import parse_requirements

requires = parse_requirements(dist.install_requires)
for req in requires:
if req.specs:
for spec in req.specs:
op, version = spec
print '%s (%s %s)' % (req.project_name, op, version)



 
 Regards,
 Stephan
 -- 
 Stephan Richter
 CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
 Web2k - Web Software Design, Development and Training
 ___
 Zope3-dev mailing list
 Zope3-dev@zope.org
 Unsub: http://mail.zope.org/mailman/options/zope3-dev/jinty%40web.de
 
 

-- 
Brian Sutherland
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Cleaning up dependencies for Zope 3.4 eggs

2007-04-05 Thread Stephan Richter
On Thursday 05 April 2007 12:19, Marius Gedminas wrote:
  I think what we need is a tool that draws us a dependency graph. Is there
  something out there already, at least for creating the dependency graph
  text version? Since all dependencies are specified as an argument to the
  setup function, I would not immediately know how to extract that
  information, except than monkey patching into it.

 I have a half-baked tool that analyzes Python module dependencies by
 parsing import statements.  It was not as useful as I hoped, as the
 graphs produced from SchoolTool sources were big and unwieldy.

I think the graph based on setup dependencies might be saner, since it groups 
certain dependencies  and we would run it on a single package instead of an 
entire appplication. But I can see where you are coming from.

BTW, thanks for the supybot ChannelLogger - HTML converter. Very handy. :-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Cleaning up dependencies for Zope 3.4 eggs

2007-04-05 Thread Bernd Dorn


On 05.04.2007, at 17:34, Stephan Richter wrote:


On Thursday 05 April 2007 11:08, Bernd Dorn wrote:

i use this tiny script

http://svn.zope.org/z3c.configurator/trunk/importchecker.py?
rev=73771view=log


Right, I know about the importchecker. But it does nto generate the  
dependency
tree for me and is agnostic to optional dependencies, which are  
supported by
setuptools. I really want to hook into the dependencies of the  
setup script.


hm, i think i don't get you ...

i use the importchecker to know what i have to put into setup.py

the script reports test dependencys seperatly, i have modified it a bit

it was very useful for doing the zope.app... packages






Regards,
Stephan
--
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com