Hello community,
here is the log from the commit of package python-entrypoints for
openSUSE:Factory checked in at 2017-11-12 18:02:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-entrypoints (Old)
and /work/SRC/openSUSE:Factory/.python-entrypoints.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-entrypoints"
Sun Nov 12 18:02:45 2017 rev:3 rq:540600 version:0.2.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-entrypoints/python-entrypoints.changes
2017-11-08 15:10:37.976954359 +0100
+++
/work/SRC/openSUSE:Factory/.python-entrypoints.new/python-entrypoints.changes
2017-11-12 18:02:46.407885533 +0100
@@ -1,0 +2,6 @@
+Thu Nov 9 18:47:32 UTC 2017 - [email protected]
+
+- Use proper install so .egg-info is available.
+ This makes sure other packages can properly detect it.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-entrypoints.spec ++++++
--- /var/tmp/diff_new_pack.wRPGLg/_old 2017-11-12 18:02:47.439847945 +0100
+++ /var/tmp/diff_new_pack.wRPGLg/_new 2017-11-12 18:02:47.439847945 +0100
@@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without test
Name: python-entrypoints
Version: 0.2.3
Release: 0
@@ -26,13 +27,15 @@
Url: https://github.com/takluyver/entrypoints
Source:
https://files.pythonhosted.org/packages/source/e/entrypoints/entrypoints-%{version}.tar.gz
BuildRequires: %{python_module devel}
-BuildRequires: %{python_module pytest}
+BuildRequires: fdupes
BuildRequires: python-rpm-macros
-%ifpython2
+%if %{with test}
+BuildRequires: %{python_module pytest}
BuildRequires: python-configparser
-Requires: python-configparser
%endif
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+%ifpython2
+Requires: python-configparser >= 3.5
+%endif
BuildArch: noarch
%python_subpackages
@@ -51,31 +54,26 @@
%setup -q -n entrypoints-%{version}
%build
-# We don't do anything here
+%python_build
%install
-%{python_expand mkdir -p %{buildroot}%{$python_sitelib}
-cp -r entrypoints.py %{buildroot}%{$python_sitelib}
-}
-
-%if %have_python2
-%py_compile %{buildroot}%{python2_sitelib}
-%endif
-
-%if %have_python3
-%py3_compile %{buildroot}%{python3_sitelib}
-%endif
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%if %{with test}
%check
pushd tests
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
$python test_entrypoints.py
}
popd
+%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/entrypoints.py*
+%pycache_only %{python_sitelib}/__pycache__/entrypoints*.py*
+%{python_sitelib}/entrypoints-%{version}-py*.egg-info
%changelog