From 7367262adf494de1f67bcc5d21b9b858558f68df Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 08 2021 14:57:49 +0000 Subject: Import python3-typed_ast-1.4.3-1.el9 in CloudSIG xena --- diff --git a/.python3-typed_ast.metadata b/.python3-typed_ast.metadata new file mode 100644 index 0000000..5c0debd --- /dev/null +++ b/.python3-typed_ast.metadata @@ -0,0 +1 @@ +c3c872b2ec3b94a33efada9e4be07a80cc9fb3c8 SOURCES/typed_ast-1.4.3.tar.gz diff --git a/SOURCES/128.patch b/SOURCES/128.patch new file mode 100644 index 0000000..99096ad --- /dev/null +++ b/SOURCES/128.patch @@ -0,0 +1,35 @@ +From 91cc49153c2618b33c8ff36e12bb68d3ce61d3ee Mon Sep 17 00:00:00 2001 +From: Thomas A Caswell +Date: Sun, 10 Nov 2019 18:42:54 -0500 +Subject: [PATCH] FIX: build on cpython master branch + +https://github.com/python/cpython/pull/16013 +https://github.com/python/cpython/commit/3a4f66707e824ef3a8384827590ebaa6ca463dc0 + +removed two arguments from _PyBytes_DecodeEscape . + +This calls _PyBytes_DecodeEscape with the new signature if the minor +version is 9 or greater. +--- + ast3/Python/ast.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/ast3/Python/ast.c b/ast3/Python/ast.c +index 9082329..d772a83 100644 +--- a/ast3/Python/ast.c ++++ b/ast3/Python/ast.c +@@ -4531,8 +4531,14 @@ decode_bytes_with_escapes(struct compiling *c, const node *n, const char *s, + size_t len) + { + const char *first_invalid_escape; ++ ++ #if PY_MINOR_VERSION < 9 + PyObject *result = _PyBytes_DecodeEscape(s, len, NULL, 0, NULL, + &first_invalid_escape); ++ #else ++ PyObject *result = _PyBytes_DecodeEscape(s, len, NULL, ++ &first_invalid_escape); ++ #endif + if (result == NULL) + return NULL; + diff --git a/SPECS/python3-typed_ast.spec b/SPECS/python3-typed_ast.spec new file mode 100644 index 0000000..75ca22b --- /dev/null +++ b/SPECS/python3-typed_ast.spec @@ -0,0 +1,109 @@ +%global modname typed_ast + +Name: python3-%{modname} +Version: 1.4.3 +Release: 1%{?dist} +Summary: A fork of the ast module with type annotations + +License: ASL 2.0 +URL: https://github.com/python/typed_ast +Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz + +%{?python_provide:%python_provide python3-%{modname}} + +BuildRequires: gcc +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +%summary. This package is based on the ast modules from Python 2 and 3, +and has been extended with support for type comments and type annotations +as supported in Python 3.6. + +%prep +%autosetup -p0 -n %{modname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files +%doc *.md +%license LICENSE +%{python3_sitearch}/%{modname}/ +%{python3_sitearch}/%{modname}-*.egg-info + +%changelog +* Mon Apr 12 2021 Tomas Hrnciar - 1.4.3-1 +- Update to 1.4.3 + +* Mon Mar 22 2021 Gwyn Ciesla - 1.4.2-3 +- Patch for Python 3.10. + +* Wed Jan 27 2021 Fedora Release Engineering - 1.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Dec 31 2020 Gwyn Ciesla - 1.4.2-1 +- 1.4.2 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.4.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 24 2020 Miro Hrončok - 1.4.1-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Jan 14 2020 Gwyn Ciesla - 1.4.1-1 +- 1.4.1 + +* Thu Oct 03 2019 Miro Hrončok - 1.4.0-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Sat Aug 17 2019 Miro Hrončok - 1.4.0-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Jun 11 2019 Gwyn Ciesla - 1.4.0-1 +- 1.4.0. + +* Wed May 15 2019 Gwyn Ciesla - 1.3.5-1 +- 1.3.5. + +* Tue May 14 2019 Gwyn Ciesla - 1.3.1-2 +- Fix 3.8 FTBFS. + +* Sat Feb 23 2019 Igor Gnatenko - 1.3.1-1 +- Update to 1.3.1 + +* Thu Jan 31 2019 Gwyn Ciesla - 1.3.0-1 +- 1.3.0 + +* Sat Jul 14 2018 Fedora Release Engineering - 1.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.1.0-3 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Nov 07 2017 Gwyn Ciesla - 1.1.0-1 +- 1.1.0 + +* Mon Jul 31 2017 Gwyn Ciesla - 1.0.4-1 +- 1.0.4 + +* Thu Jul 27 2017 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 11 2017 Gwyn Ciesla - 1.0.3-1 +- Initial package.