Skip to content

Commit a38a20f

Browse files
Add support for hyprshot and use uv instead of poetry (#4)
1 parent 5532607 commit a38a20f

7 files changed

Lines changed: 467 additions & 505 deletions

File tree

.github/workflows/pythonpackage.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v3
16-
- name: Change version in pyproject.toml
17-
run: |
18-
REF=$(echo ${{ github.ref }} | sed "s#\(refs/tags/\)\?v\?##")
19-
sed -i "s/^version = \".\+\"/version = \"$REF\"/" pyproject.toml
20-
- name: Build and publish to pypi
21-
uses: JRubics/poetry-publish@v1.17
22-
with:
23-
pypi_token: ${{ secrets.PYPI_TOKEN }}
24-
build_format: wheel
15+
- uses: actions/checkout@v4
16+
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v5
19+
20+
- name: Build wheel
21+
run: uv build --wheel
22+
23+
- name: Publish to pypi
24+
run: uv publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}
25+
2526
- name: Publish aur
2627
uses: pyazo-screenshot/docker_action@v1
2728
with:

poetry.lock

Lines changed: 0 additions & 247 deletions
This file was deleted.

pyazo_cli/__init__.py

Whitespace-only changes.

pyazo_cli/pyazo.py

Lines changed: 0 additions & 230 deletions
This file was deleted.

pyproject.toml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
1-
[tool.poetry]
1+
[project]
22
name = "pyazo_cli"
3-
version = "0.2.0"
3+
version = "0.4.0"
44
description = ""
5-
authors = ["Jelena Dokic <jrubics@hacke.rs>"]
5+
authors = [
6+
{name = "Jelena Dokic", email = "jrubics@hacke.rs"},
7+
{name = "TheEdgeOfRage", email = "git@theedgeofrage.com"},
8+
]
69
readme = "README.md"
710
license = "BSD-3-Clause"
8-
homepage = "https://github.com/pyazo-screenshot/cli"
911
classifiers = [
1012
"Development Status :: 5 - Production/Stable",
1113
"Environment :: Console",
12-
"License :: OSI Approved :: BSD License",
1314
"Operating System :: OS Independent",
14-
"Programming Language :: Python :: 3.7",
15+
"Programming Language :: Python :: 3.9",
16+
]
17+
requires-python = ">=3.9"
18+
dependencies = [
19+
"click>=8.1.8",
20+
"pyclip>=0.7.0",
21+
"requests>=2.32.4",
1522
]
1623

17-
[tool.poetry.dependencies]
18-
python = "^3.7"
19-
requests = "^2.31.0"
20-
pyperclip = "^1.8.0"
21-
click = "^8.0.0"
22-
23-
[tool.poetry.dev-dependencies]
24+
[project.scripts]
25+
pyazo = "pyazo_cli:main"
2426

25-
[build-system]
26-
requires = ["poetry>=1.7.1"]
27-
build-backend = "poetry.masonry.api"
27+
[tool.uv]
28+
package = true
2829

29-
[tool.poetry.scripts]
30-
pyazo = 'pyazo_cli.pyazo:main'
30+
[tool.pyright]
31+
reportUnusedCallResult = false
32+
reportMissingTypeStubs = false

0 commit comments

Comments
 (0)