Skip to content

Commit

Permalink
General: Rebuild setup.py -> pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Somerandomguy10111 committed Feb 6, 2025
1 parent d7d93ca commit 90f67ee
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 53 deletions.
41 changes: 41 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "xrdpattern"
version = "0.9.4"
description = "Python library for XrdPatterns including file import, file export and postprocessing functionalities"
readme = "README.md"
authors = [{ name = "Daniel Hollarek", email = "[email protected]" }]
license = { file = "LICENSE.txt" }
urls = { Homepage = "https://github.com/aimat-lab/xrdpattern" }
dependencies = [
"numpy < 2.0.0",
"scipy",
"matplotlib",
"pymatgen",
"torch",
"gemmi",
"holytools @ git+https://github.com/Somerandomguy10111/holytools",
"pandas",
"openpyxl",
"tensordict",
"seaborn",
"ase"
]

[tool.setuptools]
ext-modules = [{name = "_xylib",sources = ["xylib/philips_udf.cpp","xylib/uxd.cpp","xylib/winspec_spe.cpp","xylib/xrdml.cpp","xylib/xfit_xdd.cpp","xylib/cache.cpp","xylib/bruker_raw.cpp","xylib/spectra.cpp","xylib/riet7.cpp","xylib/csv.cpp","xylib/specsxy.cpp","xylib/bruker_spc.cpp","xylib/pdcif.cpp","xylib/canberra_mca.cpp","xylib/xylib.cpp","xylib/philips_raw.cpp","xylib/vamas.cpp","xylib/rigaku_dat.cpp","xylib/util.cpp","xylib/cpi.cpp","xylib/text.cpp","xylib/dbws.cpp","xylib/canberra_cnf.cpp","xylib/xsyg.cpp","xylib/chiplot.cpp", "xylib.i"],include-dirs = ["."],language = "c++",swig-opts = ["-c++"]}]
py-modules = ["xylib"]


[tool.setuptools.packages.find]
include = ["xrdpattern*"]


[tool.setuptools.package-data]
"xrdpattern.crystal.atomic_constants" = ["*"]
"xrdpattern.crystal.cifs" = ["*"]
"xrdpattern.parsing.examples" = ["*"]
"xrdpattern.tools" = ["*"]
53 changes: 0 additions & 53 deletions setup.py

This file was deleted.

0 comments on commit 90f67ee

Please sign in to comment.