New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
khal: update to 0.10.5. #38583
khal: update to 0.10.5. #38583
Conversation
Sadly the last PR #32292 doesn't explain why the make_check=ci_skip is added. What do I need to do for xlint to not fail? EDIT: I removed the line for testing purposes and force-pushed. |
9c2c527
to
ce352c6
Compare
It seems like it's trying to chmod and create some directories in a place where it shouldn't be possible which succeeds in CI because there, it runs as root.
Add a comment why it's happening - something like |
also, please add the changelog: https://raw.githubusercontent.com/pimutils/khal/master/CHANGELOG.rst cc maintainer @Anachron |
ce352c6
to
02c1458
Compare
Oh, that's what I was looking for yesterday. Thank you for finding it! I read two changelogs I'll try to get this implemented.
Where do you want me to add the CHANGELOG.rst? -> I've also tried to create the manpage, but I couldn't really figure out how to do it the best way. |
just |
https://github.com/pimutils/khal/blob/master/doc/source/install.rst#shell-completion just add the commands that redirect to a file, then vcomplete those files in post_install |
I assumed you mean that and I tried, but the options for khal that are autocompleted doesn't EDIT:
|
e498185
to
04dc9a9
Compare
This software does need further testing. I don't know yet what is causing these problems. I'll investigate further. |
This looks fine to me, do you want me to test it or just wanted to notify me? Edit: Ok just tell me when you need my help. |
this seems to give completions files that work (tested zsh), and it doesn't require vendoring the files in filesdir diff --git a/srcpkgs/khal/template b/srcpkgs/khal/template
index 6b74897878..2f6331ed31 100644
--- a/srcpkgs/khal/template
+++ b/srcpkgs/khal/template
@@ -3,10 +3,10 @@ pkgname=khal
version=0.10.5
revision=1
build_style=python3-module
-hostmakedepends="python3-setuptools"
-depends="python3-setuptools python3-click python3-click-log python3-configobj
+hostmakedepends="python3-setuptools python3-click python3-click-log python3-configobj
python3-dateutil python3-icalendar python3-pytz python3-tzlocal
python3-urwid python3-xdg python3-atomicwrites"
+depends="$hostmakedepends"
checkdepends="python3-pytest python3-freezegun vdirsyncer $depends"
short_desc="Command-line calendar build around CalDAV"
maintainer="Anachron <gith@cron.world>"
@@ -25,8 +25,9 @@ pre_build() {
post_install() {
vlicense COPYING
- vcompletion "${FILESDIR}/khal.bash" bash
- vcompletion "${FILESDIR}/khal.fish" fish
- vcompletion "${FILESDIR}/khal.zsh" zsh
+ for sh in bash fish zsh; do
+ env PYTHONPATH=$DESTDIR/$py3_sitelib _KHAL_COMPLETE="${sh}_source" $DESTDIR/usr/bin/khal > "khal.${sh}"
+ vcompletion "khal.${sh}" $sh
+ done
vsconf khal.conf.sample
} |
Well, I should've used a testuser for this purpose and not my main user. The dotfiles on my Lesson learned. I'll use a testuser from now on. EDIT: I've checked my bash aliases for possible khal stuff... |
04dc9a9
to
3be6829
Compare
Thanks a lot for the help. I've learned so much while updating this package. |
The next step is to get the creation of the manpage working for khal. At the moment I've no idea how to accomplish that. For that I'll create a new PR. |
should do it, but you may need some more hostmakedepends for it to work |
I've tried to add this in, but Sphinx can't find the khal module when it tries to import. diff --git a/srcpkgs/khal/template b/srcpkgs/khal/template
index 2f6331ed31..f06be57363 100644
--- a/srcpkgs/khal/template
+++ b/srcpkgs/khal/template
@@ -3,10 +3,13 @@ pkgname=khal
version=0.10.5
revision=1
build_style=python3-module
-hostmakedepends="python3-setuptools python3-click python3-click-log python3-configobj
- python3-dateutil python3-icalendar python3-pytz python3-tzlocal
- python3-urwid python3-xdg python3-atomicwrites"
-depends="$hostmakedepends"
+hostmakedepends="python3-setuptools python3-Sphinx python3-sphinxcontrib
+ python3-click python3-click-log python3-configobj python3-dateutil
+ python3-icalendar python3-pytz python3-tzlocal python3-urwid python3-xdg
+ python3-atomicwrites"
+depends="python3-click python3-click-log python3-configobj python3-dateutil
+ python3-icalendar python3-pytz python3-tzlocal python3-urwid python3-xdg
+ python3-atomicwrites"
checkdepends="python3-pytest python3-freezegun vdirsyncer $depends"
short_desc="Command-line calendar build around CalDAV"
maintainer="Anachron <gith@cron.world>"
@@ -30,4 +33,6 @@ post_install() {
vcompletion "khal.${sh}" $sh
done
vsconf khal.conf.sample
+ cd doc/
+ make man
} The following error message is stopping the process: sphinx-build -b man -d build/doctrees source build/man
Running Sphinx v5.0.2
Configuration error:
There is a programmable error in your configuration file:
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 343, in eval_config_file
exec(code, namespace)
File "/builddir/khal-0.10.5/doc/source/conf.py", line 17, in <module>
import khal
ModuleNotFoundError: No module named 'khal'
make: *** [Makefile:131: man] Error 2
=> ERROR: khal-0.10.5_1: post_install: 'make man' exited with 2
=> ERROR: in post_install() at srcpkgs/khal/template:37 |
I got it working! But it has a dependency which is not yet available in remote repositories. Should I add the package to this PR or create a new PR? EDIT: formatting |
Did you add |
d7fab66
to
dc204a8
Compare
I've created a separate PR #38602 for the new host make dependency now. I've successful tested the building process with khal and python3-sphinxcontrib-newsfeed. I also use the packages now already on my host machine. |
add that commit here, it doesn't make sense separately from this PR and this PR doesn't work without it |
dc204a8
to
b387876
Compare
I've done it as you said. :) |
Hey @Anachron, does this still look fine to you? 🙂 |
Yes @dataCobra , excellent work! |
b387876
to
a684b48
Compare
Ups, I did git magic and messed up my branch... I'll fix it and send it again. |
a684b48
to
7c59013
Compare
Alright, everything is again as it should be. 👍 |
If something is missing to get it merged, just let me know. 🙂 |
695f2bb
to
8f65bff
Compare
It looks like the sphinxcontrib-newsfeed package does use a testing mechanism. |
if there is, it does not have any indication of it in the repo |
It only checks if all required packages are installed and fails because Sphinx is not installed, add it to $checkdepends with |
8f65bff
to
308c0d0
Compare
Hey @paper42,
I've added Sphinx, but it still fails because of a TypeError. I've tried to get rid of it |
even when adding the fwiw, sphinx doesn't even need --- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -107,7 +107,6 @@
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
- 'sphinxcontrib.newsfeed',
]
# Add any paths that contain templates here, relative to this directory. |
308c0d0
to
b867a1f
Compare
I've added the patch and and changed the khal template accordingly. I've also removed the The push does no longer contain the |
Testing the changes
Local build testing
Since version 0.10.5 there is no longer a
__khal
file. This is why I deleted line 26.