Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/python_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive
Comment thread
EiffL marked this conversation as resolved.
fetch-tags: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand All @@ -40,7 +44,6 @@ jobs:

- name: Test with pytest
run: |
git submodule update --init --recursive
pytest -vv --durations=100 --randomly-seed=42

build-status:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
jax_galsim/_version.py

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
5 changes: 5 additions & 0 deletions jax_galsim/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
from ._version import version as __version__
except ImportError:
__version__ = "0.0.1.dev0"

# Exception and Warning classes
from .errors import GalSimError, GalSimRangeError, GalSimValueError
from .errors import GalSimKeyError, GalSimIndexError, GalSimNotImplementedError
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[build-system]
requires = [
"setuptools>=45",
"setuptools-scm>=8",
]
build-backend = "setuptools.build_meta"

Expand All @@ -10,7 +11,7 @@ authors = [
{name = "GalSim Developers"},
]
description = "The modular galaxy image simulation toolkit, but in JAX"
version = "0.0.1rc1"
dynamic = ["version"]
license = {file = "LICENSE"}
readme = "README.md"
dependencies = [
Expand All @@ -31,6 +32,10 @@ home = "https://github.com/GalSim-developers/JAX-GalSim"
[tool.setuptools.packages.find]
include = ["jax_galsim*"]

[tool.setuptools-scm]
write_to = "jax_galsim/_version.py"
fallback_version = "0.0.1.dev0"

[tool.ruff.lint]
select = ["E", "F", "I", "W"]
ignore = ["C901", "E203", "E501"]
Expand Down
Loading