Source: black
Version: 18.9b0-1-5
Severity: serious
Tags: patch

Dear Maintainer,

I tried to build the package locally in pbuilder,
but it fails to build from source with the following error message:
running test
Searching for toml>=0.9.4

Note: Bypassing https://pypi.org/simple/toml/ (disallowed host; see http://bit.ly/2hrImnY for details).

Couldn't find index page for 'toml' (maybe misspelled?)
Scanning index of all packages (this may take a while)

Note: Bypassing https://pypi.org/simple/ (disallowed host; see http://bit.ly/2hrImnY for details).

No local packages or working download links found for toml>=0.9.4
error: Could not find suitable distribution for Requirement.parse('toml>=0.9.4') E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: python3.7 setup.py test


It fails since it attempts to download additional dependencies from the Internet. I originally saw this when it failed to build when it was synced to Ubuntu [1][2],
but was also able to reproduce it on Sid.

With the attached patch, gradually adding additional build dependencies,
it eventually built successfully.

[1] https://launchpad.net/ubuntu/+source/black/18.9b0-1-5/+build/15638431 [2] https://launchpadlibrarian.net/397800009/buildlog_ubuntu-disco-amd64.black_18.9b0-1-5_BUILDING.txt.gz

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

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

--
mvh / best regards
Hans Joachim Desserud
http://desserud.org
diff --git a/debian/control b/debian/control
index 4bca183..bcd8447 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,8 @@ Maintainer: Neil Williams <codeh...@debian.org>
 Build-Depends: debhelper (>= 11), dh-python,
  python3, python3-recommonmark, python3-setuptools,
  python3-sphinx, python3-docutils,
- libjs-underscore, libjs-jquery
+ libjs-underscore, libjs-jquery,
+ python3-appdirs, python3-attr, python3-click, python3-toml
 Standards-Version: 4.2.1
 Homepage: https://github.com/ambv/black
 X-Python3-Version: >= 3.6

Reply via email to