From c910c3de2a7eb2bebd330677979c8a9bf0a7dfd0 Mon Sep 17 00:00:00 2001 From: MintoDA1 <51412913+MintoDA1@users.noreply.github.com> Date: Thu, 19 Oct 2023 16:34:33 -0400 Subject: [PATCH] Added pyproject file and some other files necessary for a cleaner build process --- .gitignore | 4 +++- LICENSE | 9 +++++++++ pyproject.toml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ version.txt | 2 +- 4 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 LICENSE create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore index 733dc353..70f13001 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,6 @@ !version.txt !src/**.f90 !ctem/**.py -!cmake/Modules/*.cmake \ No newline at end of file +!cmake/Modules/*.cmake +!pyproject.toml +!LICENSE \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..2d8eed6d --- /dev/null +++ b/LICENSE @@ -0,0 +1,9 @@ +Copyright 2023 - David Minton + +This file is part of CTEM. +Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License +as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty +of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +You should have received a copy of the GNU General Public License along with Swiftest. +If not, see: https://www.gnu.org/licenses. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..ba12d7c1 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,53 @@ +[project] +name = "ctem" +version = "2023.10.0" +authors=[ + {name = 'David A. Minton', email='daminton@purdue.edu'}, + {name = 'James E. Richardson'}, + {name = 'Ya Huei Huang'}, + {name = 'Masatoshi Hirabayashi'}, + {name = 'Austin Blevins'}, + {name = 'Jun Du'} +] +maintainers = [ + {name = 'David A. Minton', email='daminton@purdue.edu'}, +] +readme = "README.md" +requires-python=">=3.8" +license={file = "LICENSE"} +classifiers=[ +'Development Status :: 3 - Alpha', +'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', 'monte carlo', 'moon', 'landscape evolution'] +dependencies = [ + 'numpy>=1.24.3', + 'scipy>=1.10.1', + 'matplotlib>=3.7', + 'cython>=3.0.0', + 'mkdocs>=1.5.3' +] + +[project.urls] +Repository = 'https://github.itap.purdue.edu/MintonGroup/ctem' + +[build-system] +requires = [ + "scikit-build-core", + "cython>=3.0.0", + "pytest", +] +build-backend = "scikit_build_core.build" + +[tool.scikit-build] +build-dir = "build/{wheel_tag}" +cmake.verbose = true + +[[tool.scikit-build.generate]] +path = "version.txt" +location = "source" +template = '''${version}''' + diff --git a/version.txt b/version.txt index 882e3029..3bae6081 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2023.9.0 \ No newline at end of file +2023.10.0 \ No newline at end of file