Skip to content

Commit

Permalink
Added pyproject file and some other files necessary for a cleaner bui…
Browse files Browse the repository at this point in the history
…ld process
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Oct 19, 2023
1 parent 64a56cc commit c910c3d
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
!version.txt
!src/**.f90
!ctem/**.py
!cmake/Modules/*.cmake
!cmake/Modules/*.cmake
!pyproject.toml
!LICENSE
9 changes: 9 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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}'''

2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023.9.0
2023.10.0

0 comments on commit c910c3d

Please sign in to comment.