Skip to content

Commit

Permalink
maybe give setuptools-scm a chance, need really careful check of pack…
Browse files Browse the repository at this point in the history
…age content
  • Loading branch information
DanielYang59 committed Sep 18, 2024
1 parent 605df2c commit a86c035
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 11 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Exclude entire directories
prune .github/
prune dev_scripts/
prune docs/
prune examples/
prune tests/

# Exclude individual files
exclude .* \
ADMIN.md CONTRIBUTING.md SECURITY.md \
CITATION.cff pdm.lock tasks.py
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ requires = [
# https://numpy.org/devdocs/dev/depending_on_numpy.html#build-time-dependency
"numpy>=2.1.0",
"setuptools>=65.0.0",
"setuptools-scm>=8", # include all Git tracked files as package data file
]
build-backend = "setuptools.build_meta"

Expand Down Expand Up @@ -130,9 +131,6 @@ feff_plot_cross_section = "pymatgen.cli.feff_plot_cross_section:main"
feff_plot_dos = "pymatgen.cli.feff_plot_dos:main"
get_environment = "pymatgen.cli.get_environment:main"

[tool.setuptools.package-data]
"*" = ["*", ] # include everything under src/ dir as data files

[tool.setuptools.packages.find]
where = ["src"]
include = ["pymatgen", "pymatgen.*"]
Expand Down

0 comments on commit a86c035

Please sign in to comment.