[Python-apps-team] Bug#779321: slimit: Please provide python-slimit and python3-slimit

Brian May bam at debian.org
Fri Feb 27 04:42:18 UTC 2015


Unfortunately, I just noticed that slimit is not compatible with Python3
[1].

So this is a request for:

* Rename package to python-slimit, as per Debian policy.
* Fix python3 issues and package python3-slimit.


Notes:

[1] Or at least I get the following error with Python3, and it doesn't
happen with Python2:

Traceback (most recent call last):
  File "./manage.py", line 24, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py",
line 385, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py",
line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python3/dist-packages/django/core/management/base.py",
line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python3/dist-packages/django/core/management/base.py",
line 338, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python3/dist-packages/django/core/management/base.py",
line 533, in handle
    return self.handle_noargs(**options)
  File
"/usr/lib/python3/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
line 168, in handle_noargs
    collected = self.collect()
  File
"/usr/lib/python3/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
line 114, in collect
    for original_path, processed_path, processed in processor:
  File "/usr/lib/python3/dist-packages/pipeline/storage.py", line 36, in
post_process
    packager.pack_javascripts(package)
  File "/usr/lib/python3/dist-packages/pipeline/packager.py", line 112, in
pack_javascripts
    return self.pack(package, self.compressor.compress_js, js_compressed,
templates=package.templates, **kwargs)
  File "/usr/lib/python3/dist-packages/pipeline/packager.py", line 106, in
pack
    content = compress(paths, **kwargs)
  File "/usr/lib/python3/dist-packages/pipeline/compressors/__init__.py",
line 67, in compress_js
    js = getattr(compressor(verbose=self.verbose), 'compress_js')(js)
  File "/usr/lib/python3/dist-packages/pipeline/compressors/slimit.py",
line 13, in compress_js
    return minify(js)
  File
"/home/brian/tree/python/lib/python3.4/site-packages/slimit/minifier.py",
line 38, in minify
    tree = parser.parse(text)
  File
"/home/brian/tree/python/lib/python3.4/site-packages/slimit/parser.py",
line 93, in parse
    return self.parser.parse(text, lexer=self.lexer, debug=debug)
  File "/home/brian/tree/python/lib/python3.4/site-packages/ply/yacc.py",
line 265, in parse
    return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
  File "/home/brian/tree/python/lib/python3.4/site-packages/ply/yacc.py",
line 971, in parseopt_notrack
    p.callable(pslice)
  File
"/home/brian/tree/python/lib/python3.4/site-packages/slimit/parser.py",
line 1101, in p_case_block
    p[0] = p[2:-1]
  File "/home/brian/tree/python/lib/python3.4/site-packages/ply/yacc.py",
line 198, in __getitem__
    if n >= 0: return self.slice[n].value
TypeError: unorderable types: slice() >= int()


-- 
Brian May <bam at debian.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20150227/53855589/attachment.html>


More information about the Python-apps-team mailing list