Closed erral closed 4 years ago
Adding this as a dependency breaks Plone 4 installations that add bobtemplates.plone as an egg:
pkg_resources.require("UNKNOWN") # latest installed version
pkg_resources.require("UNKNOWN==0.0.0") # this exact version
pkg_resources.require("UNKNOWN>=0.0.0") # this version or higher
While:
Installing mrbob.
Getting distribution for 'tox'.
lib/python2.7/site-packages/zc/buildout/easy_install.py", line 1704, in _move_to_eggs_dir_and_compile
os.rename(tmp_loc, newloc)
OSError: [Errno 66] Directory not empty
Workaroud: pin bobtemplates.plone
before this commit (bobtemplates.plone = 5.1.1
).
In the documentation, right now, we have:
Add-ons created with bobtemplates.plone are tested to work in Plone 4.3.x and Plone 5. They should also work with older versions but that was not tested. It should work on Linux, Mac and Windows.
It doesn't say that bobtemplates.plone
needs to work with Plone 4, just that addons created with it should work. So, not sure if this is a regression.
When creating a package using the 'addon' template I get the following error:
This happens because utils.py runs tox in the package but tox is not installed https://github.com/plone/bobtemplates.plone/blob/master/bobtemplates/plone/utils.py#L71
This could be fixed adding tox as a dependency for bobtemplates.plone