summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-redbaron.spec150
-rw-r--r--sources1
3 files changed, 152 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3db67b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/redbaron-0.9.2.tar.gz
diff --git a/python-redbaron.spec b/python-redbaron.spec
new file mode 100644
index 0000000..7cf58ce
--- /dev/null
+++ b/python-redbaron.spec
@@ -0,0 +1,150 @@
+%global _empty_manifest_terminate_build 0
+Name: python-redbaron
+Version: 0.9.2
+Release: 1
+Summary: Abstraction on top of baron, a FST for python to make writing refactoring code a realistic task
+License: lgplv3+
+URL: https://github.com/PyCQA/redbaron
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/92/14/d04d376cca5108e62edeee2d2fc0261af6474d9aebe0b4334721785bc035/redbaron-0.9.2.tar.gz
+BuildArch: noarch
+
+
+%description
+[![Build Status](https://travis-ci.org/PyCQA/redbaron.svg?branch=master)](https://travis-ci.org/PyCQA/redbaron) [![Latest Version](https://img.shields.io/pypi/v/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Supported Python versions](https://img.shields.io/pypi/pyversions/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Development Status](https://img.shields.io/pypi/status/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Wheel Status](https://img.shields.io/pypi/wheel/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Download format](https://img.shields.io/pypi/format/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![License](https://img.shields.io/pypi/l/redbaron.svg)](https://pypi.python.org/pypi/redbaron/)
+[![Backers on Open Collective](https://opencollective.com/redbaron/backers/badge.svg)](#backers)
+[![Sponsors on Open Collective](https://opencollective.com/redbaron/sponsors/badge.svg)](#sponsors)
+RedBaron is a python library and tool powerful enough to be used into IPython
+solely that intent to make the process of **writing code that modify source
+code** as easy and as simple as possible. That include writing custom
+refactoring, generic refactoring, tools, IDE or directly modifying you source
+code into IPython with a higher and more powerful abstraction than the
+advanced texts modification tools that you find in advanced text editors and
+IDE.
+RedBaron guaranteed you that **it will only modify your code where you ask him
+to**. To achieve this, it is based on [Baron](https://github.com/PyCQA/baron)
+a lossless [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) for
+Python that guarantees the operation <code>ast_to_code(code_to_ast(source_code)) == source_code</code>.
+(Baron's AST is called an FST, a Full Syntax Tree).
+RedBaron API and feel is heavily inspired by BeautifulSoup. It tries to be
+simple and intuitive and that once you've get the basics principles, you are
+good without reading the doc for 80% of your operations.
+**For now, RedBaron can be considered in alpha, the core is quite stable but it
+is not battle tested yet and is still a bit rough.** Feedback and contribution
+are very welcome.
+The public documented API on the other side is guaranteed to be
+retro-compatible and won't break until 2.0 (if breaking is needed at that
+point).
+There might be the only exception that if you directly call specific nodes
+constructors with FST that this API change, but this is not documented and
+simply horribly unpracticable, so I'm expecting no one to do that.
+
+%package -n python3-redbaron
+Summary: Abstraction on top of baron, a FST for python to make writing refactoring code a realistic task
+Provides: python-redbaron
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-redbaron
+[![Build Status](https://travis-ci.org/PyCQA/redbaron.svg?branch=master)](https://travis-ci.org/PyCQA/redbaron) [![Latest Version](https://img.shields.io/pypi/v/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Supported Python versions](https://img.shields.io/pypi/pyversions/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Development Status](https://img.shields.io/pypi/status/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Wheel Status](https://img.shields.io/pypi/wheel/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Download format](https://img.shields.io/pypi/format/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![License](https://img.shields.io/pypi/l/redbaron.svg)](https://pypi.python.org/pypi/redbaron/)
+[![Backers on Open Collective](https://opencollective.com/redbaron/backers/badge.svg)](#backers)
+[![Sponsors on Open Collective](https://opencollective.com/redbaron/sponsors/badge.svg)](#sponsors)
+RedBaron is a python library and tool powerful enough to be used into IPython
+solely that intent to make the process of **writing code that modify source
+code** as easy and as simple as possible. That include writing custom
+refactoring, generic refactoring, tools, IDE or directly modifying you source
+code into IPython with a higher and more powerful abstraction than the
+advanced texts modification tools that you find in advanced text editors and
+IDE.
+RedBaron guaranteed you that **it will only modify your code where you ask him
+to**. To achieve this, it is based on [Baron](https://github.com/PyCQA/baron)
+a lossless [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) for
+Python that guarantees the operation <code>ast_to_code(code_to_ast(source_code)) == source_code</code>.
+(Baron's AST is called an FST, a Full Syntax Tree).
+RedBaron API and feel is heavily inspired by BeautifulSoup. It tries to be
+simple and intuitive and that once you've get the basics principles, you are
+good without reading the doc for 80% of your operations.
+**For now, RedBaron can be considered in alpha, the core is quite stable but it
+is not battle tested yet and is still a bit rough.** Feedback and contribution
+are very welcome.
+The public documented API on the other side is guaranteed to be
+retro-compatible and won't break until 2.0 (if breaking is needed at that
+point).
+There might be the only exception that if you directly call specific nodes
+constructors with FST that this API change, but this is not documented and
+simply horribly unpracticable, so I'm expecting no one to do that.
+
+%package help
+Summary: Development documents and examples for redbaron
+Provides: python3-redbaron-doc
+%description help
+[![Build Status](https://travis-ci.org/PyCQA/redbaron.svg?branch=master)](https://travis-ci.org/PyCQA/redbaron) [![Latest Version](https://img.shields.io/pypi/v/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Supported Python versions](https://img.shields.io/pypi/pyversions/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Development Status](https://img.shields.io/pypi/status/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Wheel Status](https://img.shields.io/pypi/wheel/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![Download format](https://img.shields.io/pypi/format/redbaron.svg)](https://pypi.python.org/pypi/redbaron/) [![License](https://img.shields.io/pypi/l/redbaron.svg)](https://pypi.python.org/pypi/redbaron/)
+[![Backers on Open Collective](https://opencollective.com/redbaron/backers/badge.svg)](#backers)
+[![Sponsors on Open Collective](https://opencollective.com/redbaron/sponsors/badge.svg)](#sponsors)
+RedBaron is a python library and tool powerful enough to be used into IPython
+solely that intent to make the process of **writing code that modify source
+code** as easy and as simple as possible. That include writing custom
+refactoring, generic refactoring, tools, IDE or directly modifying you source
+code into IPython with a higher and more powerful abstraction than the
+advanced texts modification tools that you find in advanced text editors and
+IDE.
+RedBaron guaranteed you that **it will only modify your code where you ask him
+to**. To achieve this, it is based on [Baron](https://github.com/PyCQA/baron)
+a lossless [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) for
+Python that guarantees the operation <code>ast_to_code(code_to_ast(source_code)) == source_code</code>.
+(Baron's AST is called an FST, a Full Syntax Tree).
+RedBaron API and feel is heavily inspired by BeautifulSoup. It tries to be
+simple and intuitive and that once you've get the basics principles, you are
+good without reading the doc for 80% of your operations.
+**For now, RedBaron can be considered in alpha, the core is quite stable but it
+is not battle tested yet and is still a bit rough.** Feedback and contribution
+are very welcome.
+The public documented API on the other side is guaranteed to be
+retro-compatible and won't break until 2.0 (if breaking is needed at that
+point).
+There might be the only exception that if you directly call specific nodes
+constructors with FST that this API change, but this is not documented and
+simply horribly unpracticable, so I'm expecting no one to do that.
+
+%prep
+%autosetup -n redbaron-0.9.2
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-redbaron -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8b7abaf
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+bd79cd9445db6565046da2165c7be7e3 redbaron-0.9.2.tar.gz