7
0
2024-06-04 10:28:36 +00:00
committed by Git OBS Bridge
commit 070e43df50
5 changed files with 210 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

113
python-typed-ast.changes Normal file
View File

@@ -0,0 +1,113 @@
-------------------------------------------------------------------
Sun May 17 19:36:16 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- disable tests 'test_ignores' and 'test_convert_strs', failing on ppc64, fixes bsc#1171573.
-------------------------------------------------------------------
Sat Jan 18 10:46:29 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 1.4.1:
* Clean up old build scripts (#123)
* Build artifacts for 3.8 (#127)
* Fix build on cpython (3.9) master branch (#128)
-------------------------------------------------------------------
Mon Jun 17 09:35:51 UTC 2019 - pgajdos@suse.com
- version update to 1.4.0
* Fix compilation on Python 3.8
-------------------------------------------------------------------
Fri May 10 12:16:33 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Do not use the %pytest_arch call but expand it as the tests
seem to need more verbosity otherwise they fail sometimes
(fishy, but works)
-------------------------------------------------------------------
Tue May 7 10:38:42 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Use %pytest_arch
- Add missing fdupes call
-------------------------------------------------------------------
Tue May 7 09:28:37 UTC 2019 - pgajdos@suse.com
- version update to 1.3.5
* Counteract PyTuple_SetItem stealing reference in _PyObject_FastCall
fallback (#104)
- run tests
-------------------------------------------------------------------
Fri May 3 18:13:27 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 1.3.4:
* Oops: add the pgenheaders files to the depends lists
- update to version 1.3.3:
* Don't rely on Python's pgenheaders.h (#101)
- update to version 1.3.2:
* Fix two out-of-bounds array reads (#99)
-------------------------------------------------------------------
Sun Feb 10 13:20:13 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 1.3.1:
* Disallow two type comments on one def
* Fix memory leaks caused by type comment parsing (#91)
* Fix some broken asserts relating to handling of async keyword (#92)
* Check NEW_TYPE_COMMENT calls for failure (#93)
- Update to version 1.3.0:
* Fully incorporate the code from Python 3.7.2
* Fix some compiler warnings
* Add a kind field to Bytes as well (#83)
* Fix await in functions with type comments (#86)
* Put _ast3 and _ast27 in the typed_ast package (#85)
* Fix f-string parsing to not think everything is a set (#87)
-------------------------------------------------------------------
Tue Jan 15 20:35:06 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 1.2.0:
* Fix conversions.py2to3 on unicode strings (#67)
* Fix remaining calls to Str without a kind (#68)
* Add "Python :: 3.7" to the classifiers list
* Some docs updates (#73)
-------------------------------------------------------------------
Wed Jan 2 09:48:30 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 1.1.1:
* Add __version__ string and tweak versioning scheme
* Point to the Python 3.6 commits as examples of how to update typed_ast (
* Add section on development philosophy
* Add information about the release process.
* Document Google Cloud Storage artifact deployment
* Preserve string kind modifiers
* Add docs for Str.kind
-------------------------------------------------------------------
Thu Sep 20 07:00:17 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Use license macro for license install
-------------------------------------------------------------------
Thu Jul 20 09:59:09 UTC 2017 - sebix+novell.com@sebix.at
- update to version 1.1.0
* Vs2010 compilation support (Python 3.3/3.4 support) (#47)
-------------------------------------------------------------------
Tue Jun 27 20:22:15 UTC 2017 - sebix+novell.com@sebix.at
- use new %skip_python2 instead of obsolete undefines
-------------------------------------------------------------------
Tue Jun 20 19:53:59 UTC 2017 - sebix+novell.com@sebix.at
- update to version 1.0.4
* Add checks for some 3.5+ only syntax (async/await and the @ operator) (#41)
-------------------------------------------------------------------
Wed May 31 12:37:09 UTC 2017 - sebix+novell.com@sebix.at
- initial package

70
python-typed-ast.spec Normal file
View File

@@ -0,0 +1,70 @@
#
# spec file for package python-typed-ast
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-typed-ast
Version: 1.4.1
Release: 0
Summary: A fork of Python 2 and 3 ast modules with type comment support
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/python/typed_ast
Source0: https://files.pythonhosted.org/packages/source/t/typed_ast/typed_ast-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
typed_ast is a Python 3 package that provides a Python 2.7 and Python 3
parser similar to the standard ast library. Unlike ast, the parsers in
typed_ast include PEP 484 type comments and are independent of the version of
Python under which they are run. The typed_ast parsers produce the standard
Python AST (plus type comments), and are both fast and correct, as they are
based on the CPython 2.7 and 3.6 parsers.
%prep
%setup -q -n typed_ast-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
# using expand here instead of %%pytest_arch as the macro does not do export on the PYTHONPATH, see https://github.com/openSUSE/python-rpm-macros/issues/43
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
PYTHONDONTWRITEBYTECODE=1
# disable tests 'test_ignores' and 'test_convert_strs' because of bsc#1171573, failing on ppc64.
py.test-%{$python_bin_suffix} -v -k 'not test_ignores and not test_convert_strs'
}
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitearch}/*
%changelog

3
typed_ast-1.4.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c8aaad94455178e3187ab22c8b01a3837f8ee50e09cf31f1ba129eb293ec30b
size 208587