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
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
easyblock = 'PythonBundle'

name = 'astropy-testing'
version = '7.1.0'

homepage = 'https://www.astropy.org/'
description = """This bundle contains all dependencies needed to test astropy using pytest."""

toolchain = {'name': 'gfbf', 'version': '2024a'}

builddependencies = [
('hatchling', '1.27.0'),
]

# Dependencies needed for testing are obtained from
# https://github.com/astropy/astropy/blob/v7.1.0/pyproject.toml
dependencies = [
('Python', '3.12.3'),
('SciPy-bundle', '2024.05'),
('hypothesis', '6.103.1'),
('coverage', '7.9.2'),
('pre-commit', '4.3.0'),
]

exts_list = [
('pytest-doctestplus', '1.4.0', {
'source_tmpl': 'pytest_doctestplus-%(version)s.tar.gz',
'checksums': ['df83832b1d11288572df2ee4c7cccdb421d812b8038a658bb514c9c62bdbd626'],
}),
('pytest-astropy-header', '0.2.2', {
'checksums': ['77891101c94b75a8ca305453b879b318ab6001b370df02be2c0b6d1bb322db10'],
}),
('pytest-remotedata', '0.4.1', {
'checksums': ['05c08bf638cdd1ed66eb01738a1647c3c714737c3ec3abe009d2c1f793b4bb59'],
}),
('pytest-arraydiff', '0.6.1', {
'checksums': ['2937b1450fc935620f24709d87d40c67e055a043d7b8541a25fdfa994dda67de'],
}),
('pytest-filter-subpackage', '0.2.0', {
'checksums': ['3f468f1b36518128869b95deab661ba45ed6293854329fef14da4c8cac78af56'],
}),
('pytest_cov', '6.2.1', {
'checksums': ['25cc6cc0a5358204b8108ecedc51a9b57b34cc6b8c967cc2c01a4e00d8a67da2'],
}),
('pytest_mock', '3.15.1', {
'checksums': ['1849a238f6f396da19762269de72cb1814ab44416fa73a8686deac10b0d87a0f'],
}),
('pytest-astropy', '0.11.0', {
'checksums': ['4eaeaa99ed91163ed8f9aac132c70a81f25bc4c12f3cd54dba329fc26c6739b5'],
}),
]

moduleclass = 'astro'
75 changes: 75 additions & 0 deletions easybuild/easyconfigs/a/astropy/astropy-7.1.0-gfbf-2024a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
easyblock = 'PythonBundle'

name = 'astropy'
version = '7.1.0'

homepage = 'https://www.astropy.org/'
description = """The Astropy Project is a community effort to develop a common
core package for Astronomy in Python and foster an ecosystem of interoperable
astronomy packages.

The Astropy community is committed to supporting diversity and inclusion."""

toolchain = {'name': 'gfbf', 'version': '2024a'}

builddependencies = [
('Cython', '3.0.10'),
('astropy-testing', '7.1.0'), # Only needed for test step
('hatchling', '1.27.0'),
]
dependencies = [
('Python', '3.12.3'),
('SciPy-bundle', '2024.05'),
('PyYAML', '6.0.2'),
('matplotlib', '3.9.2'),
]

local_pytest_args = "not test_delay_doc_updates and not test_datetime_timedelta_roundtrip"
# Also disable tests that need remote data, see
# https://git.shrewdly.se/mirror/guix/commit/2aa0127d4e3d2363c04caab88137b070b6cf1318?style=unified&whitespace=show-all&show-outdated=
local_pytest_args += " and not remote_data"
# This test fails if the Easybuild tempdir is in a location for which the path is not equal to the realpath
local_pytest_args += " and not test_write_jsviewer_local"
# This test fails with small precision errors
local_pytest_args += " and not test_datetime_timedelta_sum"
# This test fails due to trying broken import statement "from astropy import tests.stores" which is invalid syntax.
local_pytest_args += " and not test_imports"


