From 65d2c476f1d5d3d5ce6feeb5c7bd76d4f64d2885 Mon Sep 17 00:00:00 2001 From: Nikolas Nyby Date: Mon, 4 May 2026 22:48:05 -0400 Subject: [PATCH 1/9] CASClientV1 fix: decode unicode Fixes #42 --- cas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cas.py b/cas.py index af54035..c4443f8 100644 --- a/cas.py +++ b/cas.py @@ -177,7 +177,8 @@ def verify_ticket(self, ticket): verify=self.verify_ssl_certificate ) try: - page_iterator = page.iter_lines(chunk_size=8192) + page_iterator = page.iter_lines( + chunk_size=8192, decode_unicode=True) verified = next(page_iterator).strip() if verified == 'yes': return next(page_iterator).strip(), None, None From aa3c8dc162cd4b157c508963b5d451cf6fe2fc72 Mon Sep 17 00:00:00 2001 From: Nikolas Nyby Date: Tue, 5 May 2026 05:59:07 -0400 Subject: [PATCH 2/9] :bookmark: release version 1.7.2 --- CHANGELOG | 3 +++ docs/changelog.rst | 4 ++++ docs/conf.py | 2 +- setup.py | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..c89104e --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,3 @@ +1.7.2 (2026-05-05) +================== +* Fix unicode decoding bug in CASClientV1 diff --git a/docs/changelog.rst b/docs/changelog.rst index a3ea1ab..c730072 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -89,3 +89,7 @@ here. For additional detail, read the complete `commit history`_. **python-cas 1.7.1** ``[2025-11-05]`` * Removed dependency on package: six + +**python-cas 1.7.2** ``[2026-05-05]`` + +* Fix unicode decoding bug in CASClientV1 diff --git a/docs/conf.py b/docs/conf.py index 7e3c9ca..05256c1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -55,7 +55,7 @@ # The short X.Y version. version = '1.7' # The full version, including alpha/beta/rc tags. -release = '1.7.1' +release = '1.7.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index 1beceb9..019b0cd 100755 --- a/setup.py +++ b/setup.py @@ -39,5 +39,5 @@ py_modules=['cas'], url='https://github.com/python-cas/python-cas', download_url ='https://github.com/python-cas/python-cas/releases', - version='1.7.1', + version='1.7.2', ) From 195c1cc531bb91ba9c6339c8b6f33a202ba97b1d Mon Sep 17 00:00:00 2001 From: Nikolas Nyby Date: Tue, 5 May 2026 06:25:58 -0400 Subject: [PATCH 3/9] setup.py: Add missing long_description_content_type --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 019b0cd..96a54f6 100755 --- a/setup.py +++ b/setup.py @@ -35,6 +35,7 @@ keywords=['cas', 'cas2', 'cas3', 'client', 'sso', 'single sign-on', 'authentication', 'auth'], license='MIT', long_description=readme, + long_description_content_type='text/x-rst', name='python-cas', py_modules=['cas'], url='https://github.com/python-cas/python-cas', From 53829691e56beb5c3faedc0186e11512ff6f2247 Mon Sep 17 00:00:00 2001 From: nikolas Date: Tue, 5 May 2026 07:07:00 -0400 Subject: [PATCH 4/9] Update README.rst --- README.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.rst b/README.rst index c1fcd9f..9db56e4 100644 --- a/README.rst +++ b/README.rst @@ -9,9 +9,6 @@ Python CAS This project was started by refactoring out **CASClient** classes from the `django-cas-ng`_ project. -Now **CASClient** can be used by any python project, -e.g. Django, Pyramid, Flask, Sanic, FastAPI, Tornado, web2py etc. - Features -------- From 40697cf021c0dded0df7c2f720355f223bc1ed95 Mon Sep 17 00:00:00 2001 From: nikolas Date: Tue, 5 May 2026 07:07:33 -0400 Subject: [PATCH 5/9] Update README.rst --- README.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.rst b/README.rst index 9db56e4..be394fe 100644 --- a/README.rst +++ b/README.rst @@ -44,8 +44,6 @@ Install from source code:: Testing ------- -Every code commit triggers a **travis-ci** build. checkout current build status at https://travis-ci.org/python-cas/python-cas - Testing is managed by ``pytest`` and ``tox``. Before run install, you need install required packages for testing:: From aeca6b29dd7debc41744162352ced0ef67fe10ac Mon Sep 17 00:00:00 2001 From: nikolas Date: Tue, 5 May 2026 07:08:24 -0400 Subject: [PATCH 6/9] Update README.rst --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index be394fe..dc65e22 100644 --- a/README.rst +++ b/README.rst @@ -4,9 +4,9 @@ Python CAS .. image:: https://github.com/python-cas/python-cas/actions/workflows/CI.yml/badge.svg :target: https://github.com/python-cas/python-cas/actions/workflows/CI.yml -``Python CAS`` implements CAS protocol (Central Authentication Service) client. +python-cas implements a CAS protocol (Central Authentication Service) client. -This project was started by refactoring out **CASClient** classes from the +This project was started by refactoring **CASClient** classes out of the `django-cas-ng`_ project. Features From 9603477fdf675075b244a25042ebfe93d291d11c Mon Sep 17 00:00:00 2001 From: nikolas Date: Tue, 5 May 2026 14:01:44 -0400 Subject: [PATCH 7/9] Update README.rst --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index dc65e22..62da863 100644 --- a/README.rst +++ b/README.rst @@ -60,7 +60,7 @@ To run all testing on all enviroments locally:: tox -Contribution +Contributing ------------ Contributions are welcome! From ae75083d221153e2dda18d5c92ea531ba93be269 Mon Sep 17 00:00:00 2001 From: nikolas Date: Tue, 5 May 2026 14:06:44 -0400 Subject: [PATCH 8/9] Add pypi link in readme --- README.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 62da863..3248a66 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,7 @@ -Python CAS +python-cas ========== - +.. image:: https://img.shields.io/pypi/v/python-cas.svg + :target: https://pypi.org/project/python-cas/ .. image:: https://github.com/python-cas/python-cas/actions/workflows/CI.yml/badge.svg :target: https://github.com/python-cas/python-cas/actions/workflows/CI.yml From ecfd2ec98060caf7a615da3b4e131adbc36b1b4b Mon Sep 17 00:00:00 2001 From: nikolas Date: Mon, 11 May 2026 22:34:00 -0400 Subject: [PATCH 9/9] Update setup.py --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 96a54f6..e3a7a62 100755 --- a/setup.py +++ b/setup.py @@ -24,6 +24,7 @@ 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', 'Topic :: Internet :: WWW/HTTP', ], python_requires=">=3.10",