diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 08:59:42 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 08:59:42 +0000 |
| commit | fad672028c857d888f5515aa5ed02ceb0bb8cb35 (patch) | |
| tree | 87014cac7e861882b82216774a21ca2193c8bc47 /python-pervane.spec | |
| parent | ed45bd105818018e26d5479d74f3891e6cc93757 (diff) | |
automatic import of python-pervane
Diffstat (limited to 'python-pervane.spec')
| -rw-r--r-- | python-pervane.spec | 447 |
1 files changed, 447 insertions, 0 deletions
diff --git a/python-pervane.spec b/python-pervane.spec new file mode 100644 index 0000000..b9b5e05 --- /dev/null +++ b/python-pervane.spec @@ -0,0 +1,447 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pervane +Version: 0.1.8 +Release: 1 +Summary: Plain text backed web based markdown note taking, cloud code editor and knowledge base building app +License: MIT License +URL: https://github.com/hakanu/pervane +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/04/63/39c27f6330685cadbce4a76d67f4a40189bd4ae29d4cbe94921f5ea4d8ea/pervane-0.1.8.tar.gz +BuildArch: noarch + +Requires: python3-flask +Requires: python3-Flask-Caching +Requires: python3-Flask-HTTPAuth +Requires: python3-email-validator +Requires: python3-atomicfile +Requires: python3-gunicorn +Requires: python3-flask-appbuilder +Requires: python3-bcrypt +Requires: python3-Flask-Login + +%description + + +# Pervane | [Demo](https://youtu.be/2WiFvcgV6lo) | [Install & Run](https://github.com/hakanu/pervane/wiki/Install-&-Run-instructions) | [Wiki](https://github.com/hakanu/pervane/wiki) | [Discuss](https://reddit.com/r/pervane/) + +[](https://pypi.org/pypi/pervane/) + +[](https://pypi.org/pypi/pervane/) +[](https://pypi.org/pypi/pervane/) +[](https://pypi.org/pypi/pervane/) + +Pervane is a plain text file based note taking and knowledge base building tool. +It doubles as simple file server to render given directories files in web +browser while it can be used as a cloud IDE too with awesome code highlighting. +It's like python's built-in SimpleHTTPServer but a little bit feature richer +like WYSIWYG note taking experience, sidebar with infinite number of nesting, +blazing fast text search, file moving, creating from the browser etc. + +Main use case is to create, edit, serve and search the markdown notes in +combination with example source files. + +If you are using plain text based note taking, this can be helpful for adhoc +mediums like operating systems which don't have large desktop app ecosystem like +ChromeOS or mobile OS like Android and iOS. + +## Features + +* Completely private, your files, your computer, no database, no installation + (apart from some general python packages). There is no statistic collection through any medium. (I only check [pypi stats](https://pypistats.org/packages/pervane)) +* Self hosted (working on a managed version if anyone is interested, drop a messsage!) +* Notes are stored as plain text files with the names given by yourself. Pervane + doesn't rename automatically. +* Extremely fast UI with quick note switches. +* Tabbed UI. +* No added metadata files etc. Just globs your files, caches for N seconds and + creates the file tree. +* Source of truth is your own file system so you can use your favorite markdown + editor to modify your notes: QOwnNotes, VSCode, Sublime Text etc. +* Ignore some files in order not to be shown on the sidebar. +* Flask based server, totally hackable, just modify, it's all yours. +* Minimal dependencies, single binary. +* Uses [silver searcher (ag)](https://github.com/ggreer/the_silver_searcher) for + searching in an instant throughout the whole folder. +* Thanks to ag, no indexing or prework is done for search. You can just start + using Pervane with one line command. +* File tree with proper infinite number of nesting, works well for hierarchical + note taking and knowledge base building. +* Cookie based authentication. +* No stats collection, all private. +* Rich text editing experience thanks to [editor.md](https://pandao.github.io/editor.md/). +* Spell checker +* Find an replace within the editor. +* Hide/show preview +* Full screen editing mode with F11 or toolbar +* Hide/show toolbar +* Lots of themes thanks to editor.md +* Move files in between directories with drag & drop functionality. +* Keyboard shortcuts +* Quick fuzzy file name search +* Edit code notes directly +* Drag & Drop file upload in anywhere in the page +* Image/Video rendering in case you they are in the directory. +* Directory browser with breadcrumb paths. +* TeX/KaTeX, emoji, task list support. +* WYSIWYG editor +* Toggle-able sidebar. +* Dark mode by default with many themes like monokai, solarized etc. +* Side-by-side markdown preview with sync scroll. +* Full screen Zen mode for writing. +* Autosave. + +## [Screenshots](https://github.com/hakanu/pervane/wiki/Screenshots-Gallery) + + + +All of the screenshots and more video are located in [Pervane Wiki](https://github.com/hakanu/pervane/wiki). + +## Install via pip + +```shell +screen +pip install pervane + +# First make sure you create the admin user +pervane --mode=init + +# Then run the app for reals. +# You can login with your recently created credentials. +pervane --dir=example/ +``` + +When you go to localhost:5000, Pervane only accepts 1 +user. So your notes will only be visible by this single user. + +⚠️ If you see a server error, delete your cookies and retry. + +### If you are upgrading from a version before 0.0.9 + +You will probably see errors about user is not existing. You need to run `pervane --mode=init` first. +I've changed user auth mode again (had to, because flask-user is deprecated). Sorry about it. + +Package details here: https://pypi.org/project/pervane/ + +You can run Pervane also with Docker or build it from source. Please visit +[Pervane Wiki](https://github.com/hakanu/pervane/wiki/Install-&-Run-instructions) +for more installation options. + +## Contribute + +Please and thank you :) + +```shell +# Init: +git clone https://github.com/hakanu/pervane.git && cd pervane + +# Set up local env. +virtualenv -p python3 env +source env/bin/activate +pip install -r requirements.txt + +# Run +python3 pervane/serve.py --debug=true +``` + + +%package -n python3-pervane +Summary: Plain text backed web based markdown note taking, cloud code editor and knowledge base building app +Provides: python-pervane +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pervane + + +# Pervane | [Demo](https://youtu.be/2WiFvcgV6lo) | [Install & Run](https://github.com/hakanu/pervane/wiki/Install-&-Run-instructions) | [Wiki](https://github.com/hakanu/pervane/wiki) | [Discuss](https://reddit.com/r/pervane/) + +[](https://pypi.org/pypi/pervane/) + +[](https://pypi.org/pypi/pervane/) +[](https://pypi.org/pypi/pervane/) +[](https://pypi.org/pypi/pervane/) + +Pervane is a plain text file based note taking and knowledge base building tool. +It doubles as simple file server to render given directories files in web +browser while it can be used as a cloud IDE too with awesome code highlighting. +It's like python's built-in SimpleHTTPServer but a little bit feature richer +like WYSIWYG note taking experience, sidebar with infinite number of nesting, +blazing fast text search, file moving, creating from the browser etc. + +Main use case is to create, edit, serve and search the markdown notes in +combination with example source files. + +If you are using plain text based note taking, this can be helpful for adhoc +mediums like operating systems which don't have large desktop app ecosystem like +ChromeOS or mobile OS like Android and iOS. + +## Features + +* Completely private, your files, your computer, no database, no installation + (apart from some general python packages). There is no statistic collection through any medium. (I only check [pypi stats](https://pypistats.org/packages/pervane)) +* Self hosted (working on a managed version if anyone is interested, drop a messsage!) +* Notes are stored as plain text files with the names given by yourself. Pervane + doesn't rename automatically. +* Extremely fast UI with quick note switches. +* Tabbed UI. +* No added metadata files etc. Just globs your files, caches for N seconds and + creates the file tree. +* Source of truth is your own file system so you can use your favorite markdown + editor to modify your notes: QOwnNotes, VSCode, Sublime Text etc. +* Ignore some files in order not to be shown on the sidebar. +* Flask based server, totally hackable, just modify, it's all yours. +* Minimal dependencies, single binary. +* Uses [silver searcher (ag)](https://github.com/ggreer/the_silver_searcher) for + searching in an instant throughout the whole folder. +* Thanks to ag, no indexing or prework is done for search. You can just start + using Pervane with one line command. +* File tree with proper infinite number of nesting, works well for hierarchical + note taking and knowledge base building. +* Cookie based authentication. +* No stats collection, all private. +* Rich text editing experience thanks to [editor.md](https://pandao.github.io/editor.md/). +* Spell checker +* Find an replace within the editor. +* Hide/show preview +* Full screen editing mode with F11 or toolbar +* Hide/show toolbar +* Lots of themes thanks to editor.md +* Move files in between directories with drag & drop functionality. +* Keyboard shortcuts +* Quick fuzzy file name search +* Edit code notes directly +* Drag & Drop file upload in anywhere in the page +* Image/Video rendering in case you they are in the directory. +* Directory browser with breadcrumb paths. +* TeX/KaTeX, emoji, task list support. +* WYSIWYG editor +* Toggle-able sidebar. +* Dark mode by default with many themes like monokai, solarized etc. +* Side-by-side markdown preview with sync scroll. +* Full screen Zen mode for writing. +* Autosave. + +## [Screenshots](https://github.com/hakanu/pervane/wiki/Screenshots-Gallery) + + + +All of the screenshots and more video are located in [Pervane Wiki](https://github.com/hakanu/pervane/wiki). + +## Install via pip + +```shell +screen +pip install pervane + +# First make sure you create the admin user +pervane --mode=init + +# Then run the app for reals. +# You can login with your recently created credentials. +pervane --dir=example/ +``` + +When you go to localhost:5000, Pervane only accepts 1 +user. So your notes will only be visible by this single user. + +⚠️ If you see a server error, delete your cookies and retry. + +### If you are upgrading from a version before 0.0.9 + +You will probably see errors about user is not existing. You need to run `pervane --mode=init` first. +I've changed user auth mode again (had to, because flask-user is deprecated). Sorry about it. + +Package details here: https://pypi.org/project/pervane/ + +You can run Pervane also with Docker or build it from source. Please visit +[Pervane Wiki](https://github.com/hakanu/pervane/wiki/Install-&-Run-instructions) +for more installation options. + +## Contribute + +Please and thank you :) + +```shell +# Init: +git clone https://github.com/hakanu/pervane.git && cd pervane + +# Set up local env. +virtualenv -p python3 env +source env/bin/activate +pip install -r requirements.txt + +# Run +python3 pervane/serve.py --debug=true +``` + + +%package help +Summary: Development documents and examples for pervane +Provides: python3-pervane-doc +%description help + + +# Pervane | [Demo](https://youtu.be/2WiFvcgV6lo) | [Install & Run](https://github.com/hakanu/pervane/wiki/Install-&-Run-instructions) | [Wiki](https://github.com/hakanu/pervane/wiki) | [Discuss](https://reddit.com/r/pervane/) + +[](https://pypi.org/pypi/pervane/) + +[](https://pypi.org/pypi/pervane/) +[](https://pypi.org/pypi/pervane/) +[](https://pypi.org/pypi/pervane/) + +Pervane is a plain text file based note taking and knowledge base building tool. +It doubles as simple file server to render given directories files in web +browser while it can be used as a cloud IDE too with awesome code highlighting. +It's like python's built-in SimpleHTTPServer but a little bit feature richer +like WYSIWYG note taking experience, sidebar with infinite number of nesting, +blazing fast text search, file moving, creating from the browser etc. + +Main use case is to create, edit, serve and search the markdown notes in +combination with example source files. + +If you are using plain text based note taking, this can be helpful for adhoc +mediums like operating systems which don't have large desktop app ecosystem like +ChromeOS or mobile OS like Android and iOS. + +## Features + +* Completely private, your files, your computer, no database, no installation + (apart from some general python packages). There is no statistic collection through any medium. (I only check [pypi stats](https://pypistats.org/packages/pervane)) +* Self hosted (working on a managed version if anyone is interested, drop a messsage!) +* Notes are stored as plain text files with the names given by yourself. Pervane + doesn't rename automatically. +* Extremely fast UI with quick note switches. +* Tabbed UI. +* No added metadata files etc. Just globs your files, caches for N seconds and + creates the file tree. +* Source of truth is your own file system so you can use your favorite markdown + editor to modify your notes: QOwnNotes, VSCode, Sublime Text etc. +* Ignore some files in order not to be shown on the sidebar. +* Flask based server, totally hackable, just modify, it's all yours. +* Minimal dependencies, single binary. +* Uses [silver searcher (ag)](https://github.com/ggreer/the_silver_searcher) for + searching in an instant throughout the whole folder. +* Thanks to ag, no indexing or prework is done for search. You can just start + using Pervane with one line command. +* File tree with proper infinite number of nesting, works well for hierarchical + note taking and knowledge base building. +* Cookie based authentication. +* No stats collection, all private. +* Rich text editing experience thanks to [editor.md](https://pandao.github.io/editor.md/). +* Spell checker +* Find an replace within the editor. +* Hide/show preview +* Full screen editing mode with F11 or toolbar +* Hide/show toolbar +* Lots of themes thanks to editor.md +* Move files in between directories with drag & drop functionality. +* Keyboard shortcuts +* Quick fuzzy file name search +* Edit code notes directly +* Drag & Drop file upload in anywhere in the page +* Image/Video rendering in case you they are in the directory. +* Directory browser with breadcrumb paths. +* TeX/KaTeX, emoji, task list support. +* WYSIWYG editor +* Toggle-able sidebar. +* Dark mode by default with many themes like monokai, solarized etc. +* Side-by-side markdown preview with sync scroll. +* Full screen Zen mode for writing. +* Autosave. + +## [Screenshots](https://github.com/hakanu/pervane/wiki/Screenshots-Gallery) + + + +All of the screenshots and more video are located in [Pervane Wiki](https://github.com/hakanu/pervane/wiki). + +## Install via pip + +```shell +screen +pip install pervane + +# First make sure you create the admin user +pervane --mode=init + +# Then run the app for reals. +# You can login with your recently created credentials. +pervane --dir=example/ +``` + +When you go to localhost:5000, Pervane only accepts 1 +user. So your notes will only be visible by this single user. + +⚠️ If you see a server error, delete your cookies and retry. + +### If you are upgrading from a version before 0.0.9 + +You will probably see errors about user is not existing. You need to run `pervane --mode=init` first. +I've changed user auth mode again (had to, because flask-user is deprecated). Sorry about it. + +Package details here: https://pypi.org/project/pervane/ + +You can run Pervane also with Docker or build it from source. Please visit +[Pervane Wiki](https://github.com/hakanu/pervane/wiki/Install-&-Run-instructions) +for more installation options. + +## Contribute + +Please and thank you :) + +```shell +# Init: +git clone https://github.com/hakanu/pervane.git && cd pervane + +# Set up local env. +virtualenv -p python3 env +source env/bin/activate +pip install -r requirements.txt + +# Run +python3 pervane/serve.py --debug=true +``` + + +%prep +%autosetup -n pervane-0.1.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-pervane -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.8-1 +- Package Spec generated |
