Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
python-unify
python-unify.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-unify.spec of Package python-unify
# # spec file for package python-unify # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: python-unify Version: 0.5 Release: 0 Summary: Tool to modify strings to use the same quotes License: MIT Group: Development/Languages/Python URL: https://github.com/myint/unify Source: https://github.com/myint/unify/archive/v%{version}.tar.gz Source9: README.suse BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-untokenize Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} BuildRequires: %{python_module untokenize} # /SECTION %python_subpackages %description Modifies strings to all use the same (single/double) quote where possible. Note that the "unify" executable has been renamed to "unify_quotes" to avoid conflicts with the wdiff package. %prep %setup -q -n unify-%{version} sed -i -e '/^#!\//, 1d' unify.py cp %{SOURCE9} . %build %python_build %check # https://github.com/myint/unify/issues/22 donttest="DUMMY" python312_donttest="or (TestUnitsWithFstrings and test_format_code)" %pytest -k "not ($donttest ${$python_donttest})" %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} mv %{buildroot}%{_bindir}/unify %{buildroot}%{_bindir}/unify_quotes %python_clone -a %{buildroot}%{_bindir}/unify_quotes %post %python_install_alternative unify_quotes %postun %python_uninstall_alternative unify_quotes %files %{python_files} %license LICENSE %doc README.rst README.suse %python_alternative %{_bindir}/unify_quotes %{python_sitelib}/unify.py %pycache_only %{python_sitelib}/__pycache__/unify* %{python_sitelib}/unify-%{version}*info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor