aboutsummaryrefslogtreecommitdiffstats
path: root/guix-env.scm
diff options
context:
space:
mode:
authorBen Sturmfels <ben@sturm.com.au>2020-04-28 15:51:41 +1000
committerBen Sturmfels <ben@sturm.com.au>2020-04-28 18:23:24 +1000
commit16fbe8524756013713365fc2a656833639c90ec2 (patch)
tree7f53eb421c557cdf9c02209cb38ab6e924e18d7a /guix-env.scm
parente3931333da96fc8f665acc9c8f1673b83c2b1f4b (diff)
downloadmediagoblin-16fbe8524756013713365fc2a656833639c90ec2.tar.lz
mediagoblin-16fbe8524756013713365fc2a656833639c90ec2.tar.xz
mediagoblin-16fbe8524756013713365fc2a656833639c90ec2.zip
Fix dependencies and tests for clean Python 2 & 3 test runs under Docker.
This change gives a clean test run in the Debian-based Python 2 and Python 3 docker images.
Diffstat (limited to 'guix-env.scm')
-rw-r--r--guix-env.scm13
1 files changed, 10 insertions, 3 deletions
diff --git a/guix-env.scm b/guix-env.scm
index 2ec9fff5..53ecf060 100644
--- a/guix-env.scm
+++ b/guix-env.scm
@@ -47,8 +47,10 @@
;;; ./configure --with-python3 --without-virtualenv
;;; make
;;; python3 -m venv --system-site-packages . && bin/python setup.py develop --no-deps
+;;; bin/python -m pip install --force-reinstall PasteScript # workaround
+;;; bin/python -m pip install 'werkzeug<1.0.0' # workaround
;;;
-;;; ... wait whaaat, what's that last line! I thought you said this
+;;; ... wait whaaat, what's that venv line?! I thought you said this
;;; was a reasonable virtualenv replacement! Well it is and it will
;;; be, but there's a catch, and the catch is that Guix doesn't know
;;; about this directory and "setup.py dist" is technically necessary
@@ -61,10 +63,13 @@
;;; ./devtools/update_extlib.sh
;;; bin/gmg dbupdate
;;; bin/gmg adduser --username admin --password a --email admin@example.com
-;;; ./lazyserver.sh
+;;; ./lazyserver.sh <-- won't work
+;;; CELERY_ALWAYS_EAGER=true ./bin/paster serve paste.ini --reload
;;;
;;; So anyway, now you can do:
;;; PYTHONPATH="${PYTHONPATH}:$(pwd)" ./runtests.sh
+;;; or:
+;;; bin/python -m pytest ./mediagoblin/tests --boxed
;;;
;;; Now notably this is goofier looking than running a virtualenv,
;;; but soon I'll do something truly evil (I hope) that will make
@@ -74,6 +79,8 @@
;;;
;;; Known issues:
;;; - currently fails to upload h264 source video: "GStreamer: missing H.264 decoder"
+;;
+;; TODO: Add PDF support.
(use-modules (ice-9 match)
(srfi srfi-1)
@@ -183,7 +190,7 @@
("python-docutils" ,python-docutils)
("python-sqlalchemy" ,python-sqlalchemy)
("python-unidecode" ,python-unidecode)
- ("python-werkzeug" ,python-werkzeug) ; Broken due to missing werkzeug.contrib.atom in 1.0.0.
+ ;; ("python-werkzeug" ,python-werkzeug) ; Broken due to missing werkzeug.contrib.atom in 1.0.0.
("python-exif-read" ,python-exif-read)
("python-wtforms" ,python-wtforms)))
(home-page "http://mediagoblin.org/")