Skip to content

update version #13

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 6 commits into from
Feb 27, 2025
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: 15 additions & 2 deletions .github/workflows/pr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ jobs:
run_pytest:
name: Run pytest
uses: ./.github/workflows/tests.yml

build_test_wheels:
name: Test build on Ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4

Expand All @@ -23,10 +27,19 @@ jobs:
package-dir: .
output-dir: ./wheelhouse
config-file: "{package}/pyproject.toml"

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Test import
run: |
pip install ./wheelhouse/*.whl
PY_VERSION=$(echo ${{ matrix.python-version }} | sed 's/\.//g')

ls -la ./wheelhouse/

pip install ./wheelhouse/*cp${PY_VERSION}*.whl
python -c "import radius_clustering; print(f'Successfully imported version {radius_clustering.__version__}')"

build_test_sdist:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install -e .
python -m pip install -e ".[dev]"

- name: Run tests with pytest
run: |
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ documentation = "https://lias-laboratory.github.io/radius_clustering/"
[project.optional-dependencies]
dev = [
"pytest>=8.3.3",
"pandas",
"cython>=3.0",
"setuptools>= 61.0",
"black>=24.3.0",
Expand Down Expand Up @@ -80,7 +81,7 @@ doc = [

[tool.setuptools]
packages.find = {where = ["src"], include = ["radius_clustering", "radius_clustering.*"]}
version = {attr = "radius_clustering.__version__"}
dynamic.version = {attr = "radius_clustering.__version__"}

[tool.pytest.ini_options]
pythonpath = "src"
Expand Down
2 changes: 1 addition & 1 deletion src/radius_clustering/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
__all__ = ["RadiusClustering"]

# Optionally, you can set a version number for your package
__version__ = "1.2.0"
__version__ = "1.2.1"
2 changes: 1 addition & 1 deletion src/radius_clustering/utils/mds.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cdef extern from "mds_core.cpp":

cdef Result iterated_greedy_wrapper(int numNodes, const vector[int]& edges_list, int nb_edges, string name) nogil

def solve_mds(int num_nodes, np.ndarray[np.uint32_t, ndim=1, mode="c"] edges not None, int nb_edges, str name):
def solve_mds(int num_nodes, np.ndarray[int, ndim=1, mode="c"] edges not None, int nb_edges, str name):
"""
Solve the Minimum Dominating Set problem for a given graph.

Expand Down