Skip to content

Commit 6e8fbf0

Browse files
add stub file; add path.locate(ref) -> offset (#28)
* add docstring * more docstring * lint code * fix * not ready * fix * fix * add stubs * update * fix * fix * fix * fix * fix * fix --------- Co-authored-by: tang zhixiong <[email protected]>
1 parent b2ea16c commit 6e8fbf0

File tree

9 files changed

+1517
-586
lines changed

9 files changed

+1517
-586
lines changed

.github/workflows/wheels.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ jobs:
5050
with:
5151
submodules: true
5252

53-
- uses: pypa/cibuildwheel@v2.16
53+
- uses: pypa/cibuildwheel@v2.21.1
5454
env:
5555
CIBW_ARCHS_MACOS: universal2
5656
CIBW_ARCHS_WINDOWS: auto ARM64
5757
CIBW_BEFORE_BUILD: pip install pytest networkx --prefer-binary
58+
CIBW_SKIP: "*musllinux*"
59+
CIBW_TEST_SKIP: pp*
5860

5961
- name: Verify clean directory
6062
run: git diff --exit-code

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,4 @@ _skbuild/
143143
.pyodide-xbuildenv/
144144
tests/graph.py
145145
core.*
146+
stubs

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ reset_submodules:
1515
git submodule update --init --recursive
1616

1717
clean:
18-
rm -rf build *.egg-info dist
18+
rm -rf build *.egg-info dist stubs
1919
force_clean:
2020
docker run --rm -v `pwd`:`pwd` -w `pwd` -it alpine/make make clean
2121

@@ -66,6 +66,10 @@ python_sdist:
6666
python_test: pytest
6767
.PHONY: build
6868

69+
restub:
70+
pybind11-stubgen networkx_graph._core -o stubs
71+
cp stubs/networkx_graph/_core.pyi src/networkx_graph
72+
6973
# conda create -y -n py36 python=3.6
7074
# conda create -y -n py37 python=3.7
7175
# conda create -y -n py38 python=3.8

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
# built documents.
5959
#
6060
# The short X.Y version.
61-
version = '0.2.4'
61+
version = '0.2.5'
6262
# The full version, including alpha/beta/rc tags.
63-
release = '0.2.4'
63+
release = '0.2.5'
6464

6565
# The language for content autogenerated by Sphinx. Refer to documentation
6666
# for a list of supported languages.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "scikit_build_core.build"
55

66
[project]
77
name = "networkx_graph"
8-
version = "0.2.4"
8+
version = "0.2.5"
99
url = "https://github.com/cubao/networkx-graph"
1010
description = "Some customized graph algorithms"
1111
readme = "README.md"

0 commit comments

Comments
 (0)