-
Notifications
You must be signed in to change notification settings - Fork 12
Migrate random to pyproject.toml
from setup.py
#62
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
36a187e
Update workflows to use .conda for conda package builds
ndgrigorian 9711f79
Use `--numpy 2.0`
ndgrigorian b6a5bb4
Add pyproject.toml and migrate from setup.py
ndgrigorian 40645ad
Add build instructions to README
ndgrigorian ff67a36
Clean up pyproject.toml
ndgrigorian ce8ca25
Pin setuptools to greater than 77
ndgrigorian c1832ab
Fix Conda package workflows on PRs
ndgrigorian 6c52bd3
Remove numpy as dependency for tests
ndgrigorian b155c87
Remove mkl-service as test requirement
ndgrigorian f3b3d40
Change pip to install in build scripts
ndgrigorian 5ee291c
Remove license family
ndgrigorian 3a59787
Install with pip in clang build
ndgrigorian 1b3437d
Install wheel package in clang builds
ndgrigorian 0c05403
Pin setuptools in CI to >=77
ndgrigorian 359fe9d
Adjust pyproject.toml and setup.py license headers
ndgrigorian 04e3207
Update README.md
ndgrigorian f8b2e7c
Raise ValueError if `MKLROOT` variable is not set
ndgrigorian 41a07e7
Remove insertion of setup.py in path
ndgrigorian 7b5a63e
Apply review comments to clang workflow
ndgrigorian 5aabb91
remove defaults channel
ndgrigorian 59b354d
Add openmp as explicit dependency in test_windows step
ndgrigorian a4ba7f2
Run conda-package workflow on 3.11 and 3.12 as well
ndgrigorian 64bdbe5
Run all workflows on all supported Python versions
ndgrigorian 5e56f05
Run docs workflow on Python 3.12
ndgrigorian 2c69830
Make mkl_random dependencies consistent in clang build
ndgrigorian 1294dc7
Update build instructions in docs
ndgrigorian cfb8e0a
Attempt using editable wheel build in docs build
ndgrigorian 482aa53
Update Clang worfklow
ndgrigorian af42221
Add builds which use Python 3.13 to clang builds
ndgrigorian 1f4ca6b
Permit Python 3.13 in pyproject.toml
ndgrigorian 3fdcf8b
Clean up compile args in setup.py
ndgrigorian 87c5086
Remove checks for `long` in pure Python code
ndgrigorian dc5c0c5
Use PyLong_AsLong instead of PyInt_AsLong
ndgrigorian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: Build mkl_random documentation | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
@@ -34,13 +35,13 @@ jobs: | |
if: ${{ !github.event.pull_request || github.event.action != 'closed' }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
python-version: "3.12" | ||
architecture: x64 | ||
- name: Install sphinx dependencies | ||
if: ${{ !github.event.pull_request || github.event.action != 'closed' }} | ||
shell: bash -l {0} | ||
run: | | ||
pip install numpy cython setuptools scikit-build cmake sphinx sphinx_rtd_theme furo pydot graphviz sphinxcontrib-programoutput sphinxcontrib-googleanalytics sphinx_design | ||
pip install numpy cython setuptools">=77" scikit-build cmake sphinx sphinx_rtd_theme furo pydot graphviz sphinxcontrib-programoutput sphinxcontrib-googleanalytics sphinx_design | ||
- name: Checkout repo | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -52,7 +53,7 @@ jobs: | |
run: | | ||
# Ensure that SYCL libraries are on LD_LIBRARY_PATH | ||
source /opt/intel/oneapi/setvars.sh | ||
python setup.py develop | ||
pip install --no-deps --no-build-isolation -e . --verbose | ||
ndgrigorian marked this conversation as resolved.
Show resolved
Hide resolved
|
||
python -c "import mkl_random; print(mkl_random.__version__)" || exit 1 | ||
sphinx-build -M html docs/source docs/build | ||
mkdir -p ~/rendered_docs | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@rem Remember to source the compiler | ||
|
||
set MKLROOT=%CONDA_PREFIX% | ||
%PYTHON% setup.py install | ||
%PYTHON% -m pip install --no-build-isolation --no-deps . | ||
ndgrigorian marked this conversation as resolved.
Show resolved
Hide resolved
|
||
if errorlevel 1 exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@rem Remember to source the compiler | ||
|
||
set MKLROOT=%CONDA_PREFIX% | ||
%PYTHON% setup.py install | ||
%PYTHON% -m pip install --no-build-isolation --no-deps . | ||
if errorlevel 1 exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.