summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 06:20:58 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 06:20:58 +0000
commit58eecf6831fc50eedd5dd197e23b01df741e90fb (patch)
tree1e46a32bb2fecdf3443288ac079cbecd9569ccfb
parentead729e914377df6f528b68f83490248eb744c31 (diff)
automatic import of python-weditoropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-weditor.spec282
-rw-r--r--sources1
3 files changed, 284 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..6b9735e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/weditor-0.6.8.tar.gz
diff --git a/python-weditor.spec b/python-weditor.spec
new file mode 100644
index 0000000..23bdd21
--- /dev/null
+++ b/python-weditor.spec
@@ -0,0 +1,282 @@
+%global _empty_manifest_terminate_build 0
+Name: python-weditor
+Version: 0.6.8
+Release: 1
+Summary: tool for writing atx script
+License: MIT
+URL: https://github.com/openatx/weditor
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b9/d0/b5f61b264b2448623d308ca40bf3f369cd98842815fb6b462676a10c30ba/weditor-0.6.8.tar.gz
+BuildArch: noarch
+
+
+%description
+# WEditor
+[![image](https://img.shields.io/pypi/v/weditor.svg?style=flat-square)](https://pypi.python.org/pypi/weditor)
+[![image](https://img.shields.io/github/stars/alibaba/web-editor.svg?style=social&label=Star&style=flat-square)](https://github.com/alibaba/web-editor)
+[![image](https://travis-ci.org/alibaba/web-editor.svg?branch=master)](https://travis-ci.org/alibaba/web-editor)
+
+[中文文档](README_ZH.md)
+
+This project is subproject for smart phone test framework [openatx](https://github.com/openatx)
+for easily use web browser to edit UI scripts.
+
+Screenshot
+
+![screenshot](./screenshot.jpg)
+
+## Installation
+Dependencies
+
+- Python3.6+
+ - [uiautomator2](https://github.com/openatx/uiautomator2)
+ - [facebook-wda](https://github.com/openatx/facebook-wda)
+
+
+> Only tested in `Google Chrome`, _IE_ seems not working well.
+
+```
+pip3 install -U weditor
+```
+
+For developers
+
+```bash
+git clone https://github.com/openatx/weditor
+pip3 install -e weditor
+```
+
+## Usage
+Create Shortcut in Desktop (Only windows)
+
+```
+weditor --shortcut
+```
+
+By click shortcut or run in command line
+
+```
+weditor
+```
+
+This command will start a local server with port 17310,
+and then open a browser tab for you to editor you code.
+
+Port 17310 is to memorize the created day -- 2017/03/10
+
+To see more usage run `weditor -h`
+
+## Hotkeys(Both Mac and Win)
+- Right click screen: `Dump Hierarchy`
+
+### Hotkeys(only Mac)
+- Command+Enter: Run the whole code
+- Command+Shift+Enter: Run selected code or current line if not selected
+
+### Hotkeys(only Win)
+- Ctrl+Enter: Run the whole code
+- Ctrl+Shift+Enter: Run selected code or current line if not selected
+
+## For Developers
+See [DEVELOP.md](DEVELOP.md)
+
+## LICENSE
+[MIT](LICENSE)
+
+%package -n python3-weditor
+Summary: tool for writing atx script
+Provides: python-weditor
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-weditor
+# WEditor
+[![image](https://img.shields.io/pypi/v/weditor.svg?style=flat-square)](https://pypi.python.org/pypi/weditor)
+[![image](https://img.shields.io/github/stars/alibaba/web-editor.svg?style=social&label=Star&style=flat-square)](https://github.com/alibaba/web-editor)
+[![image](https://travis-ci.org/alibaba/web-editor.svg?branch=master)](https://travis-ci.org/alibaba/web-editor)
+
+[中文文档](README_ZH.md)
+
+This project is subproject for smart phone test framework [openatx](https://github.com/openatx)
+for easily use web browser to edit UI scripts.
+
+Screenshot
+
+![screenshot](./screenshot.jpg)
+
+## Installation
+Dependencies
+
+- Python3.6+
+ - [uiautomator2](https://github.com/openatx/uiautomator2)
+ - [facebook-wda](https://github.com/openatx/facebook-wda)
+
+
+> Only tested in `Google Chrome`, _IE_ seems not working well.
+
+```
+pip3 install -U weditor
+```
+
+For developers
+
+```bash
+git clone https://github.com/openatx/weditor
+pip3 install -e weditor
+```
+
+## Usage
+Create Shortcut in Desktop (Only windows)
+
+```
+weditor --shortcut
+```
+
+By click shortcut or run in command line
+
+```
+weditor
+```
+
+This command will start a local server with port 17310,
+and then open a browser tab for you to editor you code.
+
+Port 17310 is to memorize the created day -- 2017/03/10
+
+To see more usage run `weditor -h`
+
+## Hotkeys(Both Mac and Win)
+- Right click screen: `Dump Hierarchy`
+
+### Hotkeys(only Mac)
+- Command+Enter: Run the whole code
+- Command+Shift+Enter: Run selected code or current line if not selected
+
+### Hotkeys(only Win)
+- Ctrl+Enter: Run the whole code
+- Ctrl+Shift+Enter: Run selected code or current line if not selected
+
+## For Developers
+See [DEVELOP.md](DEVELOP.md)
+
+## LICENSE
+[MIT](LICENSE)
+
+%package help
+Summary: Development documents and examples for weditor
+Provides: python3-weditor-doc
+%description help
+# WEditor
+[![image](https://img.shields.io/pypi/v/weditor.svg?style=flat-square)](https://pypi.python.org/pypi/weditor)
+[![image](https://img.shields.io/github/stars/alibaba/web-editor.svg?style=social&label=Star&style=flat-square)](https://github.com/alibaba/web-editor)
+[![image](https://travis-ci.org/alibaba/web-editor.svg?branch=master)](https://travis-ci.org/alibaba/web-editor)
+
+[中文文档](README_ZH.md)
+
+This project is subproject for smart phone test framework [openatx](https://github.com/openatx)
+for easily use web browser to edit UI scripts.
+
+Screenshot
+
+![screenshot](./screenshot.jpg)
+
+## Installation
+Dependencies
+
+- Python3.6+
+ - [uiautomator2](https://github.com/openatx/uiautomator2)
+ - [facebook-wda](https://github.com/openatx/facebook-wda)
+
+
+> Only tested in `Google Chrome`, _IE_ seems not working well.
+
+```
+pip3 install -U weditor
+```
+
+For developers
+
+```bash
+git clone https://github.com/openatx/weditor
+pip3 install -e weditor
+```
+
+## Usage
+Create Shortcut in Desktop (Only windows)
+
+```
+weditor --shortcut
+```
+
+By click shortcut or run in command line
+
+```
+weditor
+```
+
+This command will start a local server with port 17310,
+and then open a browser tab for you to editor you code.
+
+Port 17310 is to memorize the created day -- 2017/03/10
+
+To see more usage run `weditor -h`
+
+## Hotkeys(Both Mac and Win)
+- Right click screen: `Dump Hierarchy`
+
+### Hotkeys(only Mac)
+- Command+Enter: Run the whole code
+- Command+Shift+Enter: Run selected code or current line if not selected
+
+### Hotkeys(only Win)
+- Ctrl+Enter: Run the whole code
+- Ctrl+Shift+Enter: Run selected code or current line if not selected
+
+## For Developers
+See [DEVELOP.md](DEVELOP.md)
+
+## LICENSE
+[MIT](LICENSE)
+
+%prep
+%autosetup -n weditor-0.6.8
+
+%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-weditor -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.8-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..70b6b4f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e3589fdfbb4e30a084f7d18822102717 weditor-0.6.8.tar.gz