Hello community, here is the log from the commit of package python-dephell for openSUSE:Factory checked in at 2020-03-25 23:45:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-dephell (Old) and /work/SRC/openSUSE:Factory/.python-dephell.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-dephell" Wed Mar 25 23:45:07 2020 rev:10 rq:788257 version:0.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-dephell/python-dephell.changes 2020-03-23 12:52:56.320046018 +0100 +++ /work/SRC/openSUSE:Factory/.python-dephell.new.3160/python-dephell.changes 2020-03-25 23:46:31.244056883 +0100 @@ -1,0 +2,12 @@ +Tue Mar 24 12:41:22 UTC 2020 - Matej Cepl <mc...@suse.com> + +- dephell deps convert should always run UTF-8 locale. + +------------------------------------------------------------------- +Mon Mar 23 15:13:52 UTC 2020 - Matej Cepl <mc...@suse.com> + +- Separate python-dephell-rpm-macros subpackage. +- Add Provides: python-dephell to make it independent on the + particular version of Python used. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-dephell.spec ++++++ --- /var/tmp/diff_new_pack.G1t6HV/_old 2020-03-25 23:46:32.860057411 +0100 +++ /var/tmp/diff_new_pack.G1t6HV/_new 2020-03-25 23:46:32.892057422 +0100 @@ -18,6 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 +%define oldpython python %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -77,12 +78,15 @@ Requires: python-tabulate Requires: python-tomlkit Requires: python-yaspin +Requires: (python-dephell-rpm-macros if python-rpm-macros) Recommends: git-core Recommends: python-aiofiles Recommends: python-colorama Recommends: python-graphviz Suggests: python-autopep8 Suggests: python-yapf +# For python-dephell-rpm-macros +Provides: %{oldpython}-dephell = %{version} BuildArch: noarch # SECTION test requirements %if %{with test} @@ -140,6 +144,16 @@ %patch0 -p1 find tests -type d -name __pycache__ | xargs rm -rf +sed -i -e '1i #!/bin/sh' dephell/templates/docker_prepare.sh + +%package rpm-macros +Summary: RPM macros to help develop Python packages using python-dephell +Group: Development/Libraries/Python +Requires: %{name} = %{version} + +%description rpm-macros +Contains the RPM definition of the macro dephell_gensetup, which +generates setup.py from the provided pyproject.toml. %build %python_build @@ -165,9 +179,11 @@ %doc README.md README.rst %license LICENSE %python3_only %{_bindir}/dephell -%python3_only %dir %{_libexecdir}/rpm/macros.d -%python3_only %{_libexecdir}/rpm/macros.d/macros.py-dephell %{python_sitelib}/* + +%files rpm-macros +%dir %{_libexecdir}/rpm/macros.d +%{_libexecdir}/rpm/macros.d/macros.py-dephell %endif %changelog ++++++ macros.py-dephell ++++++ --- /var/tmp/diff_new_pack.G1t6HV/_old 2020-03-25 23:46:33.408057591 +0100 +++ /var/tmp/diff_new_pack.G1t6HV/_new 2020-03-25 23:46:33.424057596 +0100 @@ -1,2 +1,9 @@ # Provide the macro so that we can change it with any changes upstream -%dephell_gensetup dephell deps convert --from pyproject.toml --to setup.py \ No newline at end of file +# logging level can be changed with different RPM SPEC macros dephell_loglevel, +# possilbe levels are DEBUG, INFO, WARNING, ERROR, and EXCEPTION +# names of files can be modified with dephell_tomlfile and dephell_setupfile macros +# respectively. +%dephell_gensetup LANG=en_US.utf8 dephell deps convert --traceback \\\ + --level=%{?dephell_loglevel}%{!?dephell_loglevel:INFO} \\\ + --from %{?dephell_tomlfile}%{!?dephell_tomlfile:pyproject.toml} \\\ + --to %{?dephell_setupfile}%{!?dephell_setupfile:setup.py}