summarylogtreecommitdiffstats
path: root/print-version.sh
diff options
context:
space:
mode:
authorJeremy Audet2015-07-10 08:12:05 -0400
committerJeremy Audet2015-07-10 08:14:01 -0400
commit12bd49656d8727d2cb3949db335f9df7ae336432 (patch)
tree469564c037152ff60077a11e8f78594921ca291b /print-version.sh
parent60291bef611498e762960588dfd94b7357d6edb6 (diff)
downloadaur-12bd49656d8727d2cb3949db335f9df7ae336432.tar.gz
Change to a split package
Make the single python-django-tables2 package produce the following packages: * python-django-tables2 * python2-django-tables2 Rework the script used for checking the current Python and django-tables2 versions. Change it from a Python script to a shell script that checks both packages at once.
Diffstat (limited to 'print-version.sh')
-rwxr-xr-xprint-version.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/print-version.sh b/print-version.sh
new file mode 100755
index 000000000000..336535f136ef
--- /dev/null
+++ b/print-version.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env sh
+#
+# Print the currently installed django-tables2 versions.
+#
+
+for interpreter in python python2; do
+"${interpreter}" - <<EOF
+import django_tables2
+import sys
+print('Python version: {}'.format(tuple(sys.version_info)))
+print('django-extensions version: {}'.format(django_tables2.__version__))
+EOF
+done