Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
d9f7f53d
Commit
d9f7f53d
authored
7 months ago
by
Patrycja Rosa
Browse files
Options
Downloads
Patches
Plain Diff
testing/py3-translationstring: build with gpep517
parent
d78e5a29
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testing/py3-translationstring/APKBUILD
+10
-5
10 additions, 5 deletions
testing/py3-translationstring/APKBUILD
with
10 additions
and
5 deletions
testing/py3-translationstring/APKBUILD
+
10
−
5
View file @
d9f7f53d
...
...
@@ -3,13 +3,13 @@
pkgname
=
py3-translationstring
_pkgname
=
translationstring
pkgver
=
1.4
pkgrel
=
3
pkgrel
=
4
pkgdesc
=
"A Python utility library for i18n"
url
=
"https://pypi.org/project/translationstring/"
# actual homepage doesn't exist anymore
arch
=
"noarch"
license
=
"ZPL-2.1"
depends
=
"python3"
makedepends
=
"py3-setuptools"
makedepends
=
"py3-setuptools
py3-gpep517
"
subpackages
=
"
$pkgname
-pyc"
source
=
"https://files.pythonhosted.org/packages/source/
${
_pkgname
:0:1
}
/
$_pkgname
/
$_pkgname
-
$pkgver
.tar.gz"
builddir
=
"
$srcdir
"
/
$_pkgname
-
$pkgver
...
...
@@ -18,15 +18,20 @@ replaces="py-translationstring" # Backwards compatibility
provides
=
"py-translationstring=
$pkgver
-r
$pkgrel
"
# Backwards compatibility
build
()
{
python3 setup.py build
gpep517 build-wheel
\
--wheel-dir
.dist
\
--output-fd
3 3>&1
>
&2
}
check
()
{
python3 setup.py
test
python3
-m
venv
--clear
--without-pip
--system-site-packages
.testenv
gpep517 install-wheel
--destdir
.testenv
--prefix
''
.dist/
*
.whl
.testenv/bin/python3
-m
unittest discover
}
package
()
{
python3 setup.py
install
--skip-build
--root
=
"
$pkgdir
"
gpep517 install-wheel
--destdir
"
$pkgdir
"
\
.dist/
*
.whl
# Reduce size by removing installed-tests
rm
-rf
"
$pkgdir
"
/usr/lib/python3
*
/site-packages/translationstring/tests
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment