Skip to content

Commit 18927f5

Browse files
committed
update readme and pyproject
1 parent cd4093a commit 18927f5

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

.github/workflows/build_wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
needs: [generate_matrix]
6565
name: Build wheels on ${{ matrix.os }}
6666
runs-on: ${{ matrix.os }}
67-
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
67+
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
6868
strategy:
6969
matrix:
7070
os: ${{ fromJson(needs.generate_matrix.outputs.OSES) }}
@@ -81,7 +81,7 @@ jobs:
8181
platforms: all
8282

8383
- name: Build wheels
84-
uses: pypa/cibuildwheel@v2.16.0
84+
uses: pypa/cibuildwheel@v2.17.0
8585
env:
8686
CIBW_ARCHS_MACOS: "x86_64 arm64"
8787
CIBW_ARCHS_LINUX: ${{ fromJson(needs.generate_matrix.outputs.CIBW_ARCHS_LINUX) }}

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,13 @@ for k, col in zip(unique_labels, colors):
8787
if k == -1:
8888
# Black used for noise.
8989
col = [0, 0, 0, 1]
90-
9190
class_member_mask = (labels == k)
92-
9391
xy = X[class_member_mask & core_samples_mask]
9492
plt.plot(xy[:, 0], xy[:, 1], 'o', markerfacecolor=tuple(col),
9593
markeredgecolor='k', markersize=14)
96-
9794
xy = X[class_member_mask & ~core_samples_mask]
9895
plt.plot(xy[:, 0], xy[:, 1], 'o', markerfacecolor=tuple(col),
9996
markeredgecolor='k', markersize=6)
100-
10197
plt.title('Estimated number of clusters: %d' % n_clusters_)
10298
plt.show()
10399
```

pyproject.toml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "dbscan"
33
authors = [
4-
{name = "Yiqiu Wang", email = "yiqiu_wang@icloud.com"}
4+
{name = "Yiqiu Wang", email = "yiqiuwang.work@gmail.com"}
55
]
66
maintainers = [
77
{name = "Anirudh Vegesana", email = "[email protected]"}
@@ -11,24 +11,33 @@ readme = "README.md"
1111
keywords = ['cluster', 'clustering', 'density', 'dbscan']
1212
license = {text = "MIT"}
1313
classifiers = [
14-
'Development Status :: 2 - Pre-Alpha',
14+
'Development Status :: 4 - Beta',
1515
'Intended Audience :: Science/Research',
1616
'Intended Audience :: Developers',
1717
"License :: OSI Approved :: MIT License",
1818
'Programming Language :: C++',
19-
'Programming Language :: Python :: 3',
19+
'Programming Language :: Python :: 3.9',
20+
'Programming Language :: Python :: 3.10',
21+
'Programming Language :: Python :: 3.11',
22+
'Programming Language :: Python :: 3.12',
23+
"Operating System :: POSIX :: Linux",
24+
"Operating System :: MacOS",
25+
"Operating System :: Microsoft :: Windows",
2026
'Topic :: Software Development',
2127
'Topic :: Scientific/Engineering',
2228
]
2329

24-
dynamic = ["version", "dependencies", "requires-python"]
30+
dynamic = ["version"]
2531

26-
[project.optional-dependencies]
27-
scikit-learn = [
28-
"scikit-learn"
32+
dependencies = [
33+
"numpy>=2.0.0",
34+
"scikit-learn>=1.0",
2935
]
36+
37+
requires-python = ">=3.9,<4.0" # Aligns with CIBW_BUILD and NumPy 2.0 support
38+
39+
[project.optional-dependencies]
3040
example = [
31-
"scikit-learn",
3241
"matplotlib"
3342
]
3443

@@ -37,8 +46,7 @@ homepage = "https://sites.google.com/view/yiqiuwang/dbscan"
3746
repository = "https://github.com/wangyiqiu/dbscan-python"
3847

3948
[build-system]
40-
requires = ["setuptools", "setuptools_scm", "wheel", "numpy>=2.0.0"]
41-
backend = "setuptools.build_meta"
49+
requires = ["setuptools>=61", "setuptools_scm>=7", "wheel", "numpy>=2.0.0"]
4250

4351
[tool.setuptools_scm]
4452
write_to = "pythonmodule/_version.py"

0 commit comments

Comments
 (0)