Are there in Python some static web site generating tools like webgen, nanoc or webby in Ruby ?

2010-03-09 Thread KLEIN Stéphane
Hi,

Today, I've show this static web site generating tools write in ruby :

 * http://webgen.rubyforge.org/index.html
 * http://nanoc.stoneship.org/about/
 * http://webby.rubyforge.org/tutorial/

I like this tools, I'm wonder if there are similar tools in Python ?

I know Sphinx, but this tools is oriented documentation.

Thanks for your information,
Stephane

-- 
Stéphane Klein steph...@harobed.org
Blog : http://harobed.org 
Jabber : stephane.kl...@jabber.fr

-- 
http://mail.python.org/mailman/listinfo/python-list


Are there in Python some static web site generating tools like webgen, nanoc or webby in Ruby ?

2010-03-09 Thread KLEIN Stéphane
Hi,

Today, I've show this static web site generating tools writed in ruby :

 * http://webgen.rubyforge.org/index.html
 * http://nanoc.stoneship.org/about/
 * http://webby.rubyforge.org/tutorial/

I like this tools, I'm wonder if there are similar tools in Python ?

I know Sphinx, but this tools is oriented documentation.

Thanks for your information,
Stephane

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Some issue with easy_install and PIL/Imaging

2009-09-28 Thread Klein Stéphane

Fredrik Lundh a écrit :

On Fri, Sep 11, 2009 at 3:49 PM, Chris Withers ch...@simplistix.co.uk wrote:

Klein Stéphane wrote:

Resume :
1. first question : why PIL package in pypi don't work ?

Because Fred Lundh have his package distributions unfortunate names that
setuptools doesn't like...


It used to support this, but no longer does.  To me, that says more
about the state of setuptools than it does about the state of PIL,
which has been using the same naming convention for 15 years.


Ok, and what can we do ?

Is a setuptools issue ?

Can distribute (http://bitbucket.org/tarek/distribute/wiki/Home setuptools 
fork) fix this issue easily ?

Regards,
Stephane
--
http://mail.python.org/mailman/listinfo/python-list


Re: I look for proxy cache like apt-proxy (for Debian Package) but for python eggs package…

2009-09-21 Thread KLEIN Stéphane
Le Sun, 20 Sep 2009 18:33:10 +0200, Klein Stéphane a écrit :

 Hi,
 
 I look for a tools to do proxy cache like apt-proxy (for Debian Package)
 but for python eggs package.
 
 Can a easy-install option perform this feature ?

I found somethings to do that :

http://pypi.python.org/pypi/collective.eggproxy/0.3.1

Regards,
Stephane

-- 
http://mail.python.org/mailman/listinfo/python-list


I look for proxy cache like apt-pro xy (for Debian Package) but for python eggs package…

2009-09-20 Thread Klein Stéphane

Hi,

I look for a tools to do proxy cache like apt-proxy (for Debian Package) but 
for python eggs package.

Can a easy-install option perform this feature ?

Thanks for your help,
Stephane

--
http://mail.python.org/mailman/listinfo/python-list


Some issue with easy_install and PIL/Imaging

2009-09-09 Thread Klein Stéphane

Hi,

I would like to insert Imaging dependence in my setup.py file.

Resume :
1. first question : why PIL package in pypi don't work ?
2. second question : when I add PIL dependence in my setup.py and I do
   python setup.py develop, I've this error :
   error: Could not find required distribution Imaging.
   Why ?


Full explication :

First, I test manualy installation :

::

(env1)skl...@eee-sklein:$ easy_install pil
Searching for pil
Reading http://pypi.python.org/simple/pil/
Reading http://www.pythonware.com/products/pil
Reading http://effbot.org/zone/pil-changes-115.htm
Reading http://effbot.org/downloads/#Imaging
No local packages or download links found for pil
error: Could not find suitable distribution for 
Requirement.parse('pil')


This command fail !

Now, I try with Imaging package name :

::

(env1)skl...@eee-sklein:$ easy_install Imaging
Searching for Imaging
Reading http://pypi.python.org/simple/Imaging/
Couldn't find index page for 'Imaging' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for Imaging
error: Could not find suitable distribution for 
Requirement.parse('Imaging')


