Skip to content

Commit

Permalink
Changed to pyproject.toml file.
Browse files Browse the repository at this point in the history
Changed the Python package to use a pyproject.toml file. Removed build.py, CMakeLists.txt, and conanfile.py. They can be generated with xmsconan_gen.
  • Loading branch information
bdolinar committed Jan 28, 2025
1 parent 039287f commit 149ab64
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 357 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Conan Files
build.py
CMakeLists.txt
conanfile.py

# Misc
*.DS_STORE
*~
Expand Down
276 changes: 0 additions & 276 deletions CMakeLists.txt

This file was deleted.

29 changes: 29 additions & 0 deletions _package/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "xmsinterp"
version = "6.1.7"
description = "Interpolation library for XMS products"
license = { text = "BSD 2-Clause License" }
readme = "README.md"
requires-python = ">=3.10"
keywords = []

# Dependencies
dependencies = [
"numpy",
"xmscore>=6.0.0",
"xmsgrid>=7.0.0,<8.0.0"
]

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

[tool.setuptools.package-data]
# Include additional files
"*" = ["*.pyd", "*.so"]

[tool.pytest.ini_options]
python_files = ["test_*.py", "*_test.py", "*_pyt.py"]
33 changes: 0 additions & 33 deletions _package/setup.py

This file was deleted.

25 changes: 0 additions & 25 deletions build.py

This file was deleted.

6 changes: 3 additions & 3 deletions build.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
library_name = "xmsinterp"
description = "Interpolation library for XMS products"
has_test_files = true
has_test_files = false

xms_dependencies = [
{ name = "xmscore", version = "6.2.5-8-gfabf5914" },
{ name = "xmsgrid", version = "5.5.3-56-ga088ecb" },
{ name = "xmscore", version = "6.2.5-9-g8647a0cd" },
{ name = "xmsgrid", version = "5.5.3-57-ge7f5a01" },
]

python_namespaced_dir = "interp"
Expand Down
Loading

0 comments on commit 149ab64

Please sign in to comment.