Bug#902869: cookiecutter binary: Should depend on python-cookiecutter | python3-cookiecutter

2018-07-04 Thread Vincent Bernat
 ❦  2 juillet 2018 16:36 +0100, Joel Cross  :

> Thanks for building a Python 3 version of this package. However, when
> attempting to install the cookiecutter binary, I noticed it still depends on
> the Python 2 library.
> If memory serves correctly, it is possible to change the 'Depends' line to
> support either Python 2 or Python 3 version of the package, by changing the
> following:
>
> Depends: ... python-cookiecutter (= version) ...
>
> to this:
>
> Depends: ... python-cookiecutter (= version) | python3-cookiecutter (= 
> version)
> ...

The cookiecutter script is using /usr/bin/python2, so it wouldn't work
if only python3-cookiecutter was installed. However, I will switch to
python 3 instead of python 2 for this package.
-- 
Don't diddle code to make it faster - find a better algorithm.
- The Elements of Programming Style (Kernighan & Plauger)


signature.asc
Description: PGP signature


Bug#902869: cookiecutter binary: Should depend on python-cookiecutter | python3-cookiecutter

2018-07-02 Thread Joel Cross
Source: cookiecutter
Severity: normal

Dear Maintainer,

Thanks for building a Python 3 version of this package. However, when
attempting to install the cookiecutter binary, I noticed it still depends on
the Python 2 library.
If memory serves correctly, it is possible to change the 'Depends' line to
support either Python 2 or Python 3 version of the package, by changing the
following:

Depends: ... python-cookiecutter (= version) ...

to this:

Depends: ... python-cookiecutter (= version) | python3-cookiecutter (= version)
...



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), 
LANGUAGE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled