From 6da028734af14e1261166ace5492c6ca3fe99a32 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 03:39:43 +0000 Subject: automatic import of python-qtstrap --- .gitignore | 1 + python-qtstrap.spec | 322 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 324 insertions(+) create mode 100644 python-qtstrap.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..81605b5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/qtstrap-0.5.0.tar.gz diff --git a/python-qtstrap.spec b/python-qtstrap.spec new file mode 100644 index 0000000..3df86c6 --- /dev/null +++ b/python-qtstrap.spec @@ -0,0 +1,322 @@ +%global _empty_manifest_terminate_build 0 +Name: python-qtstrap +Version: 0.5.0 +Release: 1 +Summary: Like Bootstrap, but qt-er. +License: MIT +URL: https://github.com/qtstrap/qtstrap +Source0: https://mirrors.aliyun.com/pypi/web/packages/8c/41/743c6ffb55cad9f3684a9e79cb922e678bdb442fc084474ad4e51a0012d0/qtstrap-0.5.0.tar.gz +BuildArch: noarch + +Requires: python3-QtPy +Requires: python3-pydantic +Requires: python3-click +Requires: python3-inquirerpy +Requires: python3-appdirs +Requires: python3-qtawesome +Requires: python3-pyinstaller + +%description +# QtStrap: Qt application bootstrapping framework + + +[![license](https://img.shields.io/pypi/l/qtstrap.svg)](./LICENSE) +[![pypi version](https://img.shields.io/pypi/v/qtstrap.svg)](https://pypi.org/project/qtstrap/) +[![PyPI status](https://img.shields.io/pypi/status/qtstrap.svg)](https://github.com/qtstrap/qtstrap) + + +Qt is excellent, but it's also enormous. There's a lot of topics, and many of them have hidden gotchas. PySide2 and PyQt are also excellent, letting us leverage the powerful Qt libraries from up in the clouds in PythonLand, but this arrangement has its own gotchas. + +The goal of qtstrap is get your applications up and running quickly, so you can focus on your problem instead of on Qt's idiosyncracies. + +# Features + +More complete docs are available [here](https://qtstrap.github.io/qtstrap/). + +* `qtstrap` command line tool to bootstrap new projects +* crossplatform makefile with useful development commands +* preconfigured build system using PyInstaller and InnoSetup +* custom Qt widgets with useful behaviors +* Pythonic layout system using ContextLayouts +* Some other stuff I haven't remembered yet + +## Custom Widgets + +- `LabelEdit` +- `HLine` and `VLine` +- `LinkLabel` +- Buttons: + - `StateButton` + - `IconToggleButton` + - `ConfirmToggleButton` + - `MenuButton` +- Persistent Widgets (for rapid prototyping of saved data): + - `PersistentCheckableAction` + - `PersistentCheckBox` + - `PersistentComboBox` + - `PersistentLineEdit` + - `PersistentListWidget` + - `PersistentPlainTextEdit` + - `PersistentTabWidget` + - `PersistentTextEdit` + - `PersistentTreeWidget` + +## Utility Classes and Functions +- `Adapter` +- `TimeStamp` +- `StringBuilder` +- `call_later()` + +## decorators: +- `@accepts_file_drops` +- `@trace` +- `@singleton` + +## context managers: +- `Defer` +- `SignalBlocker` + +## qtstrap.extras: + - `CommandPalette`, like VSCode or SublimeText + - Logging Subsystem: log to local database + log viewer widgets + - `CodeEditor`: Custom QTextEditor subclass customized for code editing + + +# Dependencies + +* Python 3 +* PySide2 or PyQt5 +* Make(optional, but recommended) + +# Installation + +```sh +pip install qtstrap +``` + +# Contributing + +Contributions are always welcome. Feel free to [open an issue](https://github.com/qtstrap/qtstrap/issues/new) +or [start a new discussion](https://github.com/qtstrap/qtstrap/discussions/new) on our GitHub. + + +%package -n python3-qtstrap +Summary: Like Bootstrap, but qt-er. +Provides: python-qtstrap +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-qtstrap +# QtStrap: Qt application bootstrapping framework + + +[![license](https://img.shields.io/pypi/l/qtstrap.svg)](./LICENSE) +[![pypi version](https://img.shields.io/pypi/v/qtstrap.svg)](https://pypi.org/project/qtstrap/) +[![PyPI status](https://img.shields.io/pypi/status/qtstrap.svg)](https://github.com/qtstrap/qtstrap) + + +Qt is excellent, but it's also enormous. There's a lot of topics, and many of them have hidden gotchas. PySide2 and PyQt are also excellent, letting us leverage the powerful Qt libraries from up in the clouds in PythonLand, but this arrangement has its own gotchas. + +The goal of qtstrap is get your applications up and running quickly, so you can focus on your problem instead of on Qt's idiosyncracies. + +# Features + +More complete docs are available [here](https://qtstrap.github.io/qtstrap/). + +* `qtstrap` command line tool to bootstrap new projects +* crossplatform makefile with useful development commands +* preconfigured build system using PyInstaller and InnoSetup +* custom Qt widgets with useful behaviors +* Pythonic layout system using ContextLayouts +* Some other stuff I haven't remembered yet + +## Custom Widgets + +- `LabelEdit` +- `HLine` and `VLine` +- `LinkLabel` +- Buttons: + - `StateButton` + - `IconToggleButton` + - `ConfirmToggleButton` + - `MenuButton` +- Persistent Widgets (for rapid prototyping of saved data): + - `PersistentCheckableAction` + - `PersistentCheckBox` + - `PersistentComboBox` + - `PersistentLineEdit` + - `PersistentListWidget` + - `PersistentPlainTextEdit` + - `PersistentTabWidget` + - `PersistentTextEdit` + - `PersistentTreeWidget` + +## Utility Classes and Functions +- `Adapter` +- `TimeStamp` +- `StringBuilder` +- `call_later()` + +## decorators: +- `@accepts_file_drops` +- `@trace` +- `@singleton` + +## context managers: +- `Defer` +- `SignalBlocker` + +## qtstrap.extras: + - `CommandPalette`, like VSCode or SublimeText + - Logging Subsystem: log to local database + log viewer widgets + - `CodeEditor`: Custom QTextEditor subclass customized for code editing + + +# Dependencies + +* Python 3 +* PySide2 or PyQt5 +* Make(optional, but recommended) + +# Installation + +```sh +pip install qtstrap +``` + +# Contributing + +Contributions are always welcome. Feel free to [open an issue](https://github.com/qtstrap/qtstrap/issues/new) +or [start a new discussion](https://github.com/qtstrap/qtstrap/discussions/new) on our GitHub. + + +%package help +Summary: Development documents and examples for qtstrap +Provides: python3-qtstrap-doc +%description help +# QtStrap: Qt application bootstrapping framework + + +[![license](https://img.shields.io/pypi/l/qtstrap.svg)](./LICENSE) +[![pypi version](https://img.shields.io/pypi/v/qtstrap.svg)](https://pypi.org/project/qtstrap/) +[![PyPI status](https://img.shields.io/pypi/status/qtstrap.svg)](https://github.com/qtstrap/qtstrap) + + +Qt is excellent, but it's also enormous. There's a lot of topics, and many of them have hidden gotchas. PySide2 and PyQt are also excellent, letting us leverage the powerful Qt libraries from up in the clouds in PythonLand, but this arrangement has its own gotchas. + +The goal of qtstrap is get your applications up and running quickly, so you can focus on your problem instead of on Qt's idiosyncracies. + +# Features + +More complete docs are available [here](https://qtstrap.github.io/qtstrap/). + +* `qtstrap` command line tool to bootstrap new projects +* crossplatform makefile with useful development commands +* preconfigured build system using PyInstaller and InnoSetup +* custom Qt widgets with useful behaviors +* Pythonic layout system using ContextLayouts +* Some other stuff I haven't remembered yet + +## Custom Widgets + +- `LabelEdit` +- `HLine` and `VLine` +- `LinkLabel` +- Buttons: + - `StateButton` + - `IconToggleButton` + - `ConfirmToggleButton` + - `MenuButton` +- Persistent Widgets (for rapid prototyping of saved data): + - `PersistentCheckableAction` + - `PersistentCheckBox` + - `PersistentComboBox` + - `PersistentLineEdit` + - `PersistentListWidget` + - `PersistentPlainTextEdit` + - `PersistentTabWidget` + - `PersistentTextEdit` + - `PersistentTreeWidget` + +## Utility Classes and Functions +- `Adapter` +- `TimeStamp` +- `StringBuilder` +- `call_later()` + +## decorators: +- `@accepts_file_drops` +- `@trace` +- `@singleton` + +## context managers: +- `Defer` +- `SignalBlocker` + +## qtstrap.extras: + - `CommandPalette`, like VSCode or SublimeText + - Logging Subsystem: log to local database + log viewer widgets + - `CodeEditor`: Custom QTextEditor subclass customized for code editing + + +# Dependencies + +* Python 3 +* PySide2 or PyQt5 +* Make(optional, but recommended) + +# Installation + +```sh +pip install qtstrap +``` + +# Contributing + +Contributions are always welcome. Feel free to [open an issue](https://github.com/qtstrap/qtstrap/issues/new) +or [start a new discussion](https://github.com/qtstrap/qtstrap/discussions/new) on our GitHub. + + +%prep +%autosetup -n qtstrap-0.5.0 + +%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-qtstrap -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot - 0.5.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..4024ef3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +e91d8b9d35bdd5712fee46a0422953ad qtstrap-0.5.0.tar.gz -- cgit v1.2.3