Re: MBF for deprecating Python2 usage

2017-08-10 Thread Geoffrey Thomas
sufficient to check isatty(0) and the shebang line if one exists, call libpython3's Py_Main if that seems reasonable, print a warning and attempt to exec python2 otherwise, and print an error message about how to install python2 if the exec fails. -- Geoffrey Thomas https://ldpreload.com geo...@ldpreload.com

Re: MBF for deprecating Python2 usage

2017-08-07 Thread Geoffrey Thomas
one more stable release. The only question is whether it should break by giving you an error message (either ENOENT or something printed on stderr), or break by trying to run the code as Python 3. -- Geoffrey Thomas https://ldpreload.com geo...@ldpreload.com

Re: MBF for deprecating Python2 usage

2017-08-07 Thread Geoffrey Thomas
ust want my best migration path from #!/usr/bin/python to not involve rewriting my scripts in Go. -- Geoffrey Thomas https://ldpreload.com geo...@ldpreload.com

Re: Packaging (and RFS) for pymssql 2.1.1+dfsg-1

2017-05-24 Thread Geoffrey Thomas
le to test against SQL Server for Linux, because apparently we live in a world where Microsoft hosts an apt server and builds Debian packages with systemd unit files.) Thanks for all your past work on the package! -- Geoffrey Thomas https://ldpreload.com geo...@ldpreload.com

Bug#863287: unblock: pymssql/2.1.3+dfsg-1

2017-05-24 Thread Geoffrey Thomas
ackages/pymssql.git but here's the changelog entry: pymssql (2.1.3+dfsg-1) unstable; urgency=medium * Team upload. [ Ondřej Nový ] * Fixed VCS URL (https) [ Geoffrey Thomas ] * New upstream release (Closes: #648230), with DFSG repack to avoid embedded freetds binaries.

Re: Is pristine-tar failing just for me?

2016-03-09 Thread Geoffrey Thomas
zip --rsyncable, and pristine-tar not knowing how to handle that. Probably it's the same thing; you can try by manually un-gzipping and redoing with regular gzip. -- Geoffrey Thomas https://ldpreload.com geo...@ldpreload.com

RFS: premailer 2.9.7-1

2016-01-27 Thread Geoffrey Thomas
what it does / how to test it: >>> import premailer >>> print premailer.transform("b {color: red;} hello >>> world") hello world -- Geoffrey Thomas geo...@hudson-trading.com

Re: /usr/bin/python in Python 2 and 3

2015-05-02 Thread Geoffrey Thomas
about that, too, but I don't think that's worse than people switching to `#!/usr/bin/python3` without exhaustive testing, which is certainly going to happen occasionally (since not everyone has tests with 100% code coverage). -- Geoffrey Thomas https://ldpreload.com geo...@ldpre

Re: /usr/bin/python in Python 2 and 3

2015-05-01 Thread Geoffrey Thomas
n other places. I wonder if dh_python3 could at some point parse the magic line to assist in dependency generation. That would be useful! I do think there's value in having the metadata of Python minor version compatibility, even in a world where major version isn't a pro

Re: /usr/bin/python in Python 2 and 3

2015-04-21 Thread Geoffrey Thomas
Python interpreter of any major version, but all other use always launches the latest Python 2 interpreter, or prints an error message. -- Geoffrey Thomas https://ldpreload.com geo...@ldpreload.com -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscri

/usr/bin/python in Python 2 and 3

2015-04-17 Thread Geoffrey Thomas
shed the details once the idea itself is a draft PEP.) -- Geoffrey Thomas https://ldpreload.com geo...@ldpreload.com -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.deb

Re: PyCon BoF: Stretch goals for cPython, PyPy & CFFI

2015-04-14 Thread Geoffrey Thomas
ts input is "# py23" (or /^# *py23$/, or something). If so, it execs Python 3; if not, and if it can't find Python 2, it prints a useful error to stderr and exits. (For interactive use, it could print a warning and run Python 3, or silently exec Python 3, or something.) -- Geo

Re: PyCon BoF: Stretch goals for cPython, PyPy & CFFI

2015-04-13 Thread Geoffrey Thomas
nging the relevant open-stack managed packages into the team * Possible /usr/bin/python launcher I'll be there, all of those sound fun to work on. -- Geoffrey Thomas https://ldpreload.com geo...@ldpreload.com -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a

Re: Joining DPMT / PAPT

2013-05-26 Thread Geoffrey Thomas
ignore errors from "rm -rf build". "-f" takes care of ENOENT and you failures certainly should not go unnoticed. Oh, good to know. I'd always seen people ignoring errors from rm in Makefile clean targets, but your reasoning makes sense. -- Geoffrey Thomas http://

Joining DPMT / PAPT

2013-05-24 Thread Geoffrey Thomas
python-ipaddr packaging), I'd definitely appreciate them: https://ldpreload.com/p/pygithub_1.14.2-1.dsc Thanks, -- Geoffrey Thomas http://ldpreload.com geo...@ldpreload.com -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble