-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from ZedThree/modernise-setup
Convert build system to use pyproject.toml
- Loading branch information
Showing
3 changed files
with
42 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ | |
FreeGS.egg-info/ | ||
build/ | ||
dist/ | ||
|
||
venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[build-system] | ||
requires = ["setuptools >= 61.0.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "FreeGS" | ||
description = "Free boundary Grad-Shafranov solver for tokamak plasma equilibria" | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
classifiers = [ | ||
"Programming Language :: Python", | ||
"Development Status :: 3 - Alpha", | ||
"Natural Language :: English", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Scientific/Engineering :: Physics" | ||
] | ||
version = "0.7.0" | ||
license = {text = "GNU Lesser General Public License v3 or later (LGPLv3+)"} | ||
authors = [{name = "Ben Dudson", email = "benjamin.dudson@york.ac.uk"}] | ||
urls = {project = "https://github.com/freegs-plasma/freegs"} | ||
dependencies = [ | ||
"numpy>=1.8", | ||
"scipy>=0.14", | ||
"matplotlib>=1.3", | ||
"h5py>=2.10.0", | ||
"Shapely>=1.7.1", | ||
] | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"pytest", | ||
] | ||
docs = [ | ||
"sphinx>=3.4,<5", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,3 @@ | ||
from setuptools import setup | ||
import os | ||
|
||
def read(fname): | ||
return open(os.path.join(os.path.dirname(__file__), fname)).read() | ||
|
||
import freegs | ||
|
||
setup( | ||
name="FreeGS", | ||
version=freegs.__version__, | ||
packages=["freegs"], | ||
|
||
license="LGPL", | ||
author="Ben Dudson", | ||
author_email='benjamin.dudson@york.ac.uk', | ||
url="https://github.com/bendudson/freegs", | ||
description="Free boundary Grad-Shafranov solver for tokamak plasma equilibria", | ||
|
||
long_description=read("README.md"), | ||
|
||
install_requires=['numpy>=1.8', | ||
'scipy>=0.14', | ||
'matplotlib>=1.3', | ||
'h5py>=2.10.0'], | ||
|
||
platforms='any', | ||
|
||
classifiers = [ | ||
'Programming Language :: Python', | ||
'Development Status :: 3 - Alpha', | ||
'Natural Language :: English', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'Topic :: Scientific/Engineering :: Physics' | ||
], | ||
) | ||
setup() |