librelist archives

« back to archive

convert error (pyswisseph)

convert error (pyswisseph)

From:
Gour
Date:
2012-09-08 @ 11:45
Hello,

attempt to convert pyswisseph package to Bento (0.1.1) gives:

gour@atmarama ~/t/p/pyswisseph-1.77.00-0 $ bentomaker convert -v
Catching monkey (this may take a while) ...
----------------- Testing distutils ------------------
----------------- Testing setuptools -----------------
------------ Testing numpy.distutils -----------------
--- Testing numpy.distutils patched by setuptools ----
Is distutils ? True
Is setuptools ? True
Is numpy distutils ? False
Is setuptools numpy ? False
Detected mode: setuptools
warning: sdist: manifest template 'MANIFEST.in' does not exist (using 
default file list)

Error while converting setup.py - you may look at convert.log for details 
(Original exception: <class 'bento.errors.InvalidPackage'> Invalid 
version: '1.77.00-0' (suggested version: 1.77.0.post0))
(You can see the traceback by setting the BENTOMAKER_DEBUG=1 environment variable)


Here is the snippet from convert.log:

Error while converting - traceback:
  File "/usr/lib/python2.7/site-packages/bento/convert/commands.py", line 
83, in run
    convert(ctx, filename, setup_args, monkey_patch_mode, o.verbose, 
output, log, show_output)
  File "/usr/lib/python2.7/site-packages/bento/convert/commands.py", line 
114, in convert
    pkg, options = build_pkg(dist, package_objects, ctx.top_node)
  File "/usr/lib/python2.7/site-packages/bento/convert/core.py", line 274,
in build_pkg
    pkg = distutils_to_package_description(dist)
  File "/usr/lib/python2.7/site-packages/bento/conv.py", line 160, in 
distutils_to_package_description
    return PackageDescription(**data)
  File "/usr/lib/python2.7/site-packages/bento/core/package.py", line 277,
in __init__
    _set_metadata(self, **kw)
  File "/usr/lib/python2.7/site-packages/bento/core/meta.py", line 34, in 
_set_metadata
    % (version, suggest_normalized_version(version)))


And the URL for the package is:

http://pypi.python.org/pypi/pyswisseph/1.77.00-0


Should I submit a ticket to Github?


Sincerely,
Gour


-- 
From wherever the mind wanders due to its flickering and unsteady 
nature, one must certainly withdraw it and bring it back under 
the control of the self.

http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810

Re: [bento] convert error (pyswisseph)

From:
David Cournapeau
Date:
2012-09-11 @ 20:03
Please make a GH issue. There are two issues: first, the package.version
does not follow packaging version convention, and more significant, there
is a bug in bento.info parser to handle some of the.classifiers.
Le 8 sept. 2012 12:46, "Gour" <gour@atmarama.net> a écrit :

> Hello,
>
> attempt to convert pyswisseph package to Bento (0.1.1) gives:
>
> gour@atmarama ~/t/p/pyswisseph-1.77.00-0 $ bentomaker convert -v
> Catching monkey (this may take a while) ...
> ----------------- Testing distutils ------------------
> ----------------- Testing setuptools -----------------
> ------------ Testing numpy.distutils -----------------
> --- Testing numpy.distutils patched by setuptools ----
> Is distutils ? True
> Is setuptools ? True
> Is numpy distutils ? False
> Is setuptools numpy ? False
> Detected mode: setuptools
> warning: sdist: manifest template 'MANIFEST.in' does not exist (using
> default file list)
>
> Error while converting setup.py - you may look at convert.log for details
> (Original exception: <class 'bento.errors.InvalidPackage'> Invalid version:
> '1.77.00-0' (suggested version: 1.77.0.post0))
> (You can see the traceback by setting the BENTOMAKER_DEBUG=1 environment
> variable)
>
>
> Here is the snippet from convert.log:
>
> Error while converting - traceback:
>   File "/usr/lib/python2.7/site-packages/bento/convert/commands.py", line
> 83, in run
>     convert(ctx, filename, setup_args, monkey_patch_mode, o.verbose,
> output, log, show_output)
>   File "/usr/lib/python2.7/site-packages/bento/convert/commands.py", line
> 114, in convert
>     pkg, options = build_pkg(dist, package_objects, ctx.top_node)
>   File "/usr/lib/python2.7/site-packages/bento/convert/core.py", line 274,
> in build_pkg
>     pkg = distutils_to_package_description(dist)
>   File "/usr/lib/python2.7/site-packages/bento/conv.py", line 160, in
> distutils_to_package_description
>     return PackageDescription(**data)
>   File "/usr/lib/python2.7/site-packages/bento/core/package.py", line 277,
> in __init__
>     _set_metadata(self, **kw)
>   File "/usr/lib/python2.7/site-packages/bento/core/meta.py", line 34, in
> _set_metadata
>     % (version, suggest_normalized_version(version)))
>
>
> And the URL for the package is:
>
> http://pypi.python.org/pypi/pyswisseph/1.77.00-0
>
>
> Should I submit a ticket to Github?
>
>
> Sincerely,
> Gour
>
>
> --
> >From wherever the mind wanders due to its flickering and unsteady
> nature, one must certainly withdraw it and bring it back under
> the control of the self.
>
> http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
>