Skip to content

Commit a101d87

Browse files
committed
update readme and pyproject
1 parent cd4093a commit a101d87

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

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: 13 additions & 8 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]"}
@@ -16,19 +16,24 @@ classifiers = [
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",
2025
'Topic :: Software Development',
2126
'Topic :: Scientific/Engineering',
2227
]
2328

24-
dynamic = ["version", "dependencies", "requires-python"]
29+
[project.dependencies]
30+
numpy = ">=2.0.0"
31+
scikit-learn = ">=1.0"
32+
33+
requires-python = ">=3.9,<4.0" # Aligns with CIBW_BUILD and NumPy 2.0 support
2534

2635
[project.optional-dependencies]
27-
scikit-learn = [
28-
"scikit-learn"
29-
]
3036
example = [
31-
"scikit-learn",
3237
"matplotlib"
3338
]
3439

@@ -37,7 +42,7 @@ homepage = "https://sites.google.com/view/yiqiuwang/dbscan"
3742
repository = "https://github.com/wangyiqiu/dbscan-python"
3843

3944
[build-system]
40-
requires = ["setuptools", "setuptools_scm", "wheel", "numpy>=2.0.0"]
45+
requires = ["setuptools>=61", "setuptools_scm>=7", "wheel", "numpy>=2.0.0"]
4146
backend = "setuptools.build_meta"
4247

4348
[tool.setuptools_scm]

0 commit comments

Comments
 (0)