New to OBS python package won't build - for accessing PST files
All, I won't to be able access PST files from python. python-libratom is a package for doing that. It layers on top of libpff, which is already in factory. I've got my initial OBS package at: home:gregfreemyer:Tools-for-forensic-boot-cd/python-libratom [https://build.opensuse.org/package/show/home:gregfreemyer:Tools-for-forensic...] Unfortunately, %python_build is failing as shown in the below log. Can anyone tell how this package should be built? ===== [ 26s] + python_flavor=python39 [ 26s] + /usr/bin/python3.9 setup.py build '--executable=/usr/bin/python3.9 -s' [ 27s] /usr/lib/python3.9/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. [ 27s] !! [ 27s] [ 27s] ******************************************************************************** [ 27s] Requirements should be satisfied by a PEP 517 installer. [ 27s] If you are using pip, you can try `pip install --use-pep517`. [ 27s] ******************************************************************************** [ 27s] [ 27s] !! [ 27s] dist.fetch_build_eggs(dist.setup_requires) [ 27s] WARNING: The wheel package is not available. [ 27s] Error parsing [ 27s] Traceback (most recent call last): [ 27s] File "/usr/lib/python3.9/site-packages/pbr/core.py", line 105, in pbr [ 27s] attrs = util.cfg_to_args(path, dist.script_args) [ 27s] File "/usr/lib/python3.9/site-packages/pbr/util.py", line 272, in cfg_to_args [ 27s] pbr.hooks.setup_hook(config) [ 27s] File "/usr/lib/python3.9/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook [ 27s] metadata_config.run() [ 27s] File "/usr/lib/python3.9/site-packages/pbr/hooks/base.py", line 27, in run [ 27s] self.hook() [ 27s] File "/usr/lib/python3.9/site-packages/pbr/hooks/metadata.py", line 25, in hook [ 27s] self.config['version'] = packaging.get_version( [ 27s] File "/usr/lib/python3.9/site-packages/pbr/packaging.py", line 874, in get_version [ 27s] raise Exception("Versioning for this project requires either an sdist" [ 27s] Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name libratom was given, but was not able to be found. [ 27s] error in setup command: Error parsing /home/abuild/rpmbuild/BUILD/libratom-0.7.1/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name libratom was given, but was not able to be found. [ 27s] error: Bad exit status from /var/tmp/rpm-tmp.mhkE0b (%build) Thanks, Greg -- Greg Freemyer Advances are made by answering questions. Discoveries are made by questioning answers. — Bernard Haisch
On 20.05.2023 01:31, Greg Freemyer wrote:
All,
I won't to be able access PST files from python.
You won't or you want?
python-libratom is a package for doing that. It layers on top of libpff, which is already in factory.
I've got my initial OBS package at: home:gregfreemyer:Tools-for-forensic-boot-cd/python-libratom
[https://build.opensuse.org/package/show/home:gregfreemyer:Tools-for-forensic...]
Unfortunately, %python_build is failing as shown in the below log.
Can anyone tell how this package should be built? =====
[ 26s] + python_flavor=python39 [ 26s] + /usr/bin/python3.9 setup.py build '--executable=/usr/bin/python3.9 -s' [ 27s] /usr/lib/python3.9/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. [ 27s] !! [ 27s] [ 27s] ******************************************************************************** [ 27s] Requirements should be satisfied by a PEP 517 installer. [ 27s] If you are using pip, you can try `pip install --use-pep517`. [ 27s] ******************************************************************************** [ 27s] [ 27s] !! [ 27s] dist.fetch_build_eggs(dist.setup_requires) [ 27s] WARNING: The wheel package is not available. [ 27s] Error parsing [ 27s] Traceback (most recent call last): [ 27s] File "/usr/lib/python3.9/site-packages/pbr/core.py", line 105, in pbr [ 27s] attrs = util.cfg_to_args(path, dist.script_args) [ 27s] File "/usr/lib/python3.9/site-packages/pbr/util.py", line 272, in cfg_to_args [ 27s] pbr.hooks.setup_hook(config) [ 27s] File "/usr/lib/python3.9/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook [ 27s] metadata_config.run() [ 27s] File "/usr/lib/python3.9/site-packages/pbr/hooks/base.py", line 27, in run [ 27s] self.hook() [ 27s] File "/usr/lib/python3.9/site-packages/pbr/hooks/metadata.py", line 25, in hook [ 27s] self.config['version'] = packaging.get_version( [ 27s] File "/usr/lib/python3.9/site-packages/pbr/packaging.py", line 874, in get_version [ 27s] raise Exception("Versioning for this project requires either an sdist" [ 27s] Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name libratom was given, but was not able to be found. [ 27s] error in setup command: Error parsing /home/abuild/rpmbuild/BUILD/libratom-0.7.1/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name libratom was given, but was not able to be found. [ 27s] error: Bad exit status from /var/tmp/rpm-tmp.mhkE0b (%build)
It does not sound like either OBS or packaging issue. Are you able to build it locally from the same tarball? Quick search comes with something like https://stackoverflow.com/questions/58854822/python-setup-py-sdist-error-ver...
Hi Greg Am 20.05.23 um 00:31 schrieb Greg Freemyer:
All,
I won't to be able access PST files from python.
python-libratom is a package for doing that. It layers on top of libpff, which is already in factory.
I've got my initial OBS package at: home:gregfreemyer:Tools-for-forensic-boot-cd/python-libratom
[https://build.opensuse.org/package/show/home:gregfreemyer:Tools-for-forensic...]
Unfortunately, %python_build is failing as shown in the below log.
Can anyone tell how this package should be built? [...] Thanks, Greg -- Greg Freemyer Advances are made by answering questions. Discoveries are made by questioning answers. — Bernard Haisch
There are a couple of issues with your specfile: * python_build/pyproject_install is deprecated. Use pyproject_wheel and pyproject_install * Try to build from the sdist published on PyPI, not the github archive. The versioning of that package needs either proper git tag or the version info incorporated into the sdist. * Start with a specfile generated from py2pack. The newest version as of three days ago, will make both of the above right. * Read https://en.opensuse.org/openSUSE:Packaging_Python Additionally: * The upstream repository specifies very strict version pinning, you must relax it before creating the wheel (replace requirements.txt with the plain requirements.in) * There are additional packages required which are not available yet. https://build.opensuse.org/request/show/1088024 - Ben
Ben, Thank you greatly. That is far closer to building than I had it! Greg -- Greg Freemyer Advances are made by answering questions. Discoveries are made by questioning answers. — Bernard Haisch On Sat, May 20, 2023 at 3:56 AM Ben Greiner <code@bnavigator.de> wrote:
Hi Greg
Am 20.05.23 um 00:31 schrieb Greg Freemyer:
All,
I won't to be able access PST files from python.
python-libratom is a package for doing that. It layers on top of libpff, which is already in factory.
I've got my initial OBS package at: home:gregfreemyer:Tools-for-forensic-boot-cd/python-libratom
[https://build.opensuse.org/package/show/home:gregfreemyer:Tools-for-forensic...]
Unfortunately, %python_build is failing as shown in the below log.
Can anyone tell how this package should be built? [...] Thanks, Greg -- Greg Freemyer Advances are made by answering questions. Discoveries are made by questioning answers. — Bernard Haisch
There are a couple of issues with your specfile:
* python_build/pyproject_install is deprecated. Use pyproject_wheel and pyproject_install * Try to build from the sdist published on PyPI, not the github archive. The versioning of that package needs either proper git tag or the version info incorporated into the sdist.
* Start with a specfile generated from py2pack. The newest version as of three days ago, will make both of the above right. * Read https://en.opensuse.org/openSUSE:Packaging_Python
Additionally: * The upstream repository specifies very strict version pinning, you must relax it before creating the wheel (replace requirements.txt with the plain requirements.in) * There are additional packages required which are not available yet.
https://build.opensuse.org/request/show/1088024
- Ben
participants (3)
-
Andrei Borzenkov
-
Ben Greiner
-
Greg Freemyer