This command fail also.

Now, I add --find-links parameter to easy_install :

::

(env1)skl...@eee-sklein:$ easy_install --find-links 
http://www.pythonware.com/products/pil/ Imaging

Searching for Imaging
Reading http://www.pythonware.com/products/pil/
Best match: Imaging 1.1.6
Downloading http://effbot.org/downloads/Imaging-1.1.6.tar.gz
Processing Imaging-1.1.6.tar.gz
Running Imaging-1.1.6/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-rF1PG1/Imaging-1.1.6/egg-dist-tmp-Xtv8GV
libImaging/Effects.c:210: attention : ‘perlin_init’ defined but not 
used

libImaging/File.c: In function ‘ImagingOpenPPM’:
libImaging/File.c:112: attention : ignoring return value of 
‘fread’, declared with attribute warn_unused_result
libImaging/File.c:119: attention : ignoring return value of 
‘fread’, declared with attribute warn_unused_result
libImaging/Geometry.c:236: attention : ‘quadratic_transform’ 
defined but not used

libImaging/Quant.c:311: attention : ‘test_sorted’ defined but not used
libImaging/Quant.c:676: attention : ‘checkContained’ defined but 
not used
libImaging/QuantHash.c:136: attention : ‘_hashtable_test’ defined 
but not used


PIL 1.1.6 BUILD SUMMARY

version   1.1.6
platform  linux2 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
  [GCC 4.3.3]

*** TKINTER support not available (Tcl/Tk 8.5 libraries needed)
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok

To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.
zip_safe flag not set; analyzing archive contents...
Image: module references __file__
Adding PIL 1.1.6 to easy-install.pth file
Installing pilprint.py script to 
/home/sklein/tests/test_eggs_pil/env1/bin
Installing pilfile.py script to 
/home/sklein/tests/test_eggs_pil/env1/bin
Installing pilconvert.py script to 
/home/sklein/tests/test_eggs_pil/env1/bin
Installing pilfont.py script to 
/home/sklein/tests/test_eggs_pil/env1/bin
Installing pildriver.py script to 
/home/sklein/tests/test_eggs_pil/env1/bin


Installed 
/home/sklein/tests/test_eggs_pil/env1/lib/python2.6/site-packages/PIL-1.1.6-py2.6-linux-i686.egg

Skipping dependencies for PIL 1.1.6

This command work very well.

First question : why PIL package in pypi don't work ?

Now, I remove PIL in my virtualenv to test setup.py installation :

::

(env1)skl...@eee-sklein:$ rm 
/home/sklein/tests/test_eggs_pil/env1/lib/python2.6/site-packages/PIL-1.1.6-py2.6-linux-i686.egg/ 
-rf


(env1)skl...@eee-sklein:$ cat setup.py
from setuptools import setup, find_packages
import sys, os

version = '0.0'

