diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-redbaron.spec | 150 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 152 insertions, 0 deletions
@@ -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 +[](https://travis-ci.org/PyCQA/redbaron) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) +[](#backers) +[](#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 +[](https://travis-ci.org/PyCQA/redbaron) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) +[](#backers) +[](#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 +[](https://travis-ci.org/PyCQA/redbaron) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) [](https://pypi.python.org/pypi/redbaron/) +[](#backers) +[](#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 @@ -0,0 +1 @@ +bd79cd9445db6565046da2165c7be7e3 redbaron-0.9.2.tar.gz |
