Skip to content

Commit 876690a

Browse files
committed
Merge branch 'release/1.20191126-rev1'
2 parents eac2a37 + fec766e commit 876690a

File tree

8 files changed

+26
-8
lines changed

8 files changed

+26
-8
lines changed

admin/docker/Dockerfile.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ RUN apt update && \
2525
libgmp-dev \
2626
libgmp10 \
2727
libgmpxx4ldbl \
28+
python3 \
29+
python3-pytest \
30+
python3-setuptools \
31+
python3-yaml \
2832
python \
2933
python-pytest \
3034
python-setuptools \

admin/docker/Dockerfile.minimal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ RUN apt update && \
2424
python-pkg-resources \
2525
python-plastex \
2626
python-yaml \
27+
python3-minimal \
28+
python3-yaml \
2729
texlive-fonts-recommended \
2830
texlive-generic-recommended \
2931
texlive-lang-cyrillic \

debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
kattis-problemtools (1.20191126-rev1) bionic; urgency=medium
2+
3+
* fixes to packaging and Docker images for Python 3
4+
* various fixes to packaging after py3 was added
5+
6+
-- Per Austrin <austrin@kattis.com> Tue, 26 Nov 2019 23:39:08 +0100
7+
18
kattis-problemtools (1.20191126) bionic; urgency=medium
29

310
[ Per Austrin ]

debian/control

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ Source: kattis-problemtools
22
Section: devel
33
Priority: optional
44
Maintainer: Per Austrin <austrin@kattis.com>
5-
Build-Depends: debhelper (>= 8.0.0), g++ (>= 4.8), dh-python, python (>= 2.6.6-3~), python3 (>=3.7), python-setuptools, python-pytest, python-yaml, libboost-regex-dev, libgmp-dev, automake, autoconf
5+
Build-Depends: debhelper (>= 8.0.0), g++ (>= 4.8), dh-python, python3, python3-setuptools, python3-pytest, python3-yaml, python (>= 2.6.6-3~), python-setuptools, python-pytest, python-yaml, libboost-regex-dev, libgmp-dev, automake, autoconf
66
Standards-Version: 3.9.4
77
Homepage: https://github.com/Kattis/problemtools
8-
X-Python3-Version: 3.7
98

109
Package: kattis-problemtools
1110
Architecture: any

debian/rules

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,12 @@ export PYBUILD_AFTER_CLEAN=make -C support distclean
1111
export PYBUILD_TEST_PYTEST=1
1212
export no_proxy=github.com
1313

14+
# FIXME: while we're building for both py2 and py3, we get a clash
15+
# with the CLI scripts. The following Workaround puts the py3 CLI
16+
# scripts somewhere else where they don't do any harm, so that the
17+
# main CLI scripts are the py2 ones for now. Once we drop py2 support
18+
# we also drop this line.
19+
export PYBUILD_INSTALL_ARGS_python3=--install-scripts=/usr/lib/problemtools/bin/
20+
1421
%:
15-
dh $@ --with python2,python3 --buildsystem=pybuild
22+
dh $@ --with python3,python2 --buildsystem=pybuild

problemtools/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Auto-generated from git changelog, do not edit!
2-
__version__ = '1.20191126'
2+
__version__ = '1.20191126-rev1'

problemtools/languages.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import fnmatch
66
import re
77
import string
8-
from six import string_types
98

109
from . import config
1110

@@ -80,7 +79,7 @@ def update(self, values):
8079
'Language %s: priority must be integer but is %s.'
8180
% (self.lang_id, type(value)))
8281
else:
83-
if not isinstance(value, string_types):
82+
if not isinstance(value, str):
8483
raise LanguageConfigError(
8584
'Language %s: %s must be string but is %s.'
8685
% (self.lang_id, key, type(value)))
@@ -213,7 +212,7 @@ def update(self, data):
213212
% (type(data)))
214213

215214
for (lang_id, lang_spec) in data.items():
216-
if not isinstance(lang_id, string_types):
215+
if not isinstance(lang_id, str):
217216
raise LanguageConfigError(
218217
'Config file error: language IDs must be strings, but %s is %s.'
219218
% (lang_id, type(lang_id)))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_version():
8181
include_package_data=True,
8282
install_requires=[
8383
'PyYAML',
84-
'plasTeX==1.0;python_version<"3"',
84+
'plasTeX<=1.0;python_version<"3"',
8585
'plasTeX>=2.0;python_version>="3"'
8686
],
8787
# Temporarily disabled, see setup.cfg

0 commit comments

Comments
 (0)