Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2176 (closed task: fixed)

Opened 10 years ago

Last modified 10 years ago

reorganize and clarify the dependencies of turbogears2, tg.devtools and quickstarted projects

Reported by: jorge.vargas Owned by: jorge.vargas
Priority: highest Milestone: 2.0b6
Component: TurboGears Version: trunk
Severity: normal Keywords:
Cc:

Description

Original discussion  here

Attachments

tg2-dependencies.patch Download (694 bytes) - added by jorge.vargas 10 years ago.
minimal set of dependencies for tg2
devtools-dependencies.patch Download (1.9 KB) - added by jorge.vargas 10 years ago.
minimal set of dependencies for tg.devtools + quickstarted project.

Change History

comment:1 Changed 10 years ago by jorge.vargas

All test done in a newly installed ubuntu 8.10 virtual machine.

to get the source versions.

apt-get install mercurial 
apt-get install subversion

Pylons

 $ hg clone http://bitbucket.org/bbangert/pylons/
 $ hg up -r 1722 #rc4

removed every dep from setup.py ran the following until it passed.

$ python -c 'import pylons'

Conclusion

simplejson - needs compiler

pylons core dependencies:

pylons runtime dependencies (used by pylons projects, instead of pylons itself):

pylons testing dependencies:

  • nose
  • webtest

comment:2 Changed 10 years ago by jorge.vargas

turbogears2

$ svn co http://svn.turbogears.org/trunk/

Turbogears core, ran the following until it passed.

$ python -c 'import tg'

Conclusion

zope.interface - needs compiler

tg core dependencies

  • ToscaWidgets?
  • repoze.what (pulls repoze.who, pulls zope.interface)
  • Genshi
  • WebError? (pulls pygments)
  • webflash

these dependencies could be avoided with a simple change in tg.configuration.py I'm inclined to do them to avoid genshi on people that don't want it and weberror in production servers (although it's nice for debugging)

comment:3 follow-up: ↓ 7 Changed 10 years ago by jorge.vargas

tg.devtools

 $ svn co http://svn.turbogears.org/projects/tg.devtools/trunk/ tg.devtools

ran the following until it passed

 $ python -c 'import devtools'

Interesting we are stealing the devtools package name :)

No additional packages are needed by devtools at the moment.

How can we fix this? can we make tg a namespace package? I think we are going to have to go with the tg.core/tg.dev separation after all.

comment:4 Changed 10 years ago by jorge.vargas

quickstarted project

$ paster quickstart 
$ paster serve development.ini

tgproject loading dependencies

  • zope.transaction/zope.sqlalchemy

tgproject loading dependencies (in tg.core)

  • repoze.tm2 (even though the import is named repoze.tm)
  • repoze.what-quickstart (pulls repoze.what.plugins.sql,pulls sqlalchemy) *

tgproject running (browser)

  • Catwalk (pulls tgext.admin pulls sprox pulls tw.forms) *

is the package name SQLAlchemy, instead of sqlalchemy * if we are going to rename repoze.what-quickstart it must happen quickly. why is this module named "transaction" ? * it seems tgext.crud is used by the above packages, yet not pulled in as a dep

Changed 10 years ago by jorge.vargas

minimal set of dependencies for tg2

Changed 10 years ago by jorge.vargas

minimal set of dependencies for tg.devtools + quickstarted project.

comment:5 Changed 10 years ago by jorge.vargas

Still pending updates/patches for testing dependencies and setup.cfg configurations.

comment:6 Changed 10 years ago by mramm

  • Milestone changed from 2.0 to 2.0b6

comment:7 in reply to: ↑ 3 ; follow-up: ↓ 9 Changed 10 years ago by mramm

Interesting we are stealing the devtools package name :)

<<< snip >>>

How can we fix this? can we make tg a namespace package? I think we are going to have to go with the tg.core/tg.dev separation after all.

If we're going to avoid stealing devtools, we shoud rename tg.devtools to tgext.devtools.

--Mark Ramm

comment:8 Changed 10 years ago by mramm

  • Priority changed from normal to highest

comment:9 in reply to: ↑ 7 Changed 10 years ago by jorge.vargas

Replying to mramm:

Interesting we are stealing the devtools package name :)

<<< snip >>>

How can we fix this? can we make tg a namespace package? I think we are going to have to go with the tg.core/tg.dev separation after all.

If we're going to avoid stealing devtools, we shoud rename tg.devtools to tgext.devtools.

I don't like tgext, as that namespace means it's not "officially" supported. Why not rename the package to tgdevtools? That will be the least breaking change, yet keep it "official"

comment:10 Changed 10 years ago by jorge.vargas

Please use the folliwing to test the patch

virtualenv tgtrunk
cd tgtrunk
source tgtrunk/bin/activate
svn co http://svn.turbogears.org/trunk tg
svn co http://svn.turbogears.org/trunk tg.devtools
cd tg
wget http://trac.turbogears.org/attachment/ticket/2176/tg2-dependencies.patch
patch -p0 < tg2-dependencies.patch
python setup.py develop
cd ../tg.devtools
wget http://trac.turbogears.org/attachment/ticket/2176/devtools-dependencies.patch
patch -p0 < devtools-dependencies.patch
python setup.py develop
paster quickstart tgtest1
#say yes to auth
paster quickstart tgtest2
#say no to auth

comment:11 Changed 10 years ago by jorge.vargas

as of today I consider this task ready.

comment:12 Changed 10 years ago by mramm

  • Status changed from new to closed
  • Resolution set to fixed

I am closing this. I expect that we may find some issues, but we will open new tickets and resolve them as we go.

Note: See TracTickets for help on using tickets.