Group :: Development/Python3
RPM: python3-module-stone
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname stone
%def_with check
Name: python3-module-%oname
Version: 3.3.1
Release: alt2
Summary: The Official API Spec Language for Dropbox API V2
License: MIT
Group: Development/Python3
URL: https://pypi.org/project/stone/
VCS: https://github.com/dropbox/stone
BuildArch: noarch
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-ply
BuildRequires: python3-module-six
%endif
%description
%summary
%prep
%setup
# Don't use pytest-runner
sed -i '/pytest-runner/d' setup.py
# Python 3.11 compat https://github.com/dropbox/stone/issues/288
sed -i 's/getargspec/getfullargspec/' stone/frontend/ir_generator.py
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest
%files
%doc LICENSE README.rst
%_bindir/%oname
%python3_sitelibdir/%oname
%python3_sitelibdir/%{pyproject_distinfo %oname}
%changelog
…
Todas as alterações você pod ver aqui
%define oname stone
%def_with check
Name: python3-module-%oname
Version: 3.3.1
Release: alt2
Summary: The Official API Spec Language for Dropbox API V2
License: MIT
Group: Development/Python3
URL: https://pypi.org/project/stone/
VCS: https://github.com/dropbox/stone
BuildArch: noarch
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-ply
BuildRequires: python3-module-six
%endif
%description
%summary
%prep
%setup
# Don't use pytest-runner
sed -i '/pytest-runner/d' setup.py
# Python 3.11 compat https://github.com/dropbox/stone/issues/288
sed -i 's/getargspec/getfullargspec/' stone/frontend/ir_generator.py
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest
%files
%doc LICENSE README.rst
%_bindir/%oname
%python3_sitelibdir/%oname
%python3_sitelibdir/%{pyproject_distinfo %oname}
%changelog
…
Todas as alterações você pod ver aqui