Skip to content

Commit

Permalink
Merge pull request #8 from ZedThree/modernise-setup
Browse files Browse the repository at this point in the history
Convert build system to use pyproject.toml
  • Loading branch information
bendudson committed Oct 12, 2022
2 parents 2b02fb9 + 7fe3d91 commit 1aea35c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 38 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
FreeGS.egg-info/
build/
dist/

venv
39 changes: 39 additions & 0 deletions pyproject.toml
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",
]
39 changes: 1 addition & 38 deletions setup.py
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()

0 comments on commit 1aea35c

Please sign in to comment.