-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
activitywatch: init at 0.12.2 #202935
activitywatch: init at 0.12.2 #202935
Conversation
What's the state of activitywatch packaging? Is there anything that I could help with? |
I was planning to wait for 0.12.2 since it should include some small patches to help with packaging, but that seems like it'll take a bit. I'll continue working on this, the main thing to consider are mostly design choices, like making a single package that combines server + qt + watchers, or a nixos module for autostart. |
ece2809
to
d92d5ea
Compare
d92d5ea
to
983051d
Compare
I've updated some of the python modules and added some tests, along with general cleanup in this latest change. I was wondering, is there a good way to combine the individual derivations for each component into one large Alternatively, maybe a NixOS module would be a good way to do it to, to allow for autostart? |
983051d
to
f1d2216
Compare
Module sound reasonable for that. Not sure if there's something additional that could be done. EDIT: tested it a little bit and it seems that some basic functionality works! Thank you for work on that. |
@noisersup I'll work on the systemd unit, lemme know if you find any bugs! I'm also using this on my daily driver machine, so far it's been pretty good but I don't use it super intensively either, so it's nice to have some more bug testers :) |
f1d2216
to
72d1330
Compare
72d1330
to
60d473e
Compare
60d473e
to
5c7d67c
Compare
FYI, in case it's relevant: I cannot seem to build
|
Ah, this should be due to 4329de1, I'll rebase on master then make a fix for it. Thanks for the catch! |
f86ddc0
to
dfc2a82
Compare
d2ddf94
to
a3ed8a7
Compare
I've decided that the I also think that this package is in a state that's ready to be merged. The two main features that I'd like to add would be NixOS module and running integration tests with NixOS test. However, neither are priority and I think it's fine if we add them later. PS is there anything I should do regarding the |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2137 |
@SuperSandro2000 thanks for the review! I've left some comments regarding tests and the symlink join. I haven't squashed the changes yet, hopefully that's fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if possible, but it would be nice to add Cargo.lock
as a patch. It's considered best practice for executables in rust to version control their lock file.
Please follow CONTRIBUTING.md and manual#submitting-changes-making-patches and squash the fix-up commits.
git rebase -i
is a powerful command which achieves this, I created a small video demonstrating it's use here. A more indepth text tutorial can be found here
Regarding the I'll go ahead and rebase, I wasn't sure if I should squash the fixes before they were approved or not, so I erred on the side of doing less. I'll just squash any changes immediately instead of pushing them in the future, thanks for the resources! |
c75d511
to
6ec91d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a pythonImportsCheck to all packages. I think the rest is looking good.
@SuperSandro2000 done! Let me know if there's anything I can do to get |
Awesome job, thanks @huantianad! ❤️ |
Been waiting a while for this. Thank you! ❤️ |
Description of changes
Resolves #97379, ActivityWatch/activitywatch#556.
PR still very WIP and looking for feedback!
Packages 3rd party python modules dependencies under
python3Packages
, as well asaw-core
andaw-client
as they're used for making custom watchers. Other parts of the application are packaged normally underall-packages.nix
TODO
Related issues
#59026
ActivityWatch/activitywatch#556
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes