Move the source of truth for the version number from chgnet/__init__.py to setup.py.
Use importlib.metadata.version to read it from there. Part of the Python std lib since 3.8 and the recommended way to retrieve package version information.
Replace setuptools.find_namespace_packages with find_packages since you're actually not using namespace packages (see https://youtu.be/2Xvb79hOUdM for a good explainer)
Move the source of truth for the version number from
chgnet/__init__.py
tosetup.py
.Use
importlib.metadata.version
to read it from there. Part of the Python std lib since 3.8 and the recommended way to retrieve package version information.Replace
setuptools.find_namespace_packages
withfind_packages
since you're actually not using namespace packages (see https://youtu.be/2Xvb79hOUdM for a good explainer)