-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
516 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Development | ||
|
||
### Basic Environment | ||
|
||
- Development is run through Poetry | ||
|
||
1. `git clone https://github.com/ddkasa/ulauncher-toggl-extension` | ||
2. `cd toggl-api-wrapper` | ||
3. `$ poetry shell` | ||
4. `$ poetry install` | ||
|
||
- Lint with `ruff ulauncher_toggl_extension` | ||
- Check typing with `mypy ulauncher_toggl_extension` | ||
- Make sure to install pre-commit hook with `pre-commit install` | ||
|
||
- In order to debug/test the extension inside Ulauncher: | ||
|
||
1. Move extension into this folder: | ||
|
||
``` | ||
~/.local/share/ulauncher/extensions/ | ||
``` | ||
|
||
2. Run: | ||
|
||
```bash | ||
VERBOSE=1 ULAUNCHER_WS_API=ws://127.0.0.1:5054/ulauncher-toggl-extension PYTHONPATH=/usr/lib/python3.12/site-packages /usr/bin/python3 /home/dk/.local/share/ulauncher/extensions/ulauncher-toggl-extension/main.py | ||
``` | ||
|
||
### Testing | ||
|
||
- All tests are run through `pytest` | ||
- Basic unit tests through `pytest -m unit` | ||
- Integration tests through `pytest -m integration` | ||
- For multiple python versions run: `tox` | ||
|
||
### Deployment | ||
|
||
- Merge with **production** branch | ||
- Make sure to add new development files to the _.gitattributes_ file | ||
|
||
### Git | ||
|
||
- Commit messages are based on [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) | ||
|
||
### Notes | ||
|
||
- More information on extension development [here](https://docs.ulauncher.io/en/stable/extensions/intro.html) | ||
- Additional system dependencies may need to be installed. | ||
- If on Fedora [this](https://gitlab.gnome.org/alicem/jhbuild-steps/-/wikis/JHBuild-on-Fedora) might be required |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
[tool.poetry] | ||
name = "ulauncher-toggl-extension" | ||
version = "2.4.0" | ||
version = "2.4.1" | ||
description = "Toggl time tracker extension for Ulauncher." | ||
authors = ["David Kasakaitis <[email protected]>"] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
toggl-api-wrapper = "^0.3.0" | ||
pycairo = "^1.26.1" | ||
pygobject = "^3.48.2" | ||
toggl-api-wrapper = "^1.0.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "^7.4.4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "2.4.0" | ||
__version__ = "2.4.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.