Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: migrate to uv #284

Merged
merged 3 commits into from
Feb 3, 2025
Merged

build: migrate to uv #284

merged 3 commits into from
Feb 3, 2025

Conversation

qartik
Copy link
Member

@qartik qartik commented Jan 31, 2025

Description

Fixes #257

Note that on Windows and Python 3.13 environment, doc build fails with:

uv run sphinx-build -M html docs/source/ docs/build/
Running Sphinx v8.1.3
loading translations [en]... done
making output directory... done
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 5 source files that are out of date
updating environment: [new config] 5 added, 0 changed, 0 removed
reading sources... [ 20%] index
reading sources... [ 40%] modules
<frozen importlib._bootstrap>:488: Warning: Numpy built with MINGW-W64 on Windows 64 bits is experimental, and only available for 
testing. You are advised not to use it for production. 

CRASHES ARE TO BE EXPECTED - PLEASE REPORT THEM TO NUMPY DEVELOPERS
D:\a\pytket-phir\pytket-phir\.venv\Lib\site-packages\numpy\core\getlimits.py:225: RuntimeWarning: invalid value encountered in exp2
  epsneg_f128 = exp2(ld(-113))
D:\a\pytket-phir\pytket-phir\.venv\Lib\site-packages\numpy\core\getlimits.py:226: RuntimeWarning: invalid value encountered in exp2
  tiny_f128 = exp2(ld(-16382))
D:\a\pytket-phir\pytket-phir\.venv\Lib\site-packages\numpy\core\getlimits.py:240: RuntimeWarning: invalid value encountered in exp2
  eps=exp2(ld(-112)),
D:\a\pytket-phir\pytket-phir\.venv\Lib\site-packages\numpy\core\getlimits.py:41: RuntimeWarning: invalid value encountered in nextafter
  self._smallest_subnormal = nextafter(
D:\a\pytket-phir\pytket-phir\.venv\Lib\site-packages\numpy\core\getlimits.py:52: RuntimeWarning: invalid value encountered in log10
  self.precision = int(-log10(self.eps))
make: *** [Makefile:21: docs] Error -1073741819
reading sources... [ 60%] pytket.phir
Error: Process completed with exit code 1.

hence I have disabled docs building on Windows.

@qartik qartik force-pushed the 257-migrate-to-uv branch from 95998f1 to c12b233 Compare February 3, 2025 15:36
@qartik qartik force-pushed the 257-migrate-to-uv branch from c12b233 to e44709b Compare February 3, 2025 15:44
@qartik qartik requested a review from cqc-alec February 3, 2025 15:50
@qartik qartik merged commit 77eea69 into main Feb 3, 2025
8 checks passed
@qartik qartik deleted the 257-migrate-to-uv branch February 3, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to uv
2 participants