summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 10:18:46 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 10:18:46 +0000
commitc55e31d01b101d5579e79030801a2db0417f0294 (patch)
treec5e10958d877b03029bafde477676fdaef2f1fc2
parent7d7c1910ab89569d3705c4a1b7ce0728f8ea125f (diff)
automatic import of python-pter
-rw-r--r--.gitignore1
-rw-r--r--python-pter.spec339
-rw-r--r--sources1
3 files changed, 341 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..035dce2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pter-3.7.0.tar.gz
diff --git a/python-pter.spec b/python-pter.spec
new file mode 100644
index 0000000..7bf8545
--- /dev/null
+++ b/python-pter.spec
@@ -0,0 +1,339 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pter
+Version: 3.7.0
+Release: 1
+Summary: Console UI to manage your todo.txt file(s).
+License: MIT License
+URL: https://vonshednob.cc/pter
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e5/56/0050354ddfcb1cea33ccd991088b8f047c85b992bb33fada808097657612/pter-3.7.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-pytodotxt
+Requires: python3-cursedspace
+Requires: python3-pyxdg
+
+%description
+# pter
+
+Your console and graphical UI to manage your todo.txt file(s).
+
+![](doc/pter-demo.gif)
+
+Also in this package, the QT5 based graphical user interface, qpter.
+
+![](doc/qpter.png)
+
+pter has a bunch of features that help you managing your todo.txt file:
+
+ - Fully compatible to the todo.txt standard
+ - Support for `due:`, `h:`, `t:`
+ - Save search queries for quick access
+ - Convenient entering of dates
+ - Configurable behaviour, shortcuts, and colors
+ - Time tracking
+
+There is also a graphical user interface called qpter.
+
+
+## Installation
+
+### Install from PIP
+
+To install pter you can either clone the repository (see at the end) or, much
+simpler, use pip to install it:
+
+ pip install pter
+
+If you want to use the Qt GUI qpter, you have to install PyQt5::
+
+ pip install PyQt5
+
+
+## Using pter
+
+To launch pter you have to tell it where your todo.txt file is:
+
+ pter ~/todo.txt
+
+For the graphical user interface (requires QT), you have to start it like
+this:
+
+ qpter ~/todo.txt
+
+Both will give you a listing of all your tasks order by how soon they will be
+due and what priority you have given them.
+
+You can navigate the tasks with your cursor keys and edit selected tasks by
+pressing `e`.
+
+More default shortcuts are:
+
+ - `e`, edit the selected task
+ - `n`, create a new task
+ - `d`, mark the selected task as done (or toggle back to not done)
+ - `?`, show all keyboard shortcuts
+ - `q`, quit the program
+
+There is a complex search available (have a look at the manual for details), but the short version is:
+
+ - press `/` to enter your search terms
+ - search for `done:n` to only show incomplete tasks
+ - search for a context with `@context`
+ - search for a project with `+project`
+ - search for tasks that do not belong to a context with `-@context` or `not:@context`
+ - press `Return` to return the focus to the task list
+
+
+## Using qpter
+
+To launch the Qt GUI, you may (but don’t have to) provide the location of your
+todo.txt file::
+
+ qpter ~/todo.txt
+
+
+# Contributing
+
+Just like any other open source project, you’re invited to participate in
+pter’s development. Any contribution is welcome, from bug reports to pull
+requests/sending of patches!
+
+You can find the project at [codeberg](https://codeberg.org/vonshednob/pter)
+or just email any of the authors with your input.
+
+
+
+%package -n python3-pter
+Summary: Console UI to manage your todo.txt file(s).
+Provides: python-pter
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pter
+# pter
+
+Your console and graphical UI to manage your todo.txt file(s).
+
+![](doc/pter-demo.gif)
+
+Also in this package, the QT5 based graphical user interface, qpter.
+
+![](doc/qpter.png)
+
+pter has a bunch of features that help you managing your todo.txt file:
+
+ - Fully compatible to the todo.txt standard
+ - Support for `due:`, `h:`, `t:`
+ - Save search queries for quick access
+ - Convenient entering of dates
+ - Configurable behaviour, shortcuts, and colors
+ - Time tracking
+
+There is also a graphical user interface called qpter.
+
+
+## Installation
+
+### Install from PIP
+
+To install pter you can either clone the repository (see at the end) or, much
+simpler, use pip to install it:
+
+ pip install pter
+
+If you want to use the Qt GUI qpter, you have to install PyQt5::
+
+ pip install PyQt5
+
+
+## Using pter
+
+To launch pter you have to tell it where your todo.txt file is:
+
+ pter ~/todo.txt
+
+For the graphical user interface (requires QT), you have to start it like
+this:
+
+ qpter ~/todo.txt
+
+Both will give you a listing of all your tasks order by how soon they will be
+due and what priority you have given them.
+
+You can navigate the tasks with your cursor keys and edit selected tasks by
+pressing `e`.
+
+More default shortcuts are:
+
+ - `e`, edit the selected task
+ - `n`, create a new task
+ - `d`, mark the selected task as done (or toggle back to not done)
+ - `?`, show all keyboard shortcuts
+ - `q`, quit the program
+
+There is a complex search available (have a look at the manual for details), but the short version is:
+
+ - press `/` to enter your search terms
+ - search for `done:n` to only show incomplete tasks
+ - search for a context with `@context`
+ - search for a project with `+project`
+ - search for tasks that do not belong to a context with `-@context` or `not:@context`
+ - press `Return` to return the focus to the task list
+
+
+## Using qpter
+
+To launch the Qt GUI, you may (but don’t have to) provide the location of your
+todo.txt file::
+
+ qpter ~/todo.txt
+
+
+# Contributing
+
+Just like any other open source project, you’re invited to participate in
+pter’s development. Any contribution is welcome, from bug reports to pull
+requests/sending of patches!
+
+You can find the project at [codeberg](https://codeberg.org/vonshednob/pter)
+or just email any of the authors with your input.
+
+
+
+%package help
+Summary: Development documents and examples for pter
+Provides: python3-pter-doc
+%description help
+# pter
+
+Your console and graphical UI to manage your todo.txt file(s).
+
+![](doc/pter-demo.gif)
+
+Also in this package, the QT5 based graphical user interface, qpter.
+
+![](doc/qpter.png)
+
+pter has a bunch of features that help you managing your todo.txt file:
+
+ - Fully compatible to the todo.txt standard
+ - Support for `due:`, `h:`, `t:`
+ - Save search queries for quick access
+ - Convenient entering of dates
+ - Configurable behaviour, shortcuts, and colors
+ - Time tracking
+
+There is also a graphical user interface called qpter.
+
+
+## Installation
+
+### Install from PIP
+
+To install pter you can either clone the repository (see at the end) or, much
+simpler, use pip to install it:
+
+ pip install pter
+
+If you want to use the Qt GUI qpter, you have to install PyQt5::
+
+ pip install PyQt5
+
+
+## Using pter
+
+To launch pter you have to tell it where your todo.txt file is:
+
+ pter ~/todo.txt
+
+For the graphical user interface (requires QT), you have to start it like
+this:
+
+ qpter ~/todo.txt
+
+Both will give you a listing of all your tasks order by how soon they will be
+due and what priority you have given them.
+
+You can navigate the tasks with your cursor keys and edit selected tasks by
+pressing `e`.
+
+More default shortcuts are:
+
+ - `e`, edit the selected task
+ - `n`, create a new task
+ - `d`, mark the selected task as done (or toggle back to not done)
+ - `?`, show all keyboard shortcuts
+ - `q`, quit the program
+
+There is a complex search available (have a look at the manual for details), but the short version is:
+
+ - press `/` to enter your search terms
+ - search for `done:n` to only show incomplete tasks
+ - search for a context with `@context`
+ - search for a project with `+project`
+ - search for tasks that do not belong to a context with `-@context` or `not:@context`
+ - press `Return` to return the focus to the task list
+
+
+## Using qpter
+
+To launch the Qt GUI, you may (but don’t have to) provide the location of your
+todo.txt file::
+
+ qpter ~/todo.txt
+
+
+# Contributing
+
+Just like any other open source project, you’re invited to participate in
+pter’s development. Any contribution is welcome, from bug reports to pull
+requests/sending of patches!
+
+You can find the project at [codeberg](https://codeberg.org/vonshednob/pter)
+or just email any of the authors with your input.
+
+
+
+%prep
+%autosetup -n pter-3.7.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-pter -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 3.7.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..4ec72f9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+567f9131ae5b34d4567e927d00dc8ea1 pter-3.7.0.tar.gz