urllib3 is a powerful, sanity-friendly HTTP client for Python. Much of the
Python ecosystem already uses urllib3 and you should too. urllib3 brings many
critical features that are missing from the Python standard libraries:
- Thread safety.
- Connection pooling.
- Client-side SSL/TLS verification.
- File uploads with multipart encoding.
- Helpers for retrying requests and dealing with HTTP redirects.
- Support for gzip and deflate encoding.
- Proxy support for HTTP and SOCKS.
- 100% test coverage.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-urllib3 listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py312-urllib3-2.8.0,1:
BROTLI=off: Brotli compression support
H2=off: HTTP/2 protocol
SOCKS=on: SOCKS proxy support
ZSTD=off: Zstandard compression support
===> Use 'make config' to modify these settings
port moved here from net/py-urllib31 on 2026-02-10 REASON: Remove obsoleted port. Use net/py-urllib3 instead
port moved here from devel/py-types-urllib3 on 2025-10-18 REASON: Remove obsoleted port. The urllib3 package includes type annotations or type stubs since version 2.0.0. Use net/py-urllib3 instead
Number of commits found: 101 (showing only 100 on this page) #
*/*: Use C.UTF-8 locale
Ports 02f27a83b44d fixed the ports tree to the C locale so it would work
correctly in environments where users use a locale that isn't compatible
with the C locale, e.g. xx_YY.UTF-8 where [A-Z] includes more than just
upper case letters. USE_LOCALE was introduced to let ports use another
locale if they needed it. The C.UTF-8 locale was created later on to be
mostly compatible with the C locale.
Switch the ports tree locale to C.UTF-8 and remove USE_LOCALE. The
world has moved to Unicode so all ports either require it or know how to
build correctly in a Unicode environment.
PR: 295945
Exp-run by: antoine
net/py-urllib3: allow building with devel/py-setuptools-scm 9
Adjust upper bound to currently (as of this commit) nonexistent 10.
https://github.com/urllib3/urllib3/pull/3682
Reported by: John Hein
PR: 290354
devel/py-python-dateutil: Move devel/py-dateutil to devel/py-python-dateutil
- Convert to USE_PYTHON=pep517
- Bump PORTREVISION of dependent ports for dependency change
- While I'm here, update audio/py-pyradio to use PYTHON_PKGNAMEPREFIX instead of
PKGNAMEPREFIX for *_DEPENDS
*: Replace USES=pycryptography* with USE_PYTHON=cryptography{,_build,_test}
- Introduce USE_PYTHON=cryptography{,_build,_test}
- Switch all 96 ports from USES=pycryptography to with
USE_PYTHON=cryptography{,_build,_test}
- Remove Mk/Uses/pycryptography.mk
PR: 273727
Approved by: tcberner (portmgr)
Exp-run by: antoine
net/py-urllib3: disable SSL by default
The [secure] extra (provided by the SSL option) is deprecated:
https://github.com/urllib3/urllib3/issues/2680
...but the pyOpenSSL bit is un-deprecated:
https://github.com/urllib3/urllib3/issues/3126
Given that even pyOpenSSL is regarded as an optional third-party
module, disable by default. By side effect, reduces build load,
induced by mainline py-cryptography's required Rust code, for those
ports using sphinx to build documentation, as this is part of
sphinx's dependency tree.
net/py-urllib3: Fix SetuptoolsDeprecationWarning and _DeprecatedConfig
/usr/local/lib/python3.9/site-packages/setuptools/dist.py:745:
SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'provides-extra' will not be supported in future
versions. Please use the underscore name 'provides_extra' instead.
By 2023-Sep-26, you need to update your project and remove deprecated
calls
or your builds will no longer be supported.
See
https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for
details.
********************************************************************************
(Only the first 15 lines of the commit message are shown above )
framework: convert tree to use USES=pycryptography
A future commit will update to security/py-cryptography will introduce a
rust dependency.
PR: 254853
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
net/py-urllib3: Update to 1.25.6
* Convert the RUN_DEPENDS into separate OPTIONS as they are listed as extra
dependencies in setup.py. Also set those as default that contain the
previous RUN_DEPENDS to allow a clean transition.
* Remove the Python-specific version limitation for security/py-certifi
because it's required for all Python versions.
* Also remove the info about the broken IPv6 support of net/py-socks (was
broken in 1.5.7) and the relevant patch as both are obsolete.
* Update the TEST_DEPENDS and add a "do-test" target to make future QA easier.
Please note that a MFH won't be done as it didn't get an approval because
(Only the first 15 lines of the commit message are shown above )
Switch all pypi.python.org WWWs to a new PyPi home pypi.org where
they now redirect to anyway. All new urls checked to return 200,
I've fixed a couple of them in the process.
Approved by: portmgr blanket, mat
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
[NEW] net/py3-urllib3: Create Python 3.x version of port
The latest www/py-requests update [1] unbundled its dependencies, now
requiring chardet, idna, urllib3 and certifi from ports.
www/py3-requests port was not tested during QA, which would have highlighted
the need for many new py3-* ports (and their dependencies).
This change creates one of those ports.
[1] https://svnweb.freebsd.org/changeset/ports/442565
PR: 219833
Switch PYTHON_REL from a 3 digits number to a 4 digits number to handle
python 2.7.10
Differential Revision: https://reviews.freebsd.org/D2639
Reviewed by: sunpoet, mva
Convert my own Python ports to:
- STAGEDIR
- Replace USE_PYDISTUTILS= easy_install by USE_PYDISTUTILS= yes
While I'm here
- Use PYDISTUTILS_AUTOPLIST
- Adjust or add LICENSE