Skip to content

Commit ba6ad69

Browse files
committed
packaging: add build-system, classifiers, project URLs, MANIFEST, PyPI-safe image URLs
1 parent eeb0a83 commit ba6ad69

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include LICENSE README.md CHANGELOG.md cansyd_config.yaml
2+
recursive-include docs/assets *.png

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[build-system]
2+
requires = ["setuptools>=61", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
15
# Tool configuration only.
26
#
37
# Packaging is still handled by setup.py, the developer tooling (Ruff, pytest) in their standard modern location.

setup.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
Path('README.md').read_text(encoding='utf-8') if Path('README.md').exists() else ''
77
)
88

9+
long_description = long_description.replace(
10+
'docs/assets/',
11+
'https://raw.githubusercontent.com/shodhx/cansyd/main/docs/assets/'
12+
)
13+
914
extras = {
1015
'perception': ['tensorflow>=2.16', 'keras>=3.0'],
1116
'counterfactual': ['dowhy>=0.12', 'pandas>=2.0', 'networkx>=3.0'],
@@ -26,3 +31,18 @@
2631
install_requires=['numpy>=2.0', 'scipy>=1.11', 'scikit-learn>=1.4', 'pyyaml>=6.0'],
2732
extras_require=extras,
2833
)
34+
35+
keywords='bearing fault diagnosis, causal inference, neuro-symbolic, physics-informed, condition monitoring, PHM',
36+
classifiers=[
37+
'Development Status :: 5 - Production/Stable',
38+
'Intended Audience :: Science/Research',
39+
'License :: OSI Approved :: MIT License',
40+
'Programming Language :: Python :: 3.11',
41+
'Programming Language :: Python :: 3.12',
42+
'Topic :: Scientific/Engineering',
43+
],
44+
project_urls={
45+
'Source': 'https://github.com/shodhx/cansyd',
46+
'Issues': 'https://github.com/shodhx/cansyd/issues',
47+
'Changelog': 'https://github.com/shodhx/cansyd/blob/main/CHANGELOG.md',
48+
},

0 commit comments

Comments
 (0)