Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Metadata-Version: 2.2
Name: certifi
Version: 2023.11.17
Version: 2025.1.31
Summary: Python package for providing Mozilla's CA Bundle.
Home-page: https://github.com/certifi/python-certifi
Author: Kenneth Reitz
Expand All @@ -20,8 +20,19 @@ Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.6
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: license
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

Certifi: Python SSL Certificates
================================
Expand Down
15 changes: 13 additions & 2 deletions certifi.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Metadata-Version: 2.2
Name: certifi
Version: 2023.11.17
Version: 2025.1.31
Summary: Python package for providing Mozilla's CA Bundle.
Home-page: https://github.com/certifi/python-certifi
Author: Kenneth Reitz
Expand All @@ -20,8 +20,19 @@ Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.6
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: license
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

Certifi: Python SSL Certificates
================================
Expand Down
2 changes: 1 addition & 1 deletion certifi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .core import contents, where

__all__ = ["contents", "where"]
__version__ = "2023.11.17"
__version__ = "2025.01.31"
4,778 changes: 0 additions & 4,778 deletions certifi/cacert.pem

This file was deleted.

6 changes: 6 additions & 0 deletions certifi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
This module returns the installation location of cacert.pem or its contents.
"""
import sys
import atexit

def exit_cacert_ctx() -> None:
_CACERT_CTX.__exit__(None, None, None) # type: ignore[union-attr]


if sys.version_info >= (3, 11):
Expand Down Expand Up @@ -35,6 +39,7 @@ def where() -> str:
# we will also store that at the global level as well.
_CACERT_CTX = as_file(files("certifi").joinpath("cacert.pem"))
_CACERT_PATH = str(_CACERT_CTX.__enter__())
atexit.register(exit_cacert_ctx)

return _CACERT_PATH

Expand Down Expand Up @@ -70,6 +75,7 @@ def where() -> str:
# we will also store that at the global level as well.
_CACERT_CTX = get_path("certifi", "cacert.pem")
_CACERT_PATH = str(_CACERT_CTX.__enter__())
atexit.register(exit_cacert_ctx)

return _CACERT_PATH

Expand Down
7 changes: 3 additions & 4 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
certifi is patched to return the location of Debian-provided CA
certificates.

Certificates provided by upstream are still available for manual use
at the following location:
Certificates provided by upstream are not part of this package, and
can be found on the upstream website if needed.

/usr/lib/python2.7/dist-packages/certifi/cacert.pem
-- Sebastien Delafond <seb@debian.org>, Mon, 7 Oct 2024 14:18:19 +0200

-- Sebastien Delafond <seb@debian.org>, Sun, 4 Oct 2015 10:38:44 +0200
38 changes: 38 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
python-certifi (2025.1.31+ds-1) unstable; urgency=medium

[ Sébastien Delafond ]
* New upstream version 2025.1.31+ds

-- Sebastien Delafond <seb@debian.org> Thu, 13 Feb 2025 06:19:50 +0100

python-certifi (2024.12.14+ds-1) unstable; urgency=medium

[ Sébastien Delafond ]
* Use +ds suffix
* New upstream version 2024.12.14

-- Sebastien Delafond <seb@debian.org> Sun, 05 Jan 2025 08:54:29 +0100

python-certifi (2024.8.30+dfsg-1) unstable; urgency=medium

[ Sébastien Delafond ]
* Exclude certifi/cacert.pem (Closes: #947287)

-- Sebastien Delafond <seb@debian.org> Mon, 07 Oct 2024 14:43:02 +0200

python-certifi (2024.8.30-1) unstable; urgency=medium

[ Sébastien Delafond ]
* New upstream version 2024.8.30
* d/control: bump up Standards-Version

-- Sebastien Delafond <seb@debian.org> Wed, 11 Sep 2024 11:10:07 +0200

python-certifi (2024.6.2-1) unstable; urgency=medium

[ Sébastien Delafond ]
* New upstream version 2024.6.2
* Rediff patches

-- Sebastien Delafond <seb@debian.org> Fri, 14 Jun 2024 11:52:10 +0200

python-certifi (2023.11.17-1) unstable; urgency=medium

[ Sébastien Delafond ]
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Build-Depends: debhelper-compat (= 13),
dh-python,
python3-all,
python3-setuptools
Standards-Version: 4.6.2
Standards-Version: 4.7.0
Homepage: https://github.com/certifi/python-certifi
Vcs-Git: https://salsa.debian.org/debian/python-certifi.git
Vcs-Browser: https://salsa.debian.org/debian/python-certifi
Expand Down
1 change: 1 addition & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: certifi
Source: https://github.com/asweigart/certifi
Files-Excluded: certifi/cacert.pem

Files: *
Copyright: Kenneth Reitz me@kennethreitz.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ Date: Wed, 11 Dec 2019 13:51:16 -0300
Subject: Use Debian provided /etc/ssl/certs/ca-certificates.crt

---
certifi/core.py | 106 +++++---------------------------------------------------
1 file changed, 8 insertions(+), 98 deletions(-)
certifi/core.py | 113 ++++----------------------------------------------------
1 file changed, 8 insertions(+), 105 deletions(-)

diff --git a/certifi/core.py b/certifi/core.py
index de02898..0162510 100644
index 91f538b..28061f0 100644
--- a/certifi/core.py
+++ b/certifi/core.py
@@ -2,107 +2,17 @@
@@ -2,113 +2,16 @@
certifi.py
~~~~~~~~~~

Expand All @@ -19,18 +19,22 @@ index de02898..0162510 100644
+/etc/ssl/certs/ca-certificates.crt or its contents.
"""
-import sys
-import atexit

-def exit_cacert_ctx() -> None:
- _CACERT_CTX.__exit__(None, None, None) # type: ignore[union-attr]
+DEBIAN_CA_CERTS_PATH = '/etc/ssl/certs/ca-certificates.crt'

-if sys.version_info >= (3, 11):

- from importlib.resources import as_file, files
-if sys.version_info >= (3, 11):
+def where() -> str:
+ return DEBIAN_CA_CERTS_PATH

- from importlib.resources import as_file, files
-
- _CACERT_CTX = None
- _CACERT_PATH = None
-
- def where() -> str:
- # This is slightly terrible, but we want to delay extracting the file
- # in cases where we're inside of a zipimport situation until someone
Expand All @@ -52,6 +56,7 @@ index de02898..0162510 100644
- # we will also store that at the global level as well.
- _CACERT_CTX = as_file(files("certifi").joinpath("cacert.pem"))
- _CACERT_PATH = str(_CACERT_CTX.__enter__())
- atexit.register(exit_cacert_ctx)
-
- return _CACERT_PATH
-
Expand Down Expand Up @@ -87,6 +92,7 @@ index de02898..0162510 100644
- # we will also store that at the global level as well.
- _CACERT_CTX = get_path("certifi", "cacert.pem")
- _CACERT_PATH = str(_CACERT_CTX.__enter__())
- atexit.register(exit_cacert_ctx)
-
- return _CACERT_PATH
-
Expand Down
5 changes: 4 additions & 1 deletion debian/watch
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
version=4
opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
opts="\
uversionmangle=s/(rc|a|b|c)/~$1/,\
dversionmangle=s/\+ds\d*$//,\
repacksuffix=+ds" \
https://pypi.debian.net/certifi/certifi-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
project_urls={
"Source": "https://github.com/certifi/python-certifi",
Expand Down
Loading