Bug 209134 - www/py-django-assets : version mismatch for www/py-webassets dependency
Summary: www/py-django-assets : version mismatch for www/py-webassets dependency
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-28 19:49 UTC by Rene Ladan
Modified: 2016-05-20 21:01 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (wg)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rene Ladan freebsd_committer freebsd_triage 2016-04-28 19:49:08 UTC
According to the Makefile of www/py-django-assets, it depends on any version of www/py-webassets (currently 0.10.1), however it's setup.py depends on exactly version 0.10 :

[rene@acer] /usr/vcs/freebsd/ports/head/www/py-django-assets/work/django-assets-0.10% grep -r __webassets .
./django_assets/__init__.py:__webassets_version__ = ('0.10',)
./setup.py:webassets_version = parse_version('__webassets_version__')

This causes textproc/pootle (2.7.3, not committed yet) to fail:

root@www:/tmp # pkg info |grep asset
py27-django-assets-0.10_2      Compress and merge CSS and Javascript files
py27-webassets-0.10.1          Media asset management for Python
root@www:/tmp # pkg info |grep pootle
pootle-2.7.3                   User-friendly web portal for simple translation process

root@www:/tmp # pootle --version
Traceback (most recent call last):
  File "/usr/local/bin/pootle", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3141, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3127, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3154, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 642, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 655, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 828, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'webassets==0.10' distribution was not found and is required by django-assets
root@www:/tmp # 

So I guess either www/py-django-assets needs to be patched to allow webassets >= 0.10 (for example) or a webassets-0.10 port needs to be created?
Comment 1 Rene Ladan freebsd_committer freebsd_triage 2016-04-28 20:13:32 UTC
For the current WIP port of textproc/pootle, see https://reviews.freebsd.org/D5305
Comment 2 Rene Ladan freebsd_committer freebsd_triage 2016-05-20 21:01:21 UTC
Superseded by 209672 / 209673