-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate from setup.py to pyproject.toml (#366)
- Loading branch information
Showing
5 changed files
with
79 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[build-system] | ||
requires = ["setuptools>=45"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "dpdata_random" | ||
version = "0.0.0" | ||
description = "An example for dpdata plugin" | ||
dependencies = [ | ||
'numpy', | ||
'dpdata', | ||
] | ||
readme = "README.md" | ||
|
||
[project.entry-points.'dpdata.plugins'] | ||
random = "dpdata_random:RandomFormat" |
This file was deleted.
Oops, something went wrong.
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,59 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "dpdata" | ||
dynamic = ["version"] | ||
description = "Manipulating data formats of DeePMD-kit, VASP, QE, PWmat, and LAMMPS, etc." | ||
authors = [ | ||
{name = "DeepModeling"}, | ||
{name = "Han Wang", email = "[email protected]"}, | ||
] | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Programming Language :: Python :: 3.6", | ||
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", | ||
] | ||
dependencies = [ | ||
'numpy>=1.14.3', | ||
'monty', | ||
'scipy', | ||
'h5py', | ||
'wcmatch', | ||
'importlib_metadata>=1.4; python_version < "3.8"', | ||
] | ||
requires-python = ">=3.6" | ||
readme = "README.md" | ||
keywords = ["lammps", "vasp", "deepmd-kit"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/deepmodeling/dpdata" | ||
documentation = "https://docs.deepmodeling.com/projects/dpdata" | ||
repository = "https://github.com/deepmodeling/dpdata" | ||
|
||
[project.entry-points.console_scripts] | ||
dpdata = "dpdata.cli:dpdata_cli" | ||
|
||
[project.optional-dependencies] | ||
ase = ['ase'] | ||
amber = ['parmed'] | ||
pymatgen = ['pymatgen'] | ||
docs = [ | ||
'sphinx', | ||
'recommonmark', | ||
'sphinx_rtd_theme>=1.0.0rc1', | ||
'numpydoc', | ||
'm2r2', | ||
'deepmodeling-sphinx>=0.1.1', | ||
'sphinx-argparse', | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["dpdata*"] | ||
|
||
[tool.setuptools.package-data] | ||
dpdata = ['*.json'] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "dpdata/_version.py" |