commit e7f34b349d9aaa54ad576c17afe7fae638869364aa776ebe9e4e64043689ec4e Author: Todd R Date: Fri Aug 3 03:47:58 2018 +0000 Required by python-PsychoPy OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astunparse?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/astunparse-1.5.0.tar.gz b/astunparse-1.5.0.tar.gz new file mode 100644 index 0000000..c5be586 --- /dev/null +++ b/astunparse-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55df3c2a659d6cb6a9a9041c750a8232a9925523405a8dfeb891b92d45a589cd +size 12722 diff --git a/python-astunparse.changes b/python-astunparse.changes new file mode 100644 index 0000000..a710ef4 --- /dev/null +++ b/python-astunparse.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Aug 3 03:33:04 UTC 2018 - toddrme2178@gmail.com + +- Initial version diff --git a/python-astunparse.spec b/python-astunparse.spec new file mode 100644 index 0000000..5509354 --- /dev/null +++ b/python-astunparse.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-astunparse +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-astunparse +Version: 1.5.0 +Release: 0 +Summary: An AST unparser for Python +License: BSD-3-Clause AND Python-2.0 +Group: Development/Languages/Python +Url: https://github.com/simonpercivall/astunparse +Source: https://files.pythonhosted.org/packages/source/a/astunparse/astunparse-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-six >= 1.6.1 +BuildArch: noarch + +%python_subpackages + +%description +This is a factored out version of ``unparse`` found in the Python +source distribution; under Demo/parser in Python 2 and under +Tools/parser in Python 3. + +This library is single-source compatible with Python 2.6 through +Python 3.5. It is authored by the Python core developers; I have +simply merged the Python 2.7 and the Python 3.5 source and test +suites, and added a wrapper. This factoring out is to provide a +library implementation that supports both versions. + +Added to this is a pretty-printing dump utility function. + +%prep +%setup -q -n astunparse-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc AUTHORS.rst README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog