diff -Nru sen-0.6.1/debian/changelog sen-0.6.2/debian/changelog --- sen-0.6.1/debian/changelog 2019-11-08 10:32:14.000000000 +0000 +++ sen-0.6.2/debian/changelog 2022-02-07 14:46:45.000000000 +0000 @@ -1,3 +1,16 @@ +sen (0.6.2-1) unstable; urgency=medium + + * New upstream release. + * Bump Standards-Version to 4.6.0. + * Bump compat to 13. + * Update Maintainer to Debian Python Team. + * Update Vcs-* to salsa.debian.org + * Set Rules-Requires-Root: no + * Add upstream metadata. + * Update d/watch to version 4. + + -- ChangZhuo Chen (陳昌倬) Mon, 07 Feb 2022 22:46:45 +0800 + sen (0.6.1-0.1) unstable; urgency=medium * Non-maintainer upload diff -Nru sen-0.6.1/debian/compat sen-0.6.2/debian/compat --- sen-0.6.1/debian/compat 2017-11-18 03:09:05.000000000 +0000 +++ sen-0.6.2/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -10 diff -Nru sen-0.6.1/debian/control sen-0.6.2/debian/control --- sen-0.6.1/debian/control 2018-04-03 10:28:44.000000000 +0000 +++ sen-0.6.2/debian/control 2022-02-07 14:42:38.000000000 +0000 @@ -1,9 +1,9 @@ Source: sen Section: admin Priority: optional -Maintainer: Python Applications Packaging Team +Maintainer: Debian Python Team Uploaders: ChangZhuo Chen (陳昌倬) -Build-Depends: debhelper (>= 10), +Build-Depends: debhelper-compat (= 13), asciidoc-base, dh-python, python3-all, @@ -15,11 +15,11 @@ python3-urwid, python3-urwidtrees, xmlto, -Standards-Version: 4.1.0 +Standards-Version: 4.6.0 +Rules-Requires-Root: no Homepage: https://github.com/TomasTomecek/sen -Vcs-Browser: https://anonscm.debian.org/git/collab-maint/sen.git -Vcs-Git: https://anonscm.debian.org/git/collab-maint/sen.git -X-Python3-Version: >= 3.2 +Vcs-Browser: https://salsa.debian.org/python-team/packages/sen +Vcs-Git: https://salsa.debian.org/python-team/packages/sen.git Package: sen Architecture: all diff -Nru sen-0.6.1/debian/upstream/metadata sen-0.6.2/debian/upstream/metadata --- sen-0.6.1/debian/upstream/metadata 1970-01-01 00:00:00.000000000 +0000 +++ sen-0.6.2/debian/upstream/metadata 2022-02-07 14:43:32.000000000 +0000 @@ -0,0 +1,5 @@ +Name: sen +Repository: https://github.com/TomasTomecek/sen.git +Repository-Browse: https://github.com/TomasTomecek/sen +Bug-Database: https://github.com/TomasTomecek/sen/issues +Bug-Submit: https://github.com/TomasTomecek/sen/issues/new diff -Nru sen-0.6.1/debian/watch sen-0.6.2/debian/watch --- sen-0.6.1/debian/watch 2017-11-18 02:56:04.000000000 +0000 +++ sen-0.6.2/debian/watch 2022-02-07 14:45:37.000000000 +0000 @@ -1,3 +1,3 @@ -version=3 +version=4 opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ https://pypi.debian.net/sen/sen-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) diff -Nru sen-0.6.1/io.github.tomastomecek.sen.metainfo.xml sen-0.6.2/io.github.tomastomecek.sen.metainfo.xml --- sen-0.6.1/io.github.tomastomecek.sen.metainfo.xml 1970-01-01 00:00:00.000000000 +0000 +++ sen-0.6.2/io.github.tomastomecek.sen.metainfo.xml 2021-11-01 09:02:44.000000000 +0000 @@ -0,0 +1,28 @@ + + + io.github.tomastomecek.sen + + sen + a terminal user interface for docker engine + + MIT + MIT + + +

+ it can interactively manage your containers and images: manage? start, stop, restart, kill, delete,... there is a "dashboard" view for containers and images you are able to inspect containers and images sen can fetch logs of containers and even stream logs real-time some buffers support searching and filtering sen receives real-time updates from docker when anything changes e.g. if you pull a container in another terminal, sen will pick it up sen notifies you whenever something happens (and reports slow queries) supports a lot of vim-like keybindings (j, k, gg, /, ...) you can get interactive tree view of all images (equivalent of docker images --tree) see how much space containers, images and volumes occupy (just type :df) +

+
+ + sen + + + Utility + Adult + + + + sen + +
+ diff -Nru sen-0.6.1/MANIFEST.in sen-0.6.2/MANIFEST.in --- sen-0.6.1/MANIFEST.in 2019-03-04 10:52:23.000000000 +0000 +++ sen-0.6.2/MANIFEST.in 2021-11-01 09:02:44.000000000 +0000 @@ -2,5 +2,7 @@ include README.md include requirements.txt include requirements-test.txt +include io.github.tomastomecek.sen.metainfo.xml +include sen.svg recursive-include tests * recursive-include docs * diff -Nru sen-0.6.1/PKG-INFO sen-0.6.2/PKG-INFO --- sen-0.6.1/PKG-INFO 2019-03-04 11:33:13.000000000 +0000 +++ sen-0.6.2/PKG-INFO 2021-11-01 09:40:20.727424000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: sen -Version: 0.6.1 +Version: 0.6.2 Summary: Terminal User Interface for Docker Engine Home-page: https://github.com/TomasTomecek/sen/ Author: Tomas Tomecek diff -Nru sen-0.6.1/README.md sen-0.6.2/README.md --- sen-0.6.1/README.md 2019-03-04 11:23:03.000000000 +0000 +++ sen-0.6.2/README.md 2021-11-01 09:37:08.000000000 +0000 @@ -3,9 +3,9 @@ ![Build Status](https://travis-ci.org/TomasTomecek/sen.svg?branch=master) -`sen` is a terminal user interface for docker engine: +`sen` is a terminal user interface for containers: * it can interactively manage your containers and images: - * manage? start, stop, restart, kill, delete,... + * start, stop, restart, kill, delete,... * there is a "dashboard" view for containers and images * you are able to inspect containers and images * sen can fetch logs of containers and even stream logs real-time @@ -24,7 +24,7 @@ # Status -TL;DR: maintenance mode +**maintenance mode** I lost interest in working on new features for sen. I will continue providing support for sen as much as I can, but only bug fixes. Please don't expect any @@ -68,7 +68,7 @@ `sen` is using [`urwidtrees`](https://github.com/pazz/urwidtrees) as a dependency. Unfortunately, the upstream maintainer doesn't maintain it on PyPI so we need to install it directly from git, before installing sen (the forked PyPI version has a [bug](https://github.com/TomasTomecek/sen/issues/128) in -installation process): +the installation process): ``` $ pip3 install git+https://github.com/pazz/urwidtrees.git@9142c59d3e41421ff6230708d08b6a134e0a8eed#egg=urwidtrees-1.0.3.dev @@ -114,22 +114,42 @@ $ PYTHONPATH="$PWD:$PYTHONPATH" ./sen/cli.py ``` -If `pip3` executable is not available on your system, you can run pip like this: - -``` -$ python3 -m pip install sen -``` - # Prerequisite Either: -* The unix socket for docker engine needs to be accessible. By default it's located at `/run/docker.sock`. +* The unix socket with the API for docker engine needs to be accessible. By default it's located at `/run/docker.sock`. Or: -* Have the `DOCKER_HOST`, `DOCKER_TLS_VERIFY`, and `DOCKER_CERT_PATH` set properly. If you're using `docker-machine` or `boot2docker` you're all set! +* Have the `DOCKER_HOST`, `DOCKER_TLS_VERIFY`, and `DOCKER_CERT_PATH` set properly. + + +# Podman + +Starting Podman v2.0, there is a [Docker-compatible +API](https://docs.podman.io/en/latest/_static/api.html) provided by Podman. +`sen` works well while talking to Podman over this API. + + +## Connecting to Podman + +Run Podman as: +``` +$ podman system service -t 0 +``` + +Let's discover the unix socket path now: +``` +$ podman info --format={{".Host.RemoteSocket.Path"}} +/run/user/1000/podman/podman.sock +``` + +And finally tell `sen` to connect to it: +``` +$ DOCKER_HOST=unix://$(podman info --format={{".Host.RemoteSocket.Path"}}) sen +``` # Keybindings @@ -231,8 +251,16 @@ # Why I started sen? -Since I started using docker, I always dreamed of having a docker TUI. Something like [tig](https://github.com/jonas/tig), [htop](http://hisham.hm/htop/) or [alot](https://github.com/pazz/alot). Some appeared over time. Such as [docker-mon](https://github.com/icecrime/docker-mon) or [ctop](https://github.com/yadutaf/ctop). Unfortunately, those are not proper docker TUIs. They are meant for monitoring and diagnostics. +Since I started using docker, I always dreamed of having a docker TUI. +Something like [tig](https://github.com/jonas/tig), +[htop](http://hisham.hm/htop/) or [alot](https://github.com/pazz/alot). Some +appeared over time. Such as +[docker-mon](https://github.com/icecrime/docker-mon) or +[ctop](https://github.com/yadutaf/ctop). Unfortunately, those are not proper +docker TUIs. They are meant for monitoring and diagnostics. -So I realized that if I want make my dream come true, I need to do it myself. That's where I started working on *sen* (*dream* in Slovak). +So I realized that if I want make my dream come true, I need to do it myself. +That's where I started working on *sen* (*dream* in Slovak). -But! As the time went, [someone](https://github.com/moncho) else had the same idea as I did: [dry](https://github.com/moncho/dry). +But! As the time went, [someone](https://github.com/moncho) else had the same +idea as I did: [dry](https://github.com/moncho/dry). diff -Nru sen-0.6.1/sen/docker_backend.py sen-0.6.2/sen/docker_backend.py --- sen-0.6.1/sen/docker_backend.py 2019-03-04 11:23:03.000000000 +0000 +++ sen-0.6.2/sen/docker_backend.py 2021-11-01 09:02:44.000000000 +0000 @@ -646,7 +646,12 @@ f = f[:26] if f == "0001-01-01T00:00:00Z": return DINOSAUR_TIME - finished_at = datetime.datetime.strptime(f, ISO_DATETIME_PARSE_STRING) + f = f.replace("Z", "0") + try: + finished_at = datetime.datetime.strptime(f, ISO_DATETIME_PARSE_STRING) + except ValueError as ex: + logger.error("unable to parse datetime %s: %s", f, ex) + return DINOSAUR_TIME return finished_at @property diff -Nru sen-0.6.1/sen/__init__.py sen-0.6.2/sen/__init__.py --- sen-0.6.1/sen/__init__.py 2019-03-04 11:33:07.000000000 +0000 +++ sen-0.6.2/sen/__init__.py 2021-11-01 09:37:08.000000000 +0000 @@ -2,7 +2,7 @@ from sen.constants import FALLBACK_LOG_PATH -__version__ = '0.6.1' +__version__ = '0.6.2' def set_logging(name="sen", level=logging.DEBUG, path=FALLBACK_LOG_PATH): diff -Nru sen-0.6.1/sen.egg-info/PKG-INFO sen-0.6.2/sen.egg-info/PKG-INFO --- sen-0.6.1/sen.egg-info/PKG-INFO 2019-03-04 11:33:13.000000000 +0000 +++ sen-0.6.2/sen.egg-info/PKG-INFO 2021-11-01 09:40:20.000000000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: sen -Version: 0.6.1 +Version: 0.6.2 Summary: Terminal User Interface for Docker Engine Home-page: https://github.com/TomasTomecek/sen/ Author: Tomas Tomecek diff -Nru sen-0.6.1/sen.egg-info/SOURCES.txt sen-0.6.2/sen.egg-info/SOURCES.txt --- sen-0.6.1/sen.egg-info/SOURCES.txt 2019-03-04 11:33:13.000000000 +0000 +++ sen-0.6.2/sen.egg-info/SOURCES.txt 2021-11-01 09:40:20.000000000 +0000 @@ -1,8 +1,10 @@ LICENSE MANIFEST.in README.md +io.github.tomastomecek.sen.metainfo.xml requirements-test.txt requirements.txt +sen.svg setup.cfg setup.py docs/devel.md @@ -55,6 +57,7 @@ sen/tui/widgets/list/util.py tests/__init__.py tests/constants.py +tests/full.fmf tests/real.py tests/test_commands.py tests/test_concurrency.py diff -Nru sen-0.6.1/sen.svg sen-0.6.2/sen.svg --- sen-0.6.1/sen.svg 1970-01-01 00:00:00.000000000 +0000 +++ sen-0.6.2/sen.svg 2021-11-01 09:02:44.000000000 +0000 @@ -0,0 +1,1565 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + Openclipart + + + Genesis mirror + 2010-03-15T01:26:39 + My dream blue and red + https://openclipart.org/detail/31723/genesis-mirror-by-insan + + + insan + + + + + dream + + + + + + + + + + + diff -Nru sen-0.6.1/setup.cfg sen-0.6.2/setup.cfg --- sen-0.6.1/setup.cfg 2019-03-04 11:33:13.000000000 +0000 +++ sen-0.6.2/setup.cfg 2021-11-01 09:40:20.727424000 +0000 @@ -1,5 +1,5 @@ [metadata] -description-file = README.md +description_file = README.md [egg_info] tag_build = diff -Nru sen-0.6.1/setup.py sen-0.6.2/setup.py --- sen-0.6.1/setup.py 2019-03-04 11:33:07.000000000 +0000 +++ sen-0.6.2/setup.py 2021-11-01 09:37:08.000000000 +0000 @@ -17,7 +17,7 @@ setup( name='sen', - version='0.6.1', + version='0.6.2', description="Terminal User Interface for Docker Engine", author='Tomas Tomecek', author_email='tomas@tomecek.net', diff -Nru sen-0.6.1/tests/full.fmf sen-0.6.2/tests/full.fmf --- sen-0.6.1/tests/full.fmf 1970-01-01 00:00:00.000000000 +0000 +++ sen-0.6.2/tests/full.fmf 2021-11-01 09:02:44.000000000 +0000 @@ -0,0 +1,17 @@ +require: +- python3-urwid +- python3-urwidtrees +- python3-docker +- python3-pytest +- python3-pytest-capturelog +- python3-flexmock +- python3-urwid +- python3-urwidtrees +- python3-docker +component: +- sen +tier: 1 +tag: + - basic +test: pytest-3 -vv . +duration: 30m