Skip to content

Commit 27f4e2e

Browse files
committed
Replace PyKerberos dependency with python-gssapi
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
1 parent d2d7ae0 commit 27f4e2e

5 files changed

Lines changed: 426 additions & 440 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.py[cod]
2+
venv
23

34
# C extensions
45
*.so

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
kerberos
1+
gssapi
2+
k5test

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,17 @@
3636
include_package_data=True,
3737
package_data={'': ['LICENSE', 'AUTHORS']},
3838
platforms='any',
39-
install_requires=['kerberos'],
39+
install_requires=['gssapi'],
4040
classifiers=['Development Status :: 4 - Beta',
4141
'Environment :: Web Environment',
4242
'Intended Audience :: Developers',
4343
'License :: OSI Approved :: BSD License',
4444
'Operating System :: OS Independent',
4545
'Programming Language :: Python',
46-
'Programming Language :: Python :: 2.7',
4746
'Programming Language :: Python :: 3',
4847
'Topic :: Internet :: WWW/HTTP',
4948
'Topic :: Internet :: WWW/HTTP :: WSGI',
5049
'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
5150
'Topic :: Software Development :: Libraries :: Python Modules'],
5251
test_suite='test_wsgi_kerberos',
53-
tests_require=['mock', 'WebTest'])
52+
tests_require=['k5test', 'requests', 'requests-gssapi', 'wsgi-intercept'])

0 commit comments

Comments
 (0)