-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change setup to include pyproject.toml file (#97)
* change setup to include pyproject.toml file * update github actions to use python -m build * add build dependency intallation * get versioneer with pyproject.toml support
- Loading branch information
1 parent
10a9055
commit be79f3a
Showing
4 changed files
with
45 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[build-system] | ||
requires=["setuptools>=64", "versioneer[toml]"] | ||
build-backend="setuptools.build_meta" | ||
|
||
[project] | ||
name="hippynn" | ||
dynamic=["version"] | ||
authors=[{name="Nicholas Lubbers et al",email="[email protected]"}] | ||
description="The hippynn python package - a modular library for atomistic machine learning with pytorch" | ||
requires-python=">=3.9" | ||
license={text="BSD 3-Clause License"} | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
"Topic :: Scientific/Engineering :: Chemistry", | ||
"Topic :: Software Development :: Libraries", | ||
] | ||
readme="README.rst" | ||
dependencies=[ | ||
"numpy", | ||
"torch", | ||
] | ||
|
||
[project.optional-dependencies] | ||
docs=[ | ||
"sphinx", | ||
"sphinx_rtd_theme", | ||
"ase", | ||
] | ||
full=[ | ||
"ase", | ||
"numba", | ||
"matplotlib", | ||
"tqdm", | ||
"graphviz", | ||
"h5py", | ||
"lightning", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,8 @@ | ||
import setuptools | ||
import versioneer | ||
|
||
with open("README.rst", "r") as fh: | ||
long_description = fh.read() | ||
|
||
doc_requirements = [ | ||
"sphinx", | ||
"sphinx_rtd_theme", | ||
"ase", | ||
] | ||
|
||
full_requirements = [ | ||
"ase", | ||
"numba", | ||
"matplotlib", | ||
"tqdm", | ||
"graphviz", | ||
"h5py", | ||
"lightning", | ||
] | ||
|
||
setuptools.setup( | ||
name="hippynn", | ||
version=versioneer.get_version(), | ||
author="Nicholas Lubbers et al", | ||
author_email="[email protected]", | ||
python_requires=">=3.9", | ||
install_requires=[ | ||
"numpy", | ||
"torch", | ||
], | ||
extras_require={"docs": doc_requirements, "full": full_requirements}, | ||
license="BSD 3-Clause License", | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
"Topic :: Scientific/Engineering :: Chemistry", | ||
"Topic :: Software Development :: Libraries", | ||
], | ||
description="The hippynn python package - a modular library for atomistic machine learning with pytorch", | ||
long_description=long_description, | ||
packages=setuptools.find_packages(), | ||
cmdclass=versioneer.get_cmdclass(), | ||
) | ||
) |