setup(name='test_pil',
  version=version,
  description=,
  long_description=\
,
  classifiers=[], # Get strings from 
http://pypi.python.org/pypi?%3Aaction=list_classifiers

  keywords='',
  author='',
  author_email='',
  url='',
  license='',
  packages=find_packages(exclude=['ez_setup', 'examples', 
'tests']),

  include_package_data=True,
  zip_safe=False,
  dependency_links=['http://www.pythonware.com/products/pil/'],
  install_requires=[

I look for private Python Index server on my local network... What do you use ?

2009-06-23 Thread Klein Stéphane
Hi,

I wonder what Python Index server (like as pypi.python.org) do you use in 
your corporation for handle your private python eggs ?

I found three solutions :

* http://pypi.python.org/pypi/basketweaver/0.1.2-r6
* http://pypi.python.org/pypi/pypi/2005-08-01
* http://pypi.python.org/pypi/EggBasket/0.6.1b

Do you know another software ? What do you use ?

Thanks for your help,
Stephane

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Where does the command ls in some doctest files come from ?

2008-09-08 Thread KLEIN Stéphane
Le Mon, 08 Sep 2008 12:51:04 +, Steven D'Aprano a écrit :

 On Mon, 08 Sep 2008 12:15:15 +, KLEIN Stéphane wrote:
 
 Hi,
 
 for example, in http://svn.zope.org/zc.buildout/trunk/src/zc/buildout/
 tests.py?rev=89831view=auto test file, there is this doctests :
 
 [snip]
 
  ls('develop-eggs')
 
 
 I wonder where does the ls('develop-eggs') command come from ?
 
 It is doctest buildin command ?
 
 Easy to find out: import doctest and see for yourself:
 
 import doctest
 doctest.ls
 Traceback (most recent call last):
   File stdin, line 1, in module
 AttributeError: 'module' object has no attribute 'ls'
 
 You found the ls() function in a docstring from Zope. The doctest seems
 to be testing ls(). That suggests to me that ls() is defined in Zope,
 not doctest.

Well, ls() is one test utility function defined in zc.buildout.testing 
module. This module contain many utility function like mkdir, ls, cat...

 
 Why do you ask?

I'm curious... I've seen this utility and I would like to know how can I 
use it.

Regards,
Stephane

--
http://mail.python.org/mailman/listinfo/python-list

Where does the command ls in some doctest files come from ?

2008-09-08 Thread KLEIN Stéphane
Hi,

for example, in http://svn.zope.org/zc.buildout/trunk/src/zc/buildout/
tests.py?rev=89831view=auto test file, there is this doctests :

def develop_verbose():

We should be able to deal with setup scripts that aren't setuptools based.

 mkdir('foo')
 write('foo', 'setup.py',
... '''
... from setuptools import setup
... setup(name=foo)
... ''')

 write('buildout.cfg',
... '''
... [buildout]
... develop = foo
... parts = 
... ''')

 print system(join('bin', 'buildout')+' -vv'), # doctest: +ELLIPSIS
Installing...
Develop: '/sample-buildout/foo'
...
Installed /sample-buildout/foo
...

 ls('develop-eggs')
-  foo.egg-link
-  zc.recipe.egg.egg-link

 print system(join('bin', 'buildout')+' -vvv'), # doctest: 
+ELLIPSIS
Installing...
Develop: '/sample-buildout/foo'
in: '/sample-buildout/foo'
... -q develop -mxN -d /sample-buildout/develop-eggs/...




I wonder where does the ls('develop-eggs') command come from ?

It is doctest buildin command ? Where can I found some documentation 
about that ? I see this page http://docs.python.org/lib/module-
doctest.html and I found nothing about that subject.

Thanks for your help,
Stephane
http://docs.python.org/lib/module-doctest.html

--
http://mail.python.org/mailman/listinfo/python-list


I can't fetch dom node in svg file with getElementById method (module minidom and libxml2dom)

2008-08-25 Thread KLEIN Stéphane
Hi,

I've a xml svg file and I would like to update it with Python.

First, I would like to fetch one dom node with getElementByID. I've one 
issue about this method.

This is my example :

My SVG file :


?xml version=1.0 encoding=UTF-8 standalone=no?
!-- Created with Inkscape (http://www.inkscape.org/) --
svg:svg
   xmlns:dc=http://purl.org/dc/elements/1.1/;
   xmlns:cc=http://creativecommons.org/ns#;
   xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
   xmlns:svg=http://www.w3.org/2000/svg;
   xmlns:xlink=http://www.w3.org/1999/xlink;
   xmlns:sodipodi=http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd;
   xmlns:inkscape=http://www.inkscape.org/namespaces/inkscape;
   width=210mm
   height=297mm
   id=svg2383
   sodipodi:version=0.32
   inkscape:version=0.46
   sodipodi:docname=product_page.svg
   inkscape:output_extension=org.inkscape.output.svg.inkscape
/svg:svg


$ ipython

In [1]: from xml.dom import minidom

In [2]: dom1 = minidom.parse(myfile.svg)

In [3]: print(dom1.getElementById(usvg2383))
None

In [4]: print(dom1.getElementById(svg2383))
None

I don't understand why getElementById return always None.

Other example with libxml2dom library :

$ ipython

In [1]: import libxml2dom

In [2]: dom2 = libxml2dom.parseFile(myfile.svg)

In [3]: print(dom2.getElementById(usvg2383))
None

In [4]: print(dom2.getElementById(svg2383))

I don't understand why getElementById return always None.

Well, my final purpose isn't to fetch root dom node but to fetch many 
other sub node.

Thanks for your informations.
Stephane


--
http://mail.python.org/mailman/listinfo/python-list


Re: I can't fetch dom node in svg file with getElementById method (module minidom and libxml2dom)

2008-08-25 Thread KLEIN Stéphane
Le Mon, 25 Aug 2008 04:30:00 -0700, Paul Boddie a écrit :

 Well, my final purpose isn't to fetch root dom node but to fetch many
 other sub node.
 
 You could always try using an XPath expression:
 
   node = (dom2.xpath(//[EMAIL PROTECTED]'svg2383']) or [None])[0]
 
 Similar things could be done in PyXML and other libraries, I'm sure, but
 minidom lacks XPath support, if I remember correctly.

Thanks ! It work.

Regards,
Stephane


--
http://mail.python.org/mailman/listinfo/python-list

When I do from lxml import etree I've this error : AttributeError: 'module' object has no attribute 'BytesIO'

2008-08-25 Thread KLEIN Stéphane
Hi,

I'm on Ubuntu 8.04.1

I've installed lxml with easy_install lxml command.

Now, when I load etree I've this error :

$ python
Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type help, copyright, credits or license for more information.
 from lxml import etree
Traceback (most recent call last):
  File stdin, line 1, in module
  File lxml.etree.pyx, line 40, in lxml.etree (src/lxml/
lxml.etree.c:119415)
AttributeError: 'module' object has no attribute 'BytesIO'
 

Have you some idea about this issue ?

Thanks for your help,
Stephane

--
http://mail.python.org/mailman/listinfo/python-list


Re: When I do from lxml import etree I've this error : AttributeError: 'module' object has no attribute 'BytesIO'

2008-08-25 Thread KLEIN Stéphane
Le Mon, 25 Aug 2008 13:50:50 +, KLEIN Stéphane a écrit :

 Hi,
 
 I'm on Ubuntu 8.04.1
 
 I've installed lxml with easy_install lxml command.
 
 Now, when I load etree I've this error :
 
 $ python
 Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) [GCC 4.2.3 (Ubuntu
 4.2.3-2ubuntu7)] on linux2 Type help, copyright, credits or
 license for more information.
 from lxml import etree
 Traceback (most recent call last):
   File stdin, line 1, in module
   File lxml.etree.pyx, line 40, in lxml.etree (src/lxml/
 lxml.etree.c:119415)
 AttributeError: 'module' object has no attribute 'BytesIO'
 
 
 Have you some idea about this issue ?

I've this bug only with lxml2, lxml 1.3.3 work very well.

Regards,
Stephane


--
http://mail.python.org/mailman/listinfo/python-list

Do you know mirror repository of PyUMLGraph, what do you thinks about this tools ?

2008-01-10 Thread KLEIN Stéphane
Hi,

I've looked http://www.umlgraph.org/ tools. I think it's great to 
generate UML Diagram from source code and comment's. I read there are 
Python version of this tools : PyUMLGraph (http://pypi.python.org/pypi/
PyUMLGraph/0.1.10). Unfortunately, repository of this tools is down :(

My questions :
* do you know a mirror repository of this tools ?
* have you used this tools ? What do you thinks about ?

I thinks this can be a great tools in agility programming context.

Thanks for your informations
Stephane

-- 
http://mail.python.org/mailman/listinfo/python-list


Package to handle table text render (handle space or tab between the columns) ?

2006-10-06 Thread KLEIN Stéphane
Hi,

I would like print tabular values on terminal (stdout). Are there 
package to handle table text render ?

Thanks for your help,
Stephane
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Package to handle table text render (handle space or tab between the columns) ?

2006-10-06 Thread KLEIN Stéphane
hanumizzle a écrit :
 On 10/6/06, KLEIN Stéphane [EMAIL PROTECTED] wrote:
 Hi,

 I would like print tabular values on terminal (stdout). Are there
 package to handle table text render ?
 
 Have a look at:
 
 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/267662

Thanks, this package is very useful ! But I'm suprised than this package 
isn't in python standard library !

Regards,
Stephane
-- 
http://mail.python.org/mailman/listinfo/python-list