launchpadlib not using tox for testing

Bug #1803399 reported by Sorin Sbarnea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpadlib
Fix Released
Undecided
Colin Watson

Bug Description

I was trying to test py3 support in launchpadlib locally but I faced a series of unexpected problems for a python based project:

* there was no tox.ini so no luck to perform a targeted tox -e py36 test
* i was not able to find where is the CI of the project, where are the build testing the library?
* i discovered the bootstrap.py file but there is no info on how to use it, clearly running it even with python2 fails ugly:

$ python2 bootstrap.py [16:15:48]
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
Traceback (most recent call last):
File "bootstrap.py", line 172, in <module>
ez['use_setuptools'](**setup_args)
File "<string>", line 103, in use_setuptools
File "<string>", line 97, in do_download
File "<string>", line 158, in download_setuptools
File "/Users/ssbarnea/.pyenv/versions/2.7.15/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/Users/ssbarnea/.pyenv/versions/2.7.15/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/Users/ssbarnea/.pyenv/versions/2.7.15/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/Users/ssbarnea/.pyenv/versions/2.7.15/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/Users/ssbarnea/.pyenv/versions/2.7.15/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/Users/ssbarnea/.pyenv/versions/2.7.15/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: SSL is required

$ python2 bootstrap.py -d [16:17:00]
Traceback (most recent call last):
File "bootstrap.py", line 166, in <module>
exec ez_code in ez
File "<string>", line 1
<html>
^
SyntaxError: invalid syntax
FAIL: 1

Revision history for this message
Colin Watson (cjwatson) wrote :

Fixed in launchpadlib 1.10.8:

1.10.8 (2019-11-26)
===================
- Squash a deprecation warning on Python >= 3.7 in
  launchpadlib.testing.launchpad.
- Switch from buildout to tox.
- Weaken hosted-files test slightly to avoid problems with zope.publisher >=
  4.2.2.

Changed in launchpadlib:
assignee: nobody → Colin Watson (cjwatson)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.