Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
91477b6
Rebuild against libkrb5 1.21.3
skupr-anaconda Jul 28, 2025
f2ddb39
Add stdlib_c
skupr-anaconda Jul 28, 2025
b65e7d7
Update staging channel
skupr-anaconda Jul 28, 2025
ed87cd5
Debug Windows
skupr-anaconda Jul 29, 2025
acd3072
1.9.0
skupr-anaconda Jul 29, 2025
82c4fc4
1.8.3
skupr-anaconda Jul 29, 2025
e59f752
Fix krb5 on Windows
skupr-anaconda Jul 29, 2025
526ddc6
Add a new test command
skupr-anaconda Jul 29, 2025
82538b0
Remove debug stuff
skupr-anaconda Jul 29, 2025
150f858
Bump the build number to 2
skupr-anaconda Jul 29, 2025
3e12d32
Revert "Bump the build number to 2"
skupr-anaconda Jul 29, 2025
8992b34
Add pytest
skupr-anaconda Jul 29, 2025
4330a5d
Skip tests
skupr-anaconda Jul 29, 2025
6b933de
Skip tests
skupr-anaconda Jul 29, 2025
be1bcb9
Skip tests
skupr-anaconda Jul 29, 2025
fa4a7af
Update recipe/meta.yaml
skupr-anaconda Jul 30, 2025
6b844a9
Update recipe/meta.yaml
skupr-anaconda Jul 30, 2025
59d4f4f
Revert the commit
skupr-anaconda Jul 30, 2025
103e270
Use gssapi/tests folder from SRC_DIR
skupr-anaconda Jul 30, 2025
4115d9a
Fix paths
skupr-anaconda Jul 30, 2025
9b9a82d
Fix patths and use SP_DIR
skupr-anaconda Jul 30, 2025
f1c7190
Fix patths on win
skupr-anaconda Jul 30, 2025
3209916
Fix patths on win
skupr-anaconda Jul 30, 2025
b97c7a7
Fix patths on win
skupr-anaconda Jul 30, 2025
8cb0f5f
Fix patths on win
skupr-anaconda Jul 30, 2025
7a97830
Fix patths on win
skupr-anaconda Jul 30, 2025
0e7af0b
Fix patths on win
skupr-anaconda Jul 30, 2025
79a7126
Remove test files
skupr-anaconda Jul 30, 2025
605a45a
Remove test files on win
skupr-anaconda Jul 30, 2025
de33928
Remove tests on win
skupr-anaconda Jul 30, 2025
e341a87
Update staging channel
skupr-anaconda Jul 30, 2025
d14e4e5
Remove staging channel
skupr-anaconda Jul 31, 2025
9eb95c9
Use libkrb5 >=1.21.3,<1.22.0a0 at runtime
skupr-anaconda Jul 31, 2025
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
3 changes: 0 additions & 3 deletions abs.yaml

This file was deleted.

35 changes: 29 additions & 6 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,67 @@ package:
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: aa3c8d0b1526f52559552bb2c9d2d6be013d76a8e5db00b39a1db5727e93b0b0
patches: # [win or osx]
- 0001-fix-setup.patch # [osx]
- fix_path.patch # [win]

build:
number: 1
number: 2
skip: true # [py<37]
script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation --ignore-installed --no-cache-dir -vv # [not win]
script_env:
- GSSAPI_SUPPORT_DETECT=false # [build_platform != target_platform]

requirements:
build:
- {{ stdlib('c') }}
- {{ compiler('c') }}
- patch # [unix]
- m2-patch # [win]
- patch # [unix]
- msys2-patch # [win]
host:
- python
- cython >=0.29.29,<4.0.0a0
- krb5 1.20
# libkrb5 1.21.3 (libraries and headers) fails on Windows with an error: "C2065: 'gss_key_value_set_desc': undeclared identifier"
# but krb5 (plus executables) works fine.
- krb5 {{ krb5 }} # [win]
- libkrb5 {{ krb5 }} # [unix]
- pip
- setuptools
- setuptools >=40.6.0
- wheel
run:
- python
- decorator
# libkrb5 provides gssapi64.dll on Windows
- libkrb5 >=1.21.3,<1.22.0a0 # [win]

# The tests fail because of the error "FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/kdb5_util'".
# The real location of kdb5_util is $PREFIX/sbin not /usr/sbin but it's hardcoded in the k5test's source code,
# see https://github.com/pythongssapi/k5test/blob/17512bd2137ffcdd1fdb7ff4210891ad34d27803/k5test/realm.py#L459
{% set tests_to_skip = "_not_a_real_test" %}
{% set tests_to_skip = tests_to_skip + " or CredsTestCase or MechsTestCase or NamesTestCase or SecurityContextTestCase or TestBaseUtilities" %}
{% set tests_to_skip = tests_to_skip + " or test_basic_init_default_ctx or test_bad_channel_binding_raises_error or test_basic_accept_context or test_basic_accept_context_no_acceptor_creds or test_channel_bindings" %}
{% set tests_to_skip = tests_to_skip + " or TestWrapUnwrap" %}

test:
imports:
- gssapi
- gssapi.raw
- gssapi.raw._enum_extensions
source_files: # [unix]
- gssapi/tests # [unix]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think tests must work without this line.

requires:
- pip
- pytest # [unix]
- parameterized # [unix]
commands:
- pip check
- python -c "import importlib.metadata; assert importlib.metadata.version('gssapi') == '{{ version }}'"
- pip install k5test # [unix]
- pytest -v ${SP_DIR}/gssapi/tests -k "not ({{ tests_to_skip }})" # [unix]
# subprocess.CalledProcessError: Command 'krb5-config --prefix' returned non-zero exit status 1 on Windows.
# Skip tests on Windows because k5test gets files from %SP_DIR% and not from source files.

about:
home: https://github.com/pythongssapi/python-gssapi
Expand Down