Drop python2 support
This commit is contained in:
parent
20f38b24b1
commit
8e1a1393f0
@ -9,7 +9,7 @@ drawing software.}
|
||||
|
||||
Name: python-graphviz
|
||||
Version: 0.8.3
|
||||
Release: 4
|
||||
Release: 5
|
||||
# Set Epoch to avoid being obsoleted by graphviz-python
|
||||
Epoch: 1
|
||||
Summary: Simple Python interface for Graphviz
|
||||
@ -23,19 +23,6 @@ BuildArch: noarch
|
||||
%{common_description}
|
||||
|
||||
|
||||
%package -n python2-graphviz
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python2-graphviz}
|
||||
|
||||
BuildRequires: python2-devel python2dist(flake8) python2dist(mock) >= 2 python2dist(pep8-naming)
|
||||
BuildRequires: python2dist(pytest) >= 3.3 python2dist(pytest-cov) python2dist(pytest-mock)
|
||||
BuildRequires: python2dist(setuptools) python2dist(twine) python2dist(wheel)
|
||||
Requires: graphviz
|
||||
|
||||
%description -n python2-graphviz
|
||||
%{common_description}
|
||||
|
||||
|
||||
%package -n python3-graphviz
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-graphviz}
|
||||
@ -66,7 +53,6 @@ sed -i 's/\r//' README.rst
|
||||
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
# generate html docs
|
||||
@ -76,22 +62,13 @@ rm -rf html/.{doctrees,buildinfo}
|
||||
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
|
||||
%check
|
||||
%{__python2} setup.py test
|
||||
%{__python3} setup.py test
|
||||
|
||||
|
||||
%files -n python2-graphviz
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
%{python2_sitelib}/graphviz
|
||||
%{python2_sitelib}/graphviz-%{version}-py?.?.egg-info
|
||||
|
||||
|
||||
%files -n python3-graphviz
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
@ -105,5 +82,8 @@ rm -rf html/.{doctrees,buildinfo}
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Oct 22 2020 maminjie <maminjie1@huawei.com> - 1:0.8.3-5
|
||||
- Drop python2 support
|
||||
|
||||
* Fri Mar 13 2020 yinzhenling <yinzhenling2@huawei.com> - 1:0.8.3-4
|
||||
- Initial package.
|
||||
|
||||
4
python-graphviz.yaml
Normal file
4
python-graphviz.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: pypi
|
||||
src_repo: graphviz
|
||||
tag_prefix: "^"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user