Package Details: python2-urllib3 1.26.15-1

Git Clone URL: https://aur.archlinux.org/python2-urllib3.git (read-only, click to copy)
Package Base: python2-urllib3
Description: HTTP library with thread-safe connection pooling and file post support
Upstream URL: https://pypi.org/project/urllib3/1.26.15
Licenses: MIT
Submitter: MarsSeed
Maintainer: None
Last Packager: truocolo
Votes: 4
Popularity: 0.015154
First Submitted: 2022-06-12 22:15 (UTC)
Last Updated: 2024-02-02 16:26 (UTC)

Dependencies (14)

Sources (1)

Pinned Comments

tallero commented on 2024-01-29 07:04 (UTC) (edited on 2024-01-29 07:05 (UTC) by tallero)

Am I the only person thinking a package submitter (cough cough) saying 'I have an update, give me ownership to receive it' to its current, active maintainer instead of simply posting/sending it is kinda hostile?

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

MarsSeed commented on 2022-07-02 14:27 (UTC) (edited on 2022-07-02 15:24 (UTC) by MarsSeed)

At this point I'm just gonna ask you: if you build it with --nocheck and install it, does it work? E.g., can you use python2-pip with it properly?

I thought I'd fixed (disabled) that last test but I've just realized I was too tired for that.

I'm quite out of my league now because I cannot reproduce any of the errors.

I am also baffled about why don't the @onlyPy3 tests get skipped on your machine.

sng commented on 2022-07-02 13:15 (UTC)

Just tried python2-urllib3 1.26.9-10 after uninstalling python2-pytest-expect

TestHTTPSProxyVerification::test_https_proxy_ipv6_san ERROR

MarsSeed commented on 2022-07-02 09:54 (UTC)

Anyhow, you can run yay with a parameter that disables check:

yay --devel -Sy --mflags='--nocheck' python2-urllib3

Be aware that this is recursive: if downstream dependencies need to be built or updated during this run, then they will also be built without testing.

Though of course using this option only applies to that specific yay execution, so it won't be saved permanently. You can use this option on a case-by-case basis.

The important thing anyway is for the installed package to actually work when used by the application that needs it. :) Not that it should pass every test even if there is no defect during normal use.

MarsSeed commented on 2022-07-02 09:28 (UTC)

Could you please uninstall python2-pytest-expect and try the failing builds again?

MarsSeed commented on 2022-07-02 09:23 (UTC)

You mean during a rebuild / new build of python2-freezegun?

Could you please share that build log as well?

politas commented on 2022-07-02 09:20 (UTC)

I'm getting that same error on python2-freezegun, now: IndexError: list index out of range ==> ERROR: A failure occurred in check().

MarsSeed commented on 2022-07-02 09:12 (UTC)

This is what happens with that test for me:

test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPSProxyVerification::test_https_proxy_ipv6_san SKIPPED [ 96%]

MarsSeed commented on 2022-07-02 09:08 (UTC)

In this last build report (full log), the failing test shouldn't even have been executed.

Because TestHTTPSProxyVerification.test_https_proxy_ipv6_san is annotated with an @onlyPy3 mark, so it should have been skipped automatically. (For me it happens like that.)

==================================== ERRORS ====================================
____ ERROR at setup of TestHTTPSProxyVerification.test_https_proxy_ipv6_san ____

tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f7982f12510>, _basetemp=PosixPath('/tmp/pytest-of-spiros/pytest-7'))

    @pytest.fixture
    def ipv6_san_proxy(tmp_path_factory):
        tmpdir = tmp_path_factory.mktemp("certs")
        ca = trustme.CA()
        # IP addresses in Subject Alternative Name
        proxy_cert = ca.issue_cert(u"::1")

        server_cert = ca.issue_cert(u"localhost")

        with run_server_and_proxy_in_thread(
>           "https", "::1", tmpdir, ca, proxy_cert, server_cert
        ) as cfg:

test/conftest.py:166: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python2.7/contextlib.py:17: in __enter__
    return self.gen.next()
test/conftest.py:79: in run_server_and_proxy_in_thread
    proxy, io_loop, proxy_certs, proxy_scheme, proxy_host
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

app = <tornado.web.Application object at 0x7f7981730a10>
io_loop = <tornado.platform.epoll.EPollIOLoop object at 0x7f7982a84390>
certs = {'certfile': '/tmp/pytest-of-spiros/pytest-7/certs9/proxy.pem', 'keyfile': '/tmp/pytest-of-spiros/pytest-7/certs9/proxy.key'}
scheme = 'https', host = '::1'

    def run_tornado_app(app, io_loop, certs, scheme, host):
        assert io_loop == tornado.ioloop.IOLoop.current()

        # We can't use fromtimestamp(0) because of CPython issue 29097, so we'll
        # just construct the datetime object directly.
        app.last_req = datetime(1970, 1, 1)

        if scheme == "https":
            if sys.version_info < (2, 7, 9):
                ssl_opts = certs
            else:
                ssl_opts = ssl_options_to_context(**certs)
            http_server = tornado.httpserver.HTTPServer(app, ssl_options=ssl_opts)
        else:
            http_server = tornado.httpserver.HTTPServer(app)

        sockets = tornado.netutil.bind_sockets(None, address=host)
>       port = sockets[0].getsockname()[1]
E       IndexError: list index out of range

dummyserver/server.py:187: IndexError

sng commented on 2022-07-02 08:37 (UTC)

I do not know... it does not build...

Anyhow, I thank you so very much for your time and willingness to help resolve these issues I have!

I have just installed it from PKGBUILD, after disabling all the tests; whatever works... I will just have to remember to do it every time you update the package

Thank you again!

sng commented on 2022-07-02 08:06 (UTC) (edited on 2022-07-02 08:10 (UTC) by sng)

===End Flaky Test Report===
= 1594 passed, 293 skipped, 55 deselected, 146 warnings, 1 error in 45.48 seconds =

https://controlc.com/f90a9c73

$ pactree -r python2-urllib3
python2-urllib3
└─python2-requests
  ├─python2-cachecontrol
  │ └─python2-pip
  └─python2-pip

Basically I use it beacause of python2-requests, in this project of mine, which still supports python2, https://aur.archlinux.org/packages/pyradio-git

I mean, I can test its python2 functionality on a debian vm, or something...