exts_list = [
('colorlog', '6.9.0', {
'checksums': ['bfba54a1b93b94f54e1f4fe48395725a3d92fd2a4af702f6bd70946bdc0c6ac2'],
}),
('pyerfa', '2.0.1.5', {
'modulename': 'erfa',
'checksums': ['17d6b24fe4846c65d5e7d8c362dcb08199dc63b30a236aedd73875cc83e1f6c0'],
}),
('extension-helpers', '1.4.0', {
'modulename': 'extension_helpers',
'source_tmpl': 'extension_helpers-%(version)s.tar.gz',
'checksums': ['78d04185f196e3e0bc5fd8418ce298b014c46f7ac609f6a8c10bf70e8c978324'],
}),
('astropy-iers-data', '0.2025.10.6.0.35.25', {
'source_tmpl': 'astropy_iers_data-%(version)s.tar.gz',
'checksums': ['60a0a8ff69dcb2d3470071f444c58685b06299c48214349a1a0ce2d44e178f76'],
}),
(name, version, {
'patches': ['astropy-7.0.0_test_quantities_fitting.patch'],
'checksums': [
{'astropy-7.1.0.tar.gz': 'c8f254322295b1b8cf24303d6f155bf7efdb6c1282882b966ce3040eff8c53c5'},
{'astropy-7.0.0_test_quantities_fitting.patch':
'2a55b32d8cf85f55343afc8011ea6329d1273a04e450d88414006e856f355563'},
],
# Create test installation, since Astropy tests cannot be run on the source / build dir since the import at
# https://github.com/astropy/astropy/blob/465a7ffe0cc9c776bc668a6938d029ffb83b68de/astropy/__init__.py#L146
# will fail
'testinstall': 'True',
# Run tests, but skip test_delay_doc_updates, which has a known issues
# https://github.com/astropy/astropy/issues/17558
# (Probably) fixed in 7.0.X and 7.1 https://github.com/astropy/astropy/pull/17559
'runtest': 'cd $EB_PYTHONPACKAGE_TEST_INSTALLDIR'
' && pytest -n %%(parallel)s -k "%s" --pyargs astropy' % local_pytest_args
}),
]

moduleclass = 'astro'
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
easyblock = 'PythonBundle'

name = 'pre-commit'
version = '4.3.0'

homepage = 'https://pre-commit.com/'
description = """A framework for managing and maintaining multi-language pre-commit hooks.

Git hook scripts are useful for identifying simple issues before submission to code review.
We run our hooks on every commit to automatically point out issues in code such as missing semicolons,
trailing whitespace, and debug statements. By pointing these issues out before code review,
this allows a code reviewer to focus on the architecture of a change while not wasting time
with trivial style nitpicks."""

toolchain = {'name': 'GCCcore', 'version': '13.3.0'}

builddependencies = [
('binutils', '2.42'),
]

dependencies = [
('Python', '3.12.3'),
('PyYAML', '6.0.2'),
('virtualenv', '20.26.2'),
]

exts_list = [
('nodeenv', '1.9.1', {
'checksums': ['6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f'],
}),
('identify', '2.6.15', {
'checksums': ['e4f4864b96c6557ef2a1e1c951771838f4edc9df3a72ec7118b338801b11c7bf'],
}),
('cfgv', '3.4.0', {
'checksums': ['e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560'],
}),
(name, version, {
'source_tmpl': 'pre_commit-%(version)s.tar.gz',
'checksums': ['499fe450cc9d42e9d58e606262795ecb64dd05438943c62b66f6a8673da30b16'],
}),
]

# Go module was detected as Fortran module
skip_mod_files_sanity_check = True

moduleclass = 'tools'
34 changes: 34 additions & 0 deletions easybuild/easyconfigs/p/pyshtools/pyshtools-4.13.1-gfbf-2024a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
easyblock = 'PythonBundle'

name = 'pyshtools'
version = '4.13.1'

homepage = 'https://shtools.github.io'
description = """SHTOOLS/pyshtools is a Fortran-95/Python library that can be used for spherical
harmonic transforms, multitaper spectral analyses, expansions of gridded data
into Slepian basis functions, standard operations on global gravitational and
magnetic field data."""

toolchain = {'name': 'gfbf', 'version': '2024a'}

builddependencies = [
('meson-python', '0.16.0'),
]

dependencies = [
('Python', '3.12.3'),
('SciPy-bundle', '2024.05'),
('astropy', '7.1.0'),
('jupyter-server', '2.14.2'),
('matplotlib', '3.9.2'),
('tqdm', '4.66.5'),
('xarray', '2024.11.0'),
]

exts_list = [
(name, version, {
'checksums': ['cc4a323e9cbc905c04ae9e2e9fedeea6d76f3315a6863ede353a4dec87b8c018'],
}),
]

moduleclass = 'tools'