Re: [Zope3-dev] Re: eggifying zc.resourcelibrary, zc.table and others

2006-04-06 Thread Martijn Faassen

Gary Poster wrote:
[snip]
Apologies for the confusion, Martijn.  I checked with Jim.  The  
procedure that Tres described is only for people who have direct  access 
to the machine.  The intended use is similar to the following:


$ touch gary_test.txt
$ scp gary_test.txt [EMAIL PROTECTED]:/distribution/
gary_test.txt 100%0 0.0KB/s
00:00




That appears to have worked! Thanks! Now somebody needs to remove the 
martijn_test.txt again, unless scp has file removal capabilities I don't 
know about. :)


Regards,

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



Re: [Zope3-dev] Re: eggifying zc.resourcelibrary, zc.table and others

2006-04-06 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martijn Faassen wrote:
 Gary Poster wrote:
 [snip]
 
 Apologies for the confusion, Martijn.  I checked with Jim.  The 
 procedure that Tres described is only for people who have direct 
 access to the machine.  The intended use is similar to the following:

 $ touch gary_test.txt
 $ scp gary_test.txt [EMAIL PROTECTED]:/distribution/
 gary_test.txt 100%0 0.0KB/s   
 00:00

 
 That appears to have worked! Thanks! Now somebody needs to remove the
 martijn_test.txt again, unless scp has file removal capabilities I don't
 know about. :)

Done.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFENPbA+gerLs4ltQ4RAjR2AKDBGRc2b2Rkv5sI+EmPeTMZbecqiQCglq2r
IwFGz0GQ2IszgDI6MGHZHG4=
=rCZs
-END PGP SIGNATURE-
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] Re: eggifying zc.resourcelibrary, zc.table and others

2006-04-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martijn Faassen wrote:

 * the setup.py I'll create will only work with setuptools installed;
 is this a problem?


 Not from us.  You'd maybe get even more warm fuzzies from people by
 making it not require setuptools, but that limitation doesn't bother us.
 
 
 Okay, good. Warm fuzzies are nice, but I won't worry too much about that.



There is some support for kickstarting an eggifying project.  E.g.:

  $ export ZSVN=svn+ssh://svn.zope.org/repos/main
  $ svn cp -m Eggify $ZSVN/productsupport/trunk/project-template \
   $ZSVN/zope.foopackage

The top-level 'zope.foopackage' will have a skeleton 'trunk', plus empty
'branches' and 'tags':

  $ svn co $ZSVN/zope.foopackage/trunk zope.foopackage-trunk
  $ cd zope.foopackage-trunk
  $ ls -1
  CHANGES.txt
  develop.py
  INSTALL.txt
  README.txt
  setup.cfg.in
  setup.py
  src
  test.py
  workspace

The text files are templates, and should be edited to fit.

The 'develop.py' script will set up a local 'bin' and 'lib' directory
 inside your checkout, and try to install dependencies as specified in
  'setup.py' and 'setup.cfg' (which it copies from 'setup.cfg.in').  It
   also jams the Zope egg URL into 'setup.cfg'.

I usually run 'setup.py develop' afterwards, as it is better at
finding all the dependencies:

  $ PYTHONPATH=lib /path/to/your/python setup.py develop

The 'zope.testing' package is supposed to be pulled in during that
bootstrapping, but often seems missed (I haven't yet figured out
why).  Running the local 'easy_install' does the trick:

  $ PYTHONPATH=lib /path/to/your/python bin/easy_install \
zope.testing


The 'src/zope' directory is intended to contain a 'svn:externals'
pointer to the canonical location of the source (we may eventually
reverse this, and make the main Zope tree point out at the top-level
package directories).  E.g.

  $ svn propedit svn:externals src/zope
  #... add your external here
  $ svn up
  # ... fetches your external.


That 'src/zope' directory also contains setuptools / pkgutil
boilerplat namespace __init__.py:

 $ cat src/zope/__init__.py
 # namespace package boilerplate
 try:
 __import__('pkg_resources').declare_namespace(__name__)
 except ImportError, e:
 from pkgutil import extend_path
 __path__ = extend_path(__path__, __name__)


The 'test.py' needs to be edited to point to your package.  At that
point, you should have all your package's dependencies installed
(assuming that you named them in 'setup.py'), and should be able to run
the tests using your local eggs:

  $ PYTHONPATH=lib /path/to/your/python test.py


Nathan, Jim, please correct any mistakes you see.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEM7tX+gerLs4ltQ4RArrjAJ9GAW9klbLC9n4ZUdcmbvvsrSDQCgCgsz+l
SojySIyJZEGgMVercdKH8Uk=
=FdIS
-END PGP SIGNATURE-

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



[Zope3-dev] Re: eggifying zc.resourcelibrary, zc.table and others

2006-04-05 Thread Florent Guillaume

Tres Seaver wrote:

