alfred-uv 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
alfred_uv-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: alfred-uv
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Simple tool for working with python alfred workflows and uv
|
|
5
|
+
Author: Paul Traylor
|
|
6
|
+
Author-email: Paul Traylor <kungfudiscomonkey@gmail.com>
|
|
7
|
+
Classifier: Development Status :: 3 - Alpha
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
11
|
+
Requires-Dist: click>=8.4.2
|
|
12
|
+
Requires-Python: >=3.13
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# alfred-uv - Simple tool for working with python alfred workflows and uv
|
|
16
|
+
|
|
17
|
+
```shell
|
|
18
|
+
uvx alfred-uv open - # Open current directories workflow in Alfred page
|
|
19
|
+
```
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "alfred-uv"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Simple tool for working with python alfred workflows and uv"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [
|
|
7
|
+
{ name = "Paul Traylor", email = "kungfudiscomonkey@gmail.com" },
|
|
8
|
+
]
|
|
9
|
+
requires-python = ">=3.13"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"click>=8.4.2",
|
|
12
|
+
]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Development Status :: 3 - Alpha",
|
|
15
|
+
"Programming Language :: Python :: 3.13",
|
|
16
|
+
"Programming Language :: Python :: 3.14",
|
|
17
|
+
"Programming Language :: Python :: 3.15",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.scripts]
|
|
21
|
+
alfred-uv = "alfred_uv:main"
|
|
22
|
+
|
|
23
|
+
[build-system]
|
|
24
|
+
build-backend = "uv_build"
|
|
25
|
+
|
|
26
|
+
requires = ["uv_build>=0.11.31,<0.12.0"]
|
|
27
|
+
[dependency-groups]
|
|
28
|
+
dev = [
|
|
29
|
+
"repo-review-classifiers>=0.1.0",
|
|
30
|
+
"repo-review-endoflife>=0.2.0",
|
|
31
|
+
"repo-review-just>=0.2.0",
|
|
32
|
+
"repo-review-readme>=0.1.1",
|
|
33
|
+
"repo-review[cli]",
|
|
34
|
+
"validate-pyproject",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[tool.ruff]
|
|
38
|
+
line-length = 100
|
|
39
|
+
|
|
40
|
+
[tool.ruff.lint] # https://beta.ruff.rs/docs/rules/
|
|
41
|
+
select = [
|
|
42
|
+
"C", # Complexity
|
|
43
|
+
"E", # pycodestyle
|
|
44
|
+
"F", # Unused imports
|
|
45
|
+
"I", # isort
|
|
46
|
+
"PGH004", # Use specific rule codes when using noqa
|
|
47
|
+
"PLC0414", # Useless import alias. Import alias does not rename original package.
|
|
48
|
+
"S103", # bad-file-permissions
|
|
49
|
+
"TRY004", # Prefer TypeError exception for invalid type
|
|
50
|
+
"UP", # pyupgrade
|
|
51
|
+
"W", # pycodestyle
|
|
52
|
+
]
|
|
53
|
+
ignore = [
|
|
54
|
+
"E501", # Don't enforce line length for now
|
|
55
|
+
"E741", # Ambiguous variable name
|
|
56
|
+
]
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import plistlib
|
|
2
|
+
import webbrowser
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
import click
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@click.command()
|
|
9
|
+
def open():
|
|
10
|
+
"""Open workflow in Alfred for viewing"""
|
|
11
|
+
with Path("info.plist").open("rb") as fp:
|
|
12
|
+
plist = plistlib.load(fp)
|
|
13
|
+
bundleid = plist["bundleid"]
|
|
14
|
+
webbrowser.open(f"alfredpreferences://navigateto/workflows>workflow>{bundleid}")
|