Skip to content
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

feat: call get_font only once #117

Merged
merged 4 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
- id: check-renovate

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.275
rev: v0.0.277
hooks:
- id: ruff
args: [--fix]
Expand All @@ -47,8 +47,6 @@ repos:
rev: v1.4.1
hooks:
- id: mypy
additional_dependencies:
- types-requests

- repo: https://github.com/python-poetry/poetry
rev: 1.5.1
Expand Down
17 changes: 5 additions & 12 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Maintainer: DeadNews <aurczpbgr@mozmail.com>

pkgbase="python-images-upload-cli"
pkgname=("python-images-upload-cli")
_module="images_upload_cli"
_name="images_upload_cli"
pkgver=""
pkgrel=1
pkgdesc="Upload images via APIs"
Expand All @@ -14,22 +16,13 @@ depends=(
"python-pyperclip"
)
makedepends=(
"python-build"
"python-installer"
"python-poetry-core"
"python-poetry-dynamic-versioning"
)
license=("MIT")
arch=("any")
source=("https://files.pythonhosted.org/packages/source/${_module::1}/${_module}/${_module}-${pkgver}.tar.gz")
source=("https://files.pythonhosted.org/packages/py3/${_name::1}/${_name}/${_name}-$pkgver-py3-none-any.whl")
sha256sums=("")

build() {
cd "${srcdir}/${_module}-${pkgver}"
python -m build --wheel --no-isolation
}

package() {
cd "${srcdir}/${_module}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
python -m installer --destdir="${pkgdir}" "${_name}-$pkgver-py3-none-any.whl"
}
83 changes: 26 additions & 57 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ python-dotenv = "^1.0.0"
black = "^23.3.0"
mypy = "^1.4.1"
poethepoet = "^0.20.0"
ruff = "^0.0.275"
ruff = "^0.0.277"

[tool.poetry.group.test.dependencies]
pytest = "^7.4.0"
Expand Down
2 changes: 1 addition & 1 deletion src/images_upload_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"""Public accessible objects of that module."""

from images_upload_cli.upload import HOSTINGS, UPLOAD
from images_upload_cli.util import make_thumbnail
from images_upload_cli.util import get_default_font, get_font, make_thumbnail
Loading