Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 14 additions & 3 deletions ci/azure/azure_template_posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ jobs:
BUILD_FLAGS: '-Csetup-args=-Dcython-coverage=true'
cython.coverage: true
PYTEST_PATTERN: "(not slow)"
python313_latest_coverage:
python313_clang:
python.version: '3.13'
CC: clang-20
use.clang: true
python313_debug:
python.version: '3.13'
BUILD_FLAGS: '-Csetup-args=-Dbuildtype=debug -Cbuild-dir=build-dbg'
python313_latest:
python.version: '3.13'
python314_latest:
python.version: '3.14'
Expand All @@ -56,8 +63,6 @@ jobs:
python_312_no_coverage:
python.version: '3.12'
PYPI: true
# TODO: Enable debug
RANDOMGEN_DEBUG: true
test.wheel: true
coverage: false
${{ if eq(parameters.name, 'macOS') }}:
Expand Down Expand Up @@ -107,6 +112,12 @@ jobs:
displayName: 'List Configuration (PyPI)'
condition: ne(variables['use.conda'], 'true')

- script: |
sudo apt update
sudo apt install clang-20 lldb-20 clangd-20
displayName: 'Install Clang'
condition: eq(variables['use.clang'], 'true')

- script: |
python -m pip install pip --upgrade
python -c "import platform;print(platform.uname())"
Expand Down
6 changes: 0 additions & 6 deletions randomgen/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ npyrandom_lib = cc.find_library('npyrandom', dirs: npyrandom_path)
# Needed to trick Cython, it won't do a relative import outside a package
_cython_tree = [fs.copyfile('__init__.py')]

# TODO: Check these flags
# TODO: Enable cython coverage in CI
# "language_level": "3",
# "binding": True,
# "linetrace": CYTHON_COVERAGE,

_pcg64_def = []
_blabla_def = []
if get_option('pcg64-force-emulated')
Expand Down
1 change: 0 additions & 1 deletion randomgen/rdrand.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ cdef uint64_t rdrand_uint64(void* st) noexcept nogil:


cdef uint32_t rdrand_uint32(void *st) noexcept nogil:
# TODO: This is lazy
return <uint32_t>rdrand_uint64(st)

cdef double rdrand_double(void* st) noexcept nogil:
Expand Down
2 changes: 1 addition & 1 deletion tools/practrand-driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def main():
if __name__ == "__main__":
try:
main()
except (BrokenPipeError, OSError):
except OSError:
logging.log(logging.INFO, "Pipe broken, assuming complete")

sys.stderr.close()
Loading