Skip to content

Commit

Permalink
Replace PyKerberos dependency with python-gssapi
Browse files Browse the repository at this point in the history
This patch comprises the following changes:
* Replace 'kerberos' with 'gssapi'
* Remove lingering python2 support
* Use a real kerberos realm for running tests (i.e. remove mock calls)
  • Loading branch information
svmhdvn committed Jun 2, 2024
1 parent d2d7ae0 commit 5e42e3f
Show file tree
Hide file tree
Showing 6 changed files with 390 additions and 416 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WSGI-Kerberos
WSGI-Kerberos is `WSGI`_ Middleware which implements `Kerberos`_ authentication.
It makes it easy to add Kerberos authentication to any WSGI application.

Its only dependency is `python-kerberos`_ and it's been tested up to version 1.3.0
Its only dependency is `gssapi`_ and it's been tested with v1.8.3 onwards.

You can install the requirements from PyPI with ``easy_install`` or ``pip`` or
download them by hand.
Expand Down
3 changes: 2 additions & 1 deletion example/example_application.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import logging
from wsgi_kerberos import KerberosAuthMiddleware
from wsgiref.simple_server import make_server
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
kerberos
gssapi>=1.8.3
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,13 @@
include_package_data=True,
package_data={'': ['LICENSE', 'AUTHORS']},
platforms='any',
install_requires=['kerberos'],
install_requires=['gssapi'],
classifiers=['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: WSGI',
Expand Down
Loading

0 comments on commit 5e42e3f

Please sign in to comment.