Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e4af5f

Browse files
committed
Rename devpy to spin
1 parent e42c950 commit 0e4af5f

8 files changed

Lines changed: 38 additions & 38 deletions

File tree

.github/workflows/linux_meson.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121
contents: read # to fetch code (actions/checkout)
2222

2323
jobs:
24-
meson_devpy:
24+
meson_spin:
2525
if: "github.repository == 'numpy/numpy'"
2626
runs-on: ubuntu-latest
2727
steps:
@@ -41,7 +41,7 @@ jobs:
4141
env:
4242
TERM: xterm-256color
4343
run:
44-
./dev.py build -- --werror
44+
./spin build -- --werror
4545
- name: Check build-internal dependencies
4646
run:
4747
ninja -C build -t missingdeps
@@ -54,4 +54,4 @@ jobs:
5454
TERM: xterm-256color
5555
run: |
5656
pip install pytest hypothesis typing_extensions
57-
./dev.py test
57+
./spin test

.github/workflows/linux_musl.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ jobs:
6262
pip install pytest hypothesis typing_extensions
6363
6464
# use meson to build and test
65-
./dev.py build
66-
./dev.py test
65+
./spin build
66+
./spin test

build_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ meson-python>=0.10.0
22
Cython>=0.29.30,<3.0
33
wheel==0.38.1
44
ninja
5-
git+https://github.com/scientific-python/[email protected]
5+
spin>=0.2

building_with_meson.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ into a problem._
1515
# also make sure you have pkg-config and the usual system dependencies for
1616
# NumPy`
1717

18-
Then install devpy:
19-
- `python -m pip install git+https://github.com/scientific-python/devpy`
18+
Then install spin:
19+
- `python -m pip install spin`
2020

21-
**Compile and install:** `./dev.py build`
21+
**Compile and install:** `./spin build`
2222

2323
This builds in the `build/` directory, and installs into the `build-install` directory.
2424

25-
Then run the test suite or a shell via `dev.py`:
25+
Then run the test suite or a shell via `spin`:
2626
```
27-
./dev.py test
28-
./dev.py ipython
27+
./spin test
28+
./spin ipython
2929
```
3030

3131
Alternatively, to use the package, add it to your `PYTHONPATH`:
@@ -44,7 +44,7 @@ Note that `pip` will use the default build system, which is (as of now) still
4444
After that is done, `pip install .` or `pip install --no-build-isolation .`
4545
will work as expected. As does building an sdist or wheel with `python -m build`.
4646
Note, however, that `pip install -e .` (in-place developer install) does not!
47-
Use `dev.py` instead (see above).
47+
Use `spin` instead (see above).
4848

4949

5050

@@ -67,5 +67,5 @@ Libs: -L${libdir} -lopenblas
6767
Then build with:
6868

6969
```
70-
./dev.py build -- -Dpkg_config_path=${HOME}/lib/pkgconfig
70+
./spin build -- -Dpkg_config_path=${HOME}/lib/pkgconfig
7171
```

dev.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies:
1717
- ninja
1818
- pkg-config
1919
- meson-python
20-
- pip # so you can use pip to install devpy
20+
- pip # so you can use pip to install spin
2121
# For testing
2222
- pytest
2323
- pytest-cov

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ environment = { OPENBLAS64_="openblas", OPENBLAS="", NPY_USE_BLAS_ILP64="1", CFL
174174
select = "*-win32"
175175
environment = { OPENBLAS64_="", OPENBLAS="openblas", NPY_USE_BLAS_ILP64="0", CFLAGS="-m32", LDFLAGS="-m32" }
176176

177-
[tool.devpy]
177+
[tool.spin]
178178
package = 'numpy'
179179

180-
[tool.devpy.commands]
181-
"Build" = ["devpy.cmds.meson.build", "devpy.cmds.meson.test"]
182-
"Environments" = ["devpy.cmds.meson.shell", "devpy.cmds.meson.ipython", "devpy.cmds.meson.python"]
180+
[tool.spin.commands]
181+
"Build" = ["spin.cmds.meson.build", "spin.cmds.meson.test"]
182+
"Environments" = ["spin.cmds.meson.shell", "spin.cmds.meson.ipython", "spin.cmds.meson.python"]

spin

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env python
2+
#
3+
# Example stub for running `python -m spin`
4+
#
5+
# Copy this into your project root.
6+
7+
import os
8+
import sys
9+
import runpy
10+
11+
sys.path.remove(os.path.abspath(os.path.dirname(sys.argv[0])))
12+
try:
13+
runpy.run_module("spin", run_name="__main__")
14+
except ImportError:
15+
print("Cannot import spin; please install it using")
16+
print()
17+
print(" pip install spin")
18+
print()
19+
sys.exit(1)

0 commit comments

Comments
 (0)