Skip to content

Commit

Permalink
updated to build -- smaller sdist and dynamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBarker-NOAA committed Jul 31, 2024
1 parent 726d7c0 commit d263aea
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
5 changes: 3 additions & 2 deletions py_gnome/conda_requirements_build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

cython=3.*
setuptools>=62 # older versions uses different build dirs
setuptools-scm>=6.2
# setuptools-scm>=6.2
gitpython
python-build
cmake
ninja
scikit-build-core>=0.7.*
scikit-build-core>=0.9.9
# hatchling
2 changes: 1 addition & 1 deletion py_gnome/gnome/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# just so it will be in the namespace.
from .gnomeobject import GnomeId, AddLogger

__version__ = '1.1.12'
__version__ = "1.1.13dev"


if os.name == 'nt':
Expand Down
14 changes: 12 additions & 2 deletions py_gnome/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ classifiers = [
"Topic :: Scientific/Engineering :: Oceanography",
]

version = "1.1.12"
readme = "README.rst"

# dynamic = ["version", "readme"]
dynamic = ["version"]

[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "gnome/__init__.py"


# really hard to do with conda compatibility :-)
# dependencies = [
Expand All @@ -54,5 +58,11 @@ namespaces = false # to disable scanning PEP 420 namespaces (true by default)

[tool.scikit-build]
wheel.py-api = "py3"
# sdist.include = ["tests/unit_tests"]
sdist.exclude = ["scripts",
"tests/", # until we can figure out how to exclude the downloaded data files.
"gnome/cy_gnome/*.cpp"
]


# [project.optional-dependencies]

0 comments on commit d263aea

Please sign in to comment.