Skip to content

Commit

Permalink
python-owega: rebuild
Browse files Browse the repository at this point in the history
- Use PEP 517 compliant method

Signed-off-by: Roald Clark <[email protected]>
  • Loading branch information
roaldclark committed Feb 10, 2025
1 parent 519cfb0 commit 7c53fa3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
32 changes: 17 additions & 15 deletions archlinuxcn/python-owega/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Maintainer: darkgeem <darkgeem at pyrokinesis dot fr>
# Maintainer: Roald Clark <roaldclark at gmail dot com>
# Contributor: darkgeem <darkgeem at pyrokinesis dot fr>

_name=owega
pkgname="python-$_name"
pkgname="python-${_name}"
pkgver=5.20.1
pkgrel=1
pkgdesc="TUI / CLI interface for conversing with GPT models (from OpenAI and +)"
arch=('any')
url="https://pypi.org/project/owega/"
license=('custom:DGPL-1.0')
license=('LicenseRef-DGPL-1.0')
depends=(
'python'
'python-beautifulsoup4'
Expand All @@ -17,28 +18,29 @@ depends=(
'python-openai'
'python-prompt_toolkit'
'python-requests'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
makedepends=('python-setuptools')
optdepends=(
'python-rich: fancy output print for TUI'
'python-pygame: for TTS audio output'
'python-markdownify: for better webpage handling (get_page function)'
'python-pygame: for TTS audio output'
'python-rich: fancy output print for TUI'
'python-tiktoken: better token estimation'
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
b2sums=('9ad6cf5e92668e8767b3acdc6a35f03a078a96210aef326f4766bcf4a540701f06a6849201d13d65df97b4e2edb7c206ff9d95770f4cef2631f531476ee2a4e7')

build() {
cd "$srcdir/$_name-$pkgver"
export PYTHONDONTWRITEBYTECODE=
export PYTHONPYCACHEPREFIX=
python setup.py build
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}

package() {
cd "$srcdir/$_name-$pkgver"
export PYTHONDONTWRITEBYTECODE=
export PYTHONPYCACHEPREFIX=
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
cd "${srcdir}/${_name}-${pkgver}"
install -Dm0644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
13 changes: 7 additions & 6 deletions archlinuxcn/python-owega/lilac.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
build_prefix: extra-x86_64
pre_build_script: aur_pre_build(maintainers=['darkgeem'])
post_build: aur_post_build
repo_depends:
- python-markdownify
pre_build_script: update_pkgver_and_pkgrel(_G.newver)
post_build: git_pkgbuild_commit
update_on:
- source: aur
aur: python-owega
- source: pypi
pypi: owega
- alias: python
- source: manual
manual: 1

maintainers:
- github: roaldclark

0 comments on commit 7c53fa3

Please sign in to comment.