Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
[project]
name = "swiftest"
version = "2024.4.2"
authors=[
{name = 'David A. Minton', email='daminton@purdue.edu'},
{name = 'Carlisle Wishard'},
{name = 'Jennifer Pouplin'},
{name = 'Jake Elliott'},
{name = 'Dana Singh'},
{name = 'Kaustub Anand'},
]
maintainers = [
{name = 'David A. Minton', email='daminton@purdue.edu'},
]
readme = "README.md"
requires-python=">=3.9"
license={file = "LICENSE"}
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Astronomy',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python :: 3',
]
keywords=['astronomy','astrophysics', 'planetary', 'n-body', 'integrator', 'symplectic', 'wisdom-holman', 'symba']
dependencies = [
'numpy>=1.26.4',
'cython>=3.0.8',
'scipy>=1.12.0',
'h5py==3.10.0',
'netcdf4>=1.6.5',
'h5netcdf>=1.3.0',
'dask>=2024.2.1',
'distributed>=2024.2.1',
'bottleneck>=1.3.8',
'xarray>=2024.2.0',
'matplotlib>=3.8.3',
'astropy>=6.0.0',
'astroquery>=0.4.6',
'tqdm>=4.66.2',
]
[project.optional-dependencies]
pyshtools = ["pyshtools>=4.12.2"]
[project.urls]
repository = 'https://github.com/MintonGroup/swiftest'
documentation = 'https://swiftest.readthedocs.io/en/latest/'
changelog = 'https://swiftest.readthedocs.io/en/latest/whats-new.html'
[project.scripts]
swiftest = "swiftest.cli:main"
swiftest_caf = "swiftest.cli:main_caf"
[build-system]
requires = [
"python_version>='3.9'",
"scikit-build-core>=0.8.2",
"cython>=3.0.8",
"numpy>=1.26.4",
]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
cmake.version = ">=3.23.1"
ninja.version = ">=1.11.1"
sdist.include = ["src/globals/globals_module.f90.in","swiftest/*.py","swiftest/*.pyx","swiftest/*.h"]
build-dir = "build/{wheel_tag}"
cmake.verbose = true
[tool.cibuildwheel]
test-command = "pytest -vv {package}/tests"
test-requires = [
"python_version>='3.9'",
"pytest>=8.0.0",
"numpy>=1.26.4"
]
skip = "pp* *i686 *-manylinux_i686 *_ppc64le *_s390x *-musllinux* *-win32"
build-verbosity = 1
[tool.cibuildwheel.macos.environment]
SKBUILD_CMAKE_ARGS=["-DMACHINE_CODE_VALUE=generic","-DUSE_COARRAY:BOOL=OFF"]
PREFIX="$(pwd)/build/deps/usr/local"
NETCDF_FORTRAN_HOME="${PREFIX}"
NETCDF_FORTRAN_INCLUDE="${NETCDF_FORTRAN_HOME}/include"
NETCDF_DIR="${NETCDF_FORTRAN_HOME}/lib/cmake/netCDF"
NETCDF_FORTRAN_DIR="${NETCDF_FORTRAN_HOME}/lib/cmake/netCDF"
SHTOOLS_HOME="${PREFIX}"
ARCH="$(uname -m)"
MACOSX_DEPLOYMENT_TARGET="$(buildscripts/get_macosx_deployment_target.sh)"
HOMEBREW_PREFIX="$(brew --prefix)"
LD_LIBRARY_PATH="${PREFIX}/lib:${HOMEBREW_PREFIX}/lib:${HOMEBREW_PREFIX}/lib/gcc/${GFORTRAN_VERSION}"
DYLD_LIBRARY_PATH="${LD_LIBRARY_PATH}"
REPAIR_LIBRARY_PATH="${LD_LIBRARY_PATH}"
LDFLAGS="-Wl,-no_compact_unwind -L${PREFIX}/lib -L${HOMEBREW_PREFIX}/lib -L${HOMEBREW_PREFIX}/lib/gcc/${GFORTRAN_VERSION}"
CPATH="${PREFIX}/include:${HOMEBREW_PREFIX}/include"
CPPFLAGS="-isystem ${PREFIX}/include"
FCFLAGS="-arch ${ARCH}"
FFLAGS="${FCFLAGS}"
CFLAGS="${FCFLAGS} -Wno-deprecated-non-prototype -arch ${ARCH}"
CXXFLAGS="${CFLAGS}"
MPI_HOME="${HOMEBREW_PREFIX}"
PATH="${HOMEBREW_PREFIX}/opt/coreutils/libexec/gnubin:${HOMEBREW_PREFIX}/bin:${PREFIX}/bin:${PATH}"
GFORTRAN_VERSION="$(buildscripts/get_gfortran_version.sh)"
OMPI_FC="$(buildscripts/get_gfortran_path.sh)"
CC="mpicc"
CXX="mpic++"
FC="mpifort"
F77="mpifort"
F95="mpifort"
[tool.cibuildwheel.linux.environment]
SKBUILD_CMAKE_ARGS=["-DMACHINE_CODE_VALUE=generic","-DUSE_COARRAY:BOOL=ON"]
PREFIX="$(pwd)/build/deps/usr/local"
NETCDF_FORTRAN_HOME="${PREFIX}"
NETCDF_FORTRAN_INCLUDE="${NETCDF_FORTRAN_HOME}/include"
NETCDF_DIR="${NETCDF_FORTRAN_HOME}/lib/cmake/netCDF"
NETCDF_FORTRAN_DIR="${NETCDF_FORTRAN_HOME}/lib/cmake/netCDF"
SHTOOLS_HOME="${PREFIX}"
OpenCoarrays_DIR="${PREFIX}/../../opencoarrays/2.10.2/lib64/cmake/opencoarrays"
OpenCoarrays_HOME="${PREFIX}/../../opencoarrays/2.10.2"
MPI_HOME="/usr/lib64/openmpi"
CPATH="${PREFIX}/include:${CPATH}"
PATH="${PREFIX}/bin:${MPI_HOME}/bin:${PATH}"
LD_LIBRARY_PATH="${PREFIX}/lib:${HOMEBREW_PREFIX}/lib"
CFLAGS="-Wa,--noexecstack"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-L${PREFIX}/lib"
REPAIR_LIBRARY_PATH="${LD_LIBRARY_PATH}"
GFORTRAN_VERSION="$(buildscripts/get_gfortran_version.sh)"
OMPI_FC="$(buildscripts/get_gfortran_path.sh)"
CC="mpicc"
CXX="mpic++"
FC="mpifort"
F77="mpifort"
F95="mpifort"
[tool.cibuildwheel.macos]
before-all = [
"brew install coreutils pkg-config fftw vecLibFort opencoarrays open-mpi;buildscripts/build_dependencies.sh"
]
repair-wheel-command = """\
DYLD_LIBRARY_PATH=$REPAIR_LIBRARY_PATH delocate-wheel \
--require-archs {delocate_archs} -w {dest_dir} -v {wheel}
"""
[tool.cibuildwheel.linux]
skip = "pp* *-manylinux_i686* *-musllinux* cp312-*_aarch64*"
before-all = [
"yum install epel-release -y",
"yum install doxygen libxml2-devel libcurl-devel fftw-static openblas-static openmpi-devel -y",
"buildscripts/build_dependencies.sh"
]
[[tool.scikit-build.generate]]
path = "version.txt"
location = "source"
template = '''${version}'''