Re: [Zope-dev] ZTK Porting Status

2013-02-28 Thread Leonardo Rochael Almeida
Hi,

On Thu, Feb 28, 2013 at 1:30 PM, Stephan Richter
 wrote:
> [...]
> # XXX: Where is this needed?
> unittest2 = 0.5.1

You probably already know all this, but for those that simply copied
what was done in other packages for cargo-cult programming reasons:

unittest2 is a backport of Python 2.7+ unittest for previous Python versions.

Some packages import unittest2 if they depend on Python 2.7+ unittest
features, but don't make an effort of trying to check if the standard
unittest already supports those features.

If ZTK 2 drops compat with Python 2.6 then this package is not needed,
and any packages that break because of it should just do conditional
imports, and they'll keep working.

IMO, if the ZTK pins a version of something that exists solely to
allow forward compatibility with later Python versions, then this
something is not required to work with all Python versions.

Chees,

Leo
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] ZTK Porting Status

2013-02-28 Thread Stephan Richter
Hi all,

I went through the ztk-versions.cfg file and verified availability of a Python 
3 
port. I commented the ztk-versions.cfg file. Below are the relevant sections. 
If we remove all deprecated pacakges and packages that should not be in use 
anymore, only the following dependencies/toolchain packages require a Python 3 
port:

z3c.checkversions
z3c.recipe.compattest
zope.kgs
zc.resourcelibrary
zope.mkzeoinstance
ZODB (awaiting merge of py3 branch)

Luckily we control all these packages.

These packages should just be removed from the file:

# Deprecating
# zope.broken was only needed for ZODB3.
zope.broken = 3.6.0
# zope.server has been forked and ported to Py3 under the name "waitress".
zope.server = 3.8.6
# RestrictedPython and thus zope.untrustedpython are hard to port to Py3.
zope.untrustedpython = 4.0.0
# No package should depend on ZODB3 anymore.
ZODB3 = 3.11.0a2
# mechanize should only be needed for testbrowser.
mechanize = 0.2.5

Dependencies missing a Python 3 port:

# XXX: Where do we need that?
Paste = 1.7.5.1
# PasteScript should not be needed anymore, since zope.paste supports serving
# directly now.
PasteScript = 1.7.5
# Fix by removing it from the ZTK?
RestrictedPython = 3.6.0
# XXX: Where is this needed?
unittest2 = 0.5.1
# Should just be ported.
zc.resourcelibrary = 1.3.4
zope.mkzeoinstance = 3.9.5
# Needs merge of py3 branch.
ZODB = 4.0.0a4

# toolchain
# Missing py3 port
z3c.checkversions = 0.4.1
# Missing py3 port
z3c.recipe.compattest = 0.13.1
# Should not be needed anymore:
z3c.recipe.scripts = 1.0.1
# Missing py3 port
zope.kgs = 1.2.0

Regards,
Stephan
-- 
Entrepreneur and Software Geek
Google me. "Zope Stephan Richter"
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )