Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

Product version number redundancy with version.txt and setup.py

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


tim at sitefusion

Jul 7, 2008, 1:21 PM

Post #1 of 4 (185 views)
Permalink
Product version number redundancy with version.txt and setup.py

Hi,

Am I right in thinking that there is a duplication of information in
having an eggified product's version number stored in setup.py and
version.txt?

Both seem to be necessary - the first for use with pypi and the second
so that Zope knows what version of a product it has. The former seems
more like it should be the preferred single place for this information.
Does anyone have any ideas about how we might update Zope to read
version information from setup.py instead?

The initializeProduct function at
<http://svn.zope.org/Zope/trunk/lib/python/App/Product.py?rev=73460&view=auto>
seems to be the relevant place. However, I'm not sure if that code has
access to the full eggy package at that stage. My guess is that the
relevant object (productp?) might already have been adjusted for
backward compatibility reasons at that stage.

Any ideas?


Tim
_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


plone at hannosch

Jul 7, 2008, 1:39 PM

Post #2 of 4 (177 views)
Permalink
Re: Product version number redundancy with version.txt and setup.py [In reply to]

Tim Hicks wrote:
> Am I right in thinking that there is a duplication of information in
> having an eggified product's version number stored in setup.py and
> version.txt?

Having your setup.py read its version from version.txt is easy, if you
don't want to update two places.

I think the more interesting question is, why we need a persistent
registry of installed products and any information about them at all
anymore?

Having the product registry persistent causes quite some trouble when
moving Data.fs across servers and doesn't seem to add much to any benefit.

For what kind of use-case do people use that registry nowadays, since we
got rid of persistent products?

Hanno

_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


wichert at wiggy

Jul 7, 2008, 1:44 PM

Post #3 of 4 (178 views)
Permalink
Re: Re: Product version number redundancy with version.txt and setup.py [In reply to]

Previously Hanno Schlichting wrote:
> Tim Hicks wrote:
> >Am I right in thinking that there is a duplication of information in
> >having an eggified product's version number stored in setup.py and
> >version.txt?
>
> Having your setup.py read its version from version.txt is easy, if you
> don't want to update two places.
>
> I think the more interesting question is, why we need a persistent
> registry of installed products and any information about them at all
> anymore?

ZClasses

Wichert.

--
Wichert Akkerman <wichert[at]wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


limi at plone

Jul 8, 2008, 2:49 AM

Post #4 of 4 (162 views)
Permalink
Re: Product version number redundancy with version.txt and setup.py [In reply to]

On Mon, 07 Jul 2008 13:44:43 -0700, Wichert Akkerman <wichert[at]wiggy.net>
wrote:

> Previously Hanno Schlichting wrote:
>> Tim Hicks wrote:
>> >Am I right in thinking that there is a duplication of information in
>> >having an eggified product's version number stored in setup.py and
>> >version.txt?
>>
>> Having your setup.py read its version from version.txt is easy, if you
>> don't want to update two places.
>>
>> I think the more interesting question is, why we need a persistent
>> registry of installed products and any information about them at all
>> anymore?
>
> ZClasses

Speaking of which, are there plans to rip out ZClasses from Zope 2.12?
It's about time!

--
Alexander Limi ยท http://limi.net

_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.