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)
* Reformat files with 'black'

Future TODO:
* Modernize python packing with latest guidelines
* Support all GSSAPI backends generically and remove Kerberos references
* Test more situations
  • Loading branch information
svmhdvn committed Apr 18, 2024
1 parent d2d7ae0 commit 27f4e2e
Show file tree
Hide file tree
Showing 5 changed files with 426 additions and 440 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.py[cod]
venv

# C extensions
*.so
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
kerberos
gssapi
k5test
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,17 @@
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',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
'Topic :: Software Development :: Libraries :: Python Modules'],
test_suite='test_wsgi_kerberos',
tests_require=['mock', 'WebTest'])
tests_require=['k5test', 'requests', 'requests-gssapi', 'wsgi-intercept'])
Loading

0 comments on commit 27f4e2e

Please sign in to comment.