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
ae78f5bd
Commit
ae78f5bd
authored
10 months ago
by
Antoine Martin
Committed by
omni
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
community/py3-django-rest-framework: enable tests
parent
b623d902
No related branches found
No related tags found
1 merge request
!65447
community/py3-django-rest-framework: enable tests
Pipeline
#232390
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
community/py3-django-rest-framework/APKBUILD
+25
-6
25 additions, 6 deletions
community/py3-django-rest-framework/APKBUILD
with
25 additions
and
6 deletions
community/py3-django-rest-framework/APKBUILD
+
25
−
6
View file @
ae78f5bd
...
...
@@ -4,15 +4,32 @@
pkgname
=
py3-django-rest-framework
_pkgname
=
django-rest-framework
pkgver
=
3.15.1
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"Web APIs for Django"
options
=
"!check"
# fails with "OperationalError: no such table: auth_user"
url
=
"https://github.com/encode/django-rest-framework"
arch
=
"noarch"
license
=
"Custom"
depends
=
"py3-django py3-tz"
makedepends
=
"py3-setuptools py3-gpep517 py3-wheel"
checkdepends
=
"py3-pytest py3-core-api py3-jinja2 py3-uritemplate"
depends
=
"
py3-django
py3-tz
"
makedepends
=
"
py3-setuptools
py3-gpep517
py3-wheel
"
checkdepends
=
"
py3-pytest-django
py3-pytest-cov
py3-core-api
py3-jinja2
py3-uritemplate
py3-django-guardian
py3-psycopg2
py3-markdown
py3-yaml
py3-inflection
"
subpackages
=
"
$pkgname
-pyc"
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/encode/
$_pkgname
/archive/
$pkgver
.tar.gz"
builddir
=
"
$srcdir
"
/
$_pkgname
-
$pkgver
...
...
@@ -26,7 +43,9 @@ build() {
check
()
{
python3
-m
venv
--clear
--without-pip
--system-site-packages
.testenv
.testenv/bin/python3
-m
installer
"
$builddir
"
/.dist/
*
.whl
.testenv/bin/python3 ./runtests.py
# test_urlpatterns: AssertionError: assert [<URLPattern ''>] is not [<URLPattern ''>]
# test_markdown: rather hard to decipher assertion error
.testenv/bin/python3
-m
pytest
-v
-k
'not test_urlpatterns and not test_markdown'
}
package
()
{
...
...
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