From 40d361d420baab260e6a57a21f4908f1a8a283ee Mon Sep 17 00:00:00 2001 From: gnebbia <16106651+gnebbia@users.noreply.github.com> Date: Fri, 26 Mar 2021 03:08:46 +0100 Subject: [PATCH] Added last fixes before release --- CHANGELOG.md | 1 + PKGBUILD | 26 ++++++++++++++++++++++++++ PKGBUILD_GIT | 28 ++++++++++++++++++++++++++++ README.md | 4 ++-- docs/CHANGELOG.md | 2 +- docs/README.md | 4 ++-- docs/conf.py | 4 ++-- kb/__init__.py | 4 ++-- kb/__main__.py | 2 +- kb/cl_parser.py | 2 +- kb/commands/add.py | 2 +- kb/commands/delete.py | 2 +- kb/commands/edit.py | 2 +- kb/commands/erase.py | 2 +- kb/commands/export.py | 2 +- kb/commands/grep.py | 2 +- kb/commands/ingest.py | 2 +- kb/commands/search.py | 2 +- kb/commands/sync.py | 2 +- kb/commands/template.py | 2 +- kb/commands/update.py | 2 +- kb/commands/view.py | 2 +- kb/config.py | 2 +- kb/db.py | 2 +- kb/entities/artifact.py | 2 +- kb/filesystem.py | 2 +- kb/history.py | 2 +- kb/initializer.py | 2 +- kb/main.py | 2 +- kb/opener.py | 2 +- kb/printer/grep.py | 2 +- kb/printer/search.py | 2 +- kb/printer/style.py | 2 +- kb/printer/template.py | 2 +- kb/styler.py | 2 +- kb/viewer.py | 2 +- setup.py | 4 ++-- 37 files changed, 94 insertions(+), 39 deletions(-) create mode 100644 PKGBUILD create mode 100644 PKGBUILD_GIT diff --git a/CHANGELOG.md b/CHANGELOG.md index bfcda16..d3789ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,4 +40,5 @@ * Added rofi custom mode * Added grep matches mode (kb grep "string" -m) * Fixed important bug in grep mode + * Added sync mode diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..67a2ee4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Giuseppe Nebbione + +pkgbase='kb' +pkgname=('kb') +_module='kb-manager' +pkgver='0.1.6' +pkgrel=1 +pkgdesc="A command line minimalist knowledge base manager" +url="https://github.com/gnebbia/kb" +depends=('python') +makedepends=('python-setuptools') +license=('GPL3') +arch=('any') +source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz") +sha256sums=('78e14f6eef30a4742925cc75ba9a5509c032ae42e73e26582cd7ed91794f41df') + +build() { + cd "${srcdir}/${_module}-${pkgver}" + python setup.py build +} + +package() { + depends+=() + cd "${srcdir}/${_module}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build +} diff --git a/PKGBUILD_GIT b/PKGBUILD_GIT new file mode 100644 index 0000000..9816779 --- /dev/null +++ b/PKGBUILD_GIT @@ -0,0 +1,28 @@ +# Maintainer: Giuseppe Nebbione + +pkgname=python-kb-git +_reponame="kb" +pkgver=r100.b6b334f +pkgrel=1 +pkgdesc="A command line minimalist knowledge base manager" +arch=(any) +url="https://github.com/gnebbia/kb.git" +license=('GPL3') +depends=() +makedepends=('git') +provides=("python-kb-git") +conflicts=("python-kb-git" "python-kb" "kb") +source=("git+$url") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${_reponame}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/${_reponame}" + python setup.py install --root="${pkgdir}/" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + diff --git a/README.md b/README.md index 4791129..b9babfc 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ Author: gnc Copyright: © 2020, gnc -Date: 2020-10-16 +Date: 2021-03-26 -Version: 0.1.5 +Version: 0.1.6 ## Table of Contents diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 95ba690..b130223 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -3,7 +3,7 @@ :Author: gnc :Copyright: © 2020, gnc. :License: GPLv3 (see /LICENSE or :doc:`Appendix B `.) -:Date: 2020-10-16 +:Date: 2021-03-26 :Version: 0.1.1 ## Version History diff --git a/docs/README.md b/docs/README.md index fd06a7f..6179d34 100644 --- a/docs/README.md +++ b/docs/README.md @@ -9,9 +9,9 @@ Author: gnc Copyright: © 2020, gnc -Date: 2020-10-16 +Date: 2021-03-26 -Version: 0.1.5 +Version: 0.1.6 ## Purpose diff --git a/docs/conf.py b/docs/conf.py index 99e4c58..0c881cd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,9 +48,9 @@ # built documents. # # The short X.Y version. -version = '0.1.5' +version = '0.1.6' # The full version, including alpha/beta/rc tags. -release = '0.1.5' +release = '0.1.6' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/kb/__init__.py b/kb/__init__.py index 74d32aa..e335b23 100755 --- a/kb/__init__.py +++ b/kb/__init__.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright 2020, Giuseppe Nebbione. @@ -24,7 +24,7 @@ """ __title__ = 'kb' -__version__ = '0.1.5' +__version__ = '0.1.6' __author__ = 'gnc' __license__ = 'GPLv3' __docformat__ = 'restructuredtext en' diff --git a/kb/__main__.py b/kb/__main__.py index 2dedc5e..05f4e39 100755 --- a/kb/__main__.py +++ b/kb/__main__.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/cl_parser.py b/kb/cl_parser.py index ac386ac..8863f2d 100755 --- a/kb/cl_parser.py +++ b/kb/cl_parser.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/add.py b/kb/commands/add.py index c285ea5..ee0cddf 100644 --- a/kb/commands/add.py +++ b/kb/commands/add.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/delete.py b/kb/commands/delete.py index b9978b7..2092eaf 100644 --- a/kb/commands/delete.py +++ b/kb/commands/delete.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/edit.py b/kb/commands/edit.py index 8fc238b..da46869 100644 --- a/kb/commands/edit.py +++ b/kb/commands/edit.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/erase.py b/kb/commands/erase.py index 95c7748..61fdada 100644 --- a/kb/commands/erase.py +++ b/kb/commands/erase.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/export.py b/kb/commands/export.py index ba7cf8a..7eecdfb 100644 --- a/kb/commands/export.py +++ b/kb/commands/export.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/grep.py b/kb/commands/grep.py index be162cc..4adca5d 100644 --- a/kb/commands/grep.py +++ b/kb/commands/grep.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/ingest.py b/kb/commands/ingest.py index bdfe668..4a1f3ba 100644 --- a/kb/commands/ingest.py +++ b/kb/commands/ingest.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/search.py b/kb/commands/search.py index bc4d129..d489e0d 100644 --- a/kb/commands/search.py +++ b/kb/commands/search.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/sync.py b/kb/commands/sync.py index 0f67010..21b234d 100644 --- a/kb/commands/sync.py +++ b/kb/commands/sync.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/template.py b/kb/commands/template.py index 0b4bb1e..7a12393 100644 --- a/kb/commands/template.py +++ b/kb/commands/template.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/update.py b/kb/commands/update.py index a3ea4d6..686adc5 100644 --- a/kb/commands/update.py +++ b/kb/commands/update.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/commands/view.py b/kb/commands/view.py index 683c378..f263192 100644 --- a/kb/commands/view.py +++ b/kb/commands/view.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/config.py b/kb/config.py index 861ffb8..72f5f41 100755 --- a/kb/config.py +++ b/kb/config.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/db.py b/kb/db.py index dbcc561..fb6af45 100755 --- a/kb/db.py +++ b/kb/db.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/entities/artifact.py b/kb/entities/artifact.py index 7fbebed..7a77c31 100644 --- a/kb/entities/artifact.py +++ b/kb/entities/artifact.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/filesystem.py b/kb/filesystem.py index cb3329b..da143e7 100755 --- a/kb/filesystem.py +++ b/kb/filesystem.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/history.py b/kb/history.py index 2955408..d01690b 100644 --- a/kb/history.py +++ b/kb/history.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/initializer.py b/kb/initializer.py index c491f58..6a6c253 100644 --- a/kb/initializer.py +++ b/kb/initializer.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/main.py b/kb/main.py index 91dd847..07c0767 100755 --- a/kb/main.py +++ b/kb/main.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/opener.py b/kb/opener.py index 9adc16a..ffd384a 100644 --- a/kb/opener.py +++ b/kb/opener.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/printer/grep.py b/kb/printer/grep.py index ee7376f..44a4000 100644 --- a/kb/printer/grep.py +++ b/kb/printer/grep.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/printer/search.py b/kb/printer/search.py index 66c8744..638d5a0 100644 --- a/kb/printer/search.py +++ b/kb/printer/search.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/printer/style.py b/kb/printer/style.py index 69d81df..71c3034 100644 --- a/kb/printer/style.py +++ b/kb/printer/style.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/printer/template.py b/kb/printer/template.py index d851db5..f356243 100644 --- a/kb/printer/template.py +++ b/kb/printer/template.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/styler.py b/kb/styler.py index e15142b..9057c75 100644 --- a/kb/styler.py +++ b/kb/styler.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/kb/viewer.py b/kb/viewer.py index 6ed6d28..ea8c70a 100755 --- a/kb/viewer.py +++ b/kb/viewer.py @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# kb v0.1.5 +# kb v0.1.6 # A knowledge base organizer # Copyright © 2020, gnc. # See /LICENSE for licensing information. diff --git a/setup.py b/setup.py index 4ab49ef..a0d8861 100755 --- a/setup.py +++ b/setup.py @@ -5,13 +5,13 @@ setup(name='kb-manager', - version='0.1.5', + version='0.1.6', description='A minimalist knowledge base manager', keywords='kb', author='gnc', author_email='nebbionegiuseppe@gmail.com', url='https://github.com/gnebbia/kb', - download_url='https://github.com/gnebbia/kb/archive/v0.1.5.tar.gz', + download_url='https://github.com/gnebbia/kb/archive/v0.1.6.tar.gz', license='GPLv3', long_description=io.open( './docs/README.md', 'r', encoding='utf-8').read(),