[Bug 1977120] Review Request: python-qstylizer - Qt stylesheet generation utility for PyQt/PySide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1977120



--- Comment #4 from Mukundan Ragavan <nonamedotc@xxxxxxxxx> ---
(In reply to Lumír Balhar from comment #2)
> First few notes:
> 
> PyPI URL does not work because they do not publish sdist tarball to PyPI.
> Their wheel is universal so this should not cause any troubles.
> 
> I wanted to ask you whether you considered new pyproject macros but now I
> see that upstream metadata requires old versions of dependencies like pytest
> >= 4, < 5 or pytest-mock >= 1.6, < 2. If tests work with the latest
> components from rawhide, could you please open an upstream issue?
> You can take a look at the new macros and use some of them:
> https://src.fedoraproject.org/rpms/pyproject-rpm-macros
> 


I tried and got this - 

ERROR:root:Error parsing
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pbr/core.py", line 96, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
  File "/usr/lib/python3.10/site-packages/pbr/util.py", line 271, in
cfg_to_args
    pbr.hooks.setup_hook(config)
  File "/usr/lib/python3.10/site-packages/pbr/hooks/__init__.py", line 25, in
setup_hook
    metadata_config.run()
  File "/usr/lib/python3.10/site-packages/pbr/hooks/base.py", line 27, in run
    self.hook()
  File "/usr/lib/python3.10/site-packages/pbr/hooks/metadata.py", line 25, in
hook
    self.config['version'] = packaging.get_version(
  File "/usr/lib/python3.10/site-packages/pbr/packaging.py", line 874, in
get_version
    raise Exception("Versioning for this project requires either an sdist"
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 qstylizer was given, but was not able to
be found.
error in setup command: Error parsing
/builddir/build/BUILD/qstylizer-0.2.0/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 qstylizer was given, but was not able to be found.

This is my spec - 

####################################


BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%generate_buildrequires
%pyproject_buildrequires -r

%description
%_description

%package -n     python3-%{pypi_name}
Summary:        %{summary}

%description -n python3-%{pypi_name}
%_description


%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
export PBR_VERSION=%{version}
%pyproject_wheel

%install
export PBR_VERSION=%{version}
%pyproject_install

%pyproject_save_files qstylizer _qstylizer

%check
%tox

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE.txt

####################################


I have this "export PBR_VERSION=%{version}" in my spec for qstylizer to build.
How do I do that with pyproject macros?


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux