package/python-remi: downgrade to 2020.8.6 and move to pypi
PATCH 1/1 package/python-remi: downgrade to 2020.8.6 and move to pypi
From: Gwenhael Goavec-Merou <[email protected]>
Since
https://github.com/dddomodossola/remi/commit/481ee7ca3df55be127db35560978a36997a2c088
remi use setuptools-scm to obtain version, but .git directory is dropped when the archive is fetched. The result is a build failure like:
Traceback (most recent call last):
File "setup.py", line 22, in <module>
include_package_data=True,
File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/tmp/instance-0/output-1/host/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools/dist.py", line 448, in __init__
k: v for k, v in attrs.items()
File "/tmp/instance-0/output-1/host/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools/dist.py", line 740, in finalize_options
ep.load()(self)
File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools/dist.py", line 747, in _finalize_setup_keywords
ep.load()(self, ep.name, value) File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools_scm/integration.py", line 17, in version_keyword
dist.metadata.version = _get_version(config)
File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools_scm/__init__.py", line 147, in _get_version
parsed_version = _do_parse(config)
File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools_scm/__init__.py", line 118, in _do_parse
"use git+https://github.com/user/proj.git#egg=proj" % config.absolute_root
LookupError: setuptools-scm was unable to detect version for u'/tmp/instance-0/output-1/build/python-remi-2020.10.30'.
Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
make: *** [package/pkg-generic.mk:250: /tmp/instance-0/output-1/build/python-remi-2020.10.30/.stamp_built] Error 1
make: Leaving directory '/tmp/instance-0/buildroot'
Fix:
- http://autobuild.buildroot.net/results/3a6/3a62359d0e183d45e50e999fc2c58f7805bda142/
--- package/python-remi/python-remi.hash | 3 ++- package/python-remi/python-remi.mk | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-)
package/python-remi/python-remi.hash +2 -1
@@ -1,3 +1,4 @@ +# sha256 from https://pypi.org/pypi/remi/json +sha256 2a1953747fd01bfda25381624f6b84d83586d247f6b47282dbafff348fd05d88 remi-2020.8.6.tar.gz # Locally computed -sha256 afe28d799d147d39954e18377e81101d045affe9c634eed5bf8dfdf888202650 python-remi-2020.10.30.tar.gz sha256 bc198f9846c1da3a1c1b1fa2b12909b021365d1e7fe9b4039245edfcec3b7f7f LICENSE
package/python-remi/python-remi.mk +3 -2
@@ -4,8 +4,9 @@ # ################################################################################ -PYTHON_REMI_VERSION = 2020.10.30 -PYTHON_REMI_SITE = $(call github,dddomodossola,remi,$(PYTHON_REMI_VERSION)) +PYTHON_REMI_VERSION = 2020.8.6 +PYTHON_REMI_SOURCE = remi-$(PYTHON_REMI_VERSION).tar.gz +PYTHON_REMI_SITE = https://files.pythonhosted.org/packages/d1/74/e2a1f5df4e57170369b221017c954ce9002901b9cc136365de0cf300e72a PYTHON_REMI_LICENSE = Apache-2.0 PYTHON_REMI_LICENSE_FILES = LICENSE PYTHON_REMI_SETUP_TYPE = setuptools
Signature · 1 line
2.20.1
PATCH 1/1 package/python-remi: downgrade to 2020.8.6 and move to pypi
Hello,
Quoted 7 lines · On Wed, 4 Nov 2020 15:13:03 +0100 Gwenhael Goavec-Merou…
From: Gwenhael Goavec-Merou <[email protected]>
Since
https://github.com/dddomodossola/remi/commit/481ee7ca3df55be127db35560978a36997a2c088remi use setuptools-scm to obtain version, but .git directory is dropped when the archive is fetched. The result is a build failure like:
Do we need to do more than revertingd58a2267a61c1377e390aa132850d6098917cf88 ?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/python-remi: downgrade to 2020.8.6 and move to pypi
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hello,
Quoted 2 lines · On Wed, 4 Nov 2020 15:13:03 +0100 Gwenhael Goavec-Merou…
From: Gwenhael Goavec-Merou <[email protected]>
Quoted 8 lines
Quoted 5 lines
Since
https://github.com/dddomodossola/remi/commit/481ee7ca3df55be127db35560978a36997a2c088remi use setuptools-scm to obtain version, but .git directory is dropped when the archive is fetched. The result is a build failure like:
Do we need to do more than reverting
d58a2267a61c1377e390aa132850d6098917cf88?
That would bring us back to the 2019.9 release - Or what do you mean?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 package/python-remi: downgrade to 2020.8.6 and move to pypi
In reply to Gwenhael Goavec-MerouQuoted 62 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gwenhael" == Gwenhael Goavec-Merou <[email protected]> writes:
From: Gwenhael Goavec-Merou <[email protected]> Since
https://github.com/dddomodossola/remi/commit/481ee7ca3df55be127db35560978a36997a2c088remi use setuptools-scm to obtain version, but .git directory is dropped when the archive is fetched. The result is a build failure like:
Traceback (most recent call last):
File "setup.py", line 22, in <module>
include_package_data=True,
File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools/__init__.py", line 145, in setup
returndistutils.core.setup(**attrs)
File "/tmp/instance-0/output-1/host/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution= dist = klass(attrs)
File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools/dist.py", line 448, in__init__
k: v for k, v inattrs.items()
File "/tmp/instance-0/output-1/host/lib/python2.7/distutils/dist.py", line 287, in__init__
self.finalize_options()
File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools/dist.py", line 740, infinalize_optionsep.load()(self) File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools/dist.py", line 747, in _finalize_setup_keywords ep.load()(self, ep.name, value)File "
/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools_scm/integration.py", line 17, inversion_keyword
dist.metadata.version =_get_version(config)
File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools_scm/__init__.py", line 147, in_get_version
parsed_version=_do_parse(config)
File "/tmp/instance-0/output-1/host/lib/python2.7/site-packages/setuptools_scm/__init__.py", line 118, in_do_parse
"use git+https://github.com/user/proj.git#egg=proj" % config.absolute_root
LookupError: setuptools-scm was unable to detect version for u'/tmp/instance-0/output-1/build/python-remi-2020.10.30'.Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
make: *** [package/pkg-generic.mk:250:/tmp/instance-0/output-1/build/python-remi-2020.10.30/.stamp_built] Error 1
make: Leaving directory '/tmp/instance-0/buildroot'Fix:
- http://autobuild.buildroot.net/results/3a6/3a62359d0e183d45e50e999fc2c58f7805bda142/Signed-off-by Gwenhael Goavec-Merou <[email protected]>--- package/python-remi/python-remi.hash | 3 ++- package/python-remi/python-remi.mk | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-)package/python-remi/python-remi.hash +2
-1@@ -1,3 +1,4 @@ +# sha256 from https://pypi.org/pypi/remi/json +sha256 2a1953747fd01bfda25381624f6b84d83586d247f6b47282dbafff348fd05d88 remi-2020.8.6.tar.gz # Locally computed -sha256 afe28d799d147d39954e18377e81101d045affe9c634eed5bf8dfdf888202650 python-remi-2020.10.30.tar.gz sha256 bc198f9846c1da3a1c1b1fa2b12909b021365d1e7fe9b4039245edfcec3b7f7f LICENSEpackage/python-remi/python-remi.mk +0
-0
package/python-remi/python-remi.mk line 11
Quoted 10 lines
package/python-remi/python-remi.mk +3
-2@@ -4,8 +4,9 @@ # ################################################################################ -PYTHON_REMI_VERSION = 2020.10.30 -PYTHON_REMI_SITE = $(call github,dddomodossola,remi,$(PYTHON_REMI_VERSION)) +PYTHON_REMI_VERSION = 2020.8.6 +PYTHON_REMI_SOURCE = remi-$(PYTHON_REMI_VERSION).tar.gz +PYTHON_REMI_SITE = https://files.pythonhosted.org/packages/d1/74/e2a1f5df4e57170369b221017c954ce9002901b9cc136365de0cf300e72a PYTHON_REMI_LICENSE = Apache-2.0 PYTHON_REMI_LICENSE_FILES = LICENSE
The tarball on pypi unfortunately doesn't include the LICENSE file, so I've dropped this and committed.
Can you please reach out to upstream to get then to include the license file in future releases?
Signature · 1 line
Bye, Peter Korsgaard