* the setup.py I'll create will only work with setuptools installed;
is this a problem?


Not from us.  You'd maybe get even more warm fuzzies from people by
making it not require setuptools, but that limitation doesn't bother us.


Okay, good. Warm fuzzies are nice, but I won't worry too much about that.


There is some support for kickstarting an eggifying project.  E.g.:

  $ export ZSVN=svn+ssh://svn.zope.org/repos/main
  $ svn cp -m Eggify $ZSVN/productsupport/trunk/project-template \
   $ZSVN/zope.foopackage


Note that such a svn cp will make it quite painful to dump the repository 
later on using svadmin dump and then filtering the dump using svndumpfilter 
to keep only this package. (We've been bitten by that.)


I'd suggest doing instead a svn export of the project-template, then svn 
import as your new package.


Florent

--
Florent Guillaume, Nuxeo (Paris, France)   Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: eggifying zc.resourcelibrary, zc.table and others

2006-04-05 Thread Gary Poster


On Apr 5, 2006, at 11:03 AM, Martijn Faassen wrote:


Tres Seaver wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Martijn Faassen wrote:

Gary Poster wrote:
[snip]


Jim also suggests the new, as-of-this-moment-no-longer-secret  
http://
download.zope.org/distribution/ as a possible location instead.   
All Zope committers have the appropriate privileges to scp to  
this directory.  That's where he will be doing his egg work, at  
least until he thinks we have figured out the best way to make  
Zope eggs.  It can be used a setuptools source.



I'm trying to find a way to scp the zc.resourcelibrary egg into  
it, but
I get permission denied when I scp, possibly because I don't know  
which

directory 'distribution' really is on the actual system.

/var/www/download.zope.org/distribution


Hm, now I get this from scp:

Command not accepted

and verbose info says:

debug1: Sending command: scp -v -t /var/www/download.zope.org/ 
distribution

debug1: Entering interactive session.
debug1: fd 0 clearing O_NONBLOCK
Command not accepted


Apologies for the confusion, Martijn.  I checked with Jim.  The  
procedure that Tres described is only for people who have direct  
access to the machine.  The intended use is similar to the following:


$ touch gary_test.txt
$ scp gary_test.txt [EMAIL PROTECTED]:/distribution/
gary_test.txt 100%0 0.0KB/s
00:00


Any Zope contributor should have privileges to add to this directory  
(but not to sub directories).


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



[Zope3-dev] Re: eggifying zc.resourcelibrary, zc.table and others

2006-04-04 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gary Poster wrote:
 
 On Apr 4, 2006, at 12:38 PM, Martijn Faassen wrote:
 
 Hi there,

 * does anyone have any objections if I make eggs for various zc.* 
 packages? In svn, this involves adding a setup.py to these  packages,
 and to add a __init__.py to the zc package that they  contain (which
 contains some egg-specific stuff).
 
 
 Sounds great!  (I assume the __init__ changes won't cause problems 
 without setuptools around).

There is supposed to be a dance in Python itself for declaring a
namespace package.  Framkly, anybody who wants to play along *without*
setuptools installed has rocks in their heads:  distutils is too wanky
to use by itself for complicated cases, and setuptools makes it just
barely tolerable.

  Jim points out that Nathan Yergler has a 
 script that can generate eggs from zpkg data; you might or might not 
 find that to be easier.  It's less of an obvious win with these 
 packages that have little or no zpkg metadata already, but it might 
 still be quicker in some cases (no idea myself).
 

 * the setup.py I'll create will only work with setuptools  installed;
 is this a problem?
 
 
 Not from us.  You'd maybe get even more warm fuzzies from people by 
 making it not require setuptools, but that limitation doesn't bother us.
 

 * what email address should I list for the author of some zc  package?
 this is information that will appear in the cheeseshop.
 
 
 zope3-dev@zope.org
 

 * to get the full egg experience, I'd like to have them uploaded to 
 the cheeseshop. I could do this myself, but they're not my  packages.
 Can I? or does someone else want to do this? I'll of  course gladly
 give admin rights for these packages to the real  creators.
 
 
 Jim also suggests the new, as-of-this-moment-no-longer-secret http://
 download.zope.org/distribution/ as a possible location instead.  All 
 Zope committers have the appropriate privileges to scp to this 
 directory.  That's where he will be doing his egg work, at least  until
 he thinks we have figured out the best way to make Zope eggs.   It can
 be used a setuptools source.

Note that I am actively working in that directory on eggifying a number
of the top-level zope packages in released verisons (typically in
the flavors which shipped with ZopeX3.0.0 and Zope3.2).

 If you want to use the cheeseshop anyway, that's ok too.


- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEMsG5+gerLs4ltQ4RAq4rAKDCwrsDs/nmkJVv7ASzuhLsa81LOQCeIt6/
mBewTTCRqCgcK5EjiAO039U=
=GITX
-END PGP SIGNATURE-

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