!3 fix test error with python3.8
Merge pull request !3 from zhangtao2020/master
This commit is contained in:
commit
fbe1846c33
15
Resolve-Grammatical-issues.patch
Normal file
15
Resolve-Grammatical-issues.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- a/astroid/__pkginfo__.py 2020-06-24 18:29:38.059334700 +0800
|
||||
+++ b/astroid/__pkginfo__.py 2020-06-24 18:29:50.071514542 +0800
|
||||
@@ -22,9 +22,9 @@
|
||||
|
||||
extras_require = {}
|
||||
install_requires = [
|
||||
- "lazy_object_proxy==1.4.*",
|
||||
- "six~=1.12",
|
||||
- "wrapt==1.11.*",
|
||||
+ "lazy_object_proxy>=1.3.0",
|
||||
+ "six>=1.12",
|
||||
+ "wrapt>=1.10.0",
|
||||
'typed-ast>=1.4.0,<1.5;implementation_name== "cpython" and python_version<"3.8"',
|
||||
]
|
||||
|
||||
BIN
astroid-ace7b29.tar.gz
Normal file
BIN
astroid-ace7b29.tar.gz
Normal file
Binary file not shown.
@ -1,44 +1,55 @@
|
||||
Name: python-astroid
|
||||
Version: 2.0.4
|
||||
Release: 2
|
||||
Summary: A common base representation of python source code for pylint and other projects.
|
||||
License: GPLv2+
|
||||
URL: https://github.com/PyCQA/astroid
|
||||
Source0: https://github.com/PyCQA/astroid/archive/astroid-2.0.4.tar.gz
|
||||
%{?python_disable_dependency_generator}
|
||||
Name: python-astroid
|
||||
Version: 2.3.3
|
||||
Release: 5
|
||||
Summary: Common base representation of python source code for pylint and other projects
|
||||
License: GPLv2+
|
||||
URL: https://github.com/PyCQA/astroid
|
||||
Source0: https://github.com/PyCQA/astroid/archive/ace7b2967ea762ec43fc7be8ab9c8007564d9be2/astroid-ace7b29.tar.gz
|
||||
Patch0000: Resolve-Grammatical-issues.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-devel python3-setuptools python3-lazy-object-proxy python3-pytest
|
||||
BuildRequires: python3-pytest-runner python3-six python3-wrapt git-core
|
||||
|
||||
%global _description %{expand:
|
||||
The aim of this module is to provide a common base representation of python
|
||||
source code for projects such as pychecker, pyreverse, pylint...
|
||||
It provides a compatible representation which comes from the _ast module. It
|
||||
rebuilds the tree generated by the builtin _ast module by recursively walking
|
||||
down the AST and building an extended ast. The new node classes have additional
|
||||
methods and attributes for different usages. They include some support for
|
||||
static inference and local name scopes. Furthermore, astroid builds partial
|
||||
trees by inspecting living objects.}
|
||||
%description %_description
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-devel python3-setuptools python3-pytest python3-pytest-runner git-core
|
||||
BuildRequires: python3-lazy-object-proxy python3-six python3-wrapt
|
||||
|
||||
%description
|
||||
A common base representation of python source code for pylint and other projects.
|
||||
|
||||
%package -n python3-astroid
|
||||
Summary: %{summary}
|
||||
Requires: python3-lazy-object-proxy python3-six python3-wrapt
|
||||
%package -n python3-astroid
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-astroid}
|
||||
|
||||
%description -n python3-astroid
|
||||
A common base representation of python source code for pylint and other projects.
|
||||
Requires: python3-lazy-object-proxy python3-wrapt python3-six
|
||||
%description -n python3-astroid %_description
|
||||
|
||||
%prep
|
||||
%autosetup -n astroid-astroid-%{version} -p1
|
||||
%autosetup -n astroid-ace7b2967ea762ec43fc7be8ab9c8007564d9be2 -p1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
rm -rf %{buildroot}%{python3_sitelib}/astroid/tests
|
||||
|
||||
%check
|
||||
%{__python3} -m pytest -v
|
||||
|
||||
%files -n python3-astroid
|
||||
%doc README.rst COPYING
|
||||
%doc README.rst
|
||||
%license COPYING
|
||||
%{python3_sitelib}/astroid
|
||||
%{python3_sitelib}/astroid*.egg-info
|
||||
|
||||
%changelog
|
||||
* Wed Jun 24 2020 huanghaitao <huanghaitao8@huawei.com> - 2.3.3-5
|
||||
- update to fix test errors with python3.8
|
||||
|
||||
* Mon Feb 24 2020 Senlin Xia<xiasenlin1@huawei.com> - 2.0.4-2
|
||||
- Package init
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user