move to hatch-based builds
This commit is contained in:
parent
9276f8f86b
commit
e1303b8a5c
@ -1,2 +0,0 @@
|
||||
include README.md
|
||||
include LICENSE.md
|
1
gridlock/LICENSE.md
Symbolic link
1
gridlock/LICENSE.md
Symbolic link
@ -0,0 +1 @@
|
||||
../LICENSE.md
|
1
gridlock/README.md
Symbolic link
1
gridlock/README.md
Symbolic link
@ -0,0 +1 @@
|
||||
../README.md
|
@ -1,4 +0,0 @@
|
||||
""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """
|
||||
__version__ = '''
|
||||
1.0
|
||||
'''.strip()
|
@ -19,6 +19,5 @@ from .error import GridError
|
||||
from .grid import Grid
|
||||
|
||||
__author__ = 'Jan Petykiewicz'
|
||||
|
||||
from .VERSION import __version__
|
||||
__version__ = '1.0'
|
||||
version = __version__
|
||||
|
55
pyproject.toml
Normal file
55
pyproject.toml
Normal file
@ -0,0 +1,55 @@
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "gridlock"
|
||||
description = "Coupled gridding library"
|
||||
readme = "README.md"
|
||||
license = { file = "LICENSE.md" }
|
||||
authors = [
|
||||
{ name="Jan Petykiewicz", email="jan@mpxd.net" },
|
||||
]
|
||||
homepage = "https://mpxd.net/code/jan/gridlock"
|
||||
repository = "https://mpxd.net/code/jan/gridlock"
|
||||
keywords = [
|
||||
"FDTD",
|
||||
"gridding",
|
||||
"simulation",
|
||||
"nonuniform",
|
||||
"FDFD",
|
||||
"finite",
|
||||
"difference",
|
||||
]
|
||||
classifiers = [
|
||||
"Programming Language :: Python :: 3",
|
||||
"Development Status :: 4 - Beta",
|
||||
"Intended Audience :: Developers",
|
||||
"Intended Audience :: Science/Research",
|
||||
"License :: OSI Approved :: GNU Affero General Public License v3",
|
||||
"Topic :: Multimedia :: Graphics :: 3D Rendering",
|
||||
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
|
||||
"Topic :: Scientific/Engineering :: Physics",
|
||||
"Topic :: Scientific/Engineering :: Visualization",
|
||||
]
|
||||
requires-python = ">=3.8"
|
||||
include = [
|
||||
"LICENSE.md"
|
||||
]
|
||||
dynamic = ["version"]
|
||||
dependencies = [
|
||||
"numpy~=1.21",
|
||||
"float_raster",
|
||||
]
|
||||
|
||||
|
||||
[tool.hatch.version]
|
||||
path = "gridlock/__init__.py"
|
||||
|
||||
[project.optional-dependencies]
|
||||
visualization = ["matplotlib"]
|
||||
visualization-isosurface = [
|
||||
"matplotlib",
|
||||
"skimage>=0.13",
|
||||
"mpl_toolkits",
|
||||
]
|
47
setup.py
47
setup.py
@ -1,47 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
with open('README.md', 'r') as f:
|
||||
long_description = f.read()
|
||||
|
||||
with open('gridlock/VERSION.py', 'rt') as f:
|
||||
version = f.readlines()[2].strip()
|
||||
|
||||
setup(name='gridlock',
|
||||
version=version,
|
||||
description='Coupled gridding library',
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
author='Jan Petykiewicz',
|
||||
author_email='jan@mpxd.net',
|
||||
url='https://mpxd.net/code/jan/gridlock',
|
||||
packages=find_packages(),
|
||||
package_data={
|
||||
'gridlock': ['py.typed'],
|
||||
},
|
||||
install_requires=[
|
||||
'numpy',
|
||||
'float_raster',
|
||||
],
|
||||
extras_require={
|
||||
'visualization': ['matplotlib'],
|
||||
'visualization-isosurface': [
|
||||
'matplotlib',
|
||||
'skimage>=0.13',
|
||||
'mpl_toolkits',
|
||||
],
|
||||
},
|
||||
classifiers=[
|
||||
'Programming Language :: Python :: 3',
|
||||
'Development Status :: 4 - Beta',
|
||||
'Intended Audience :: Developers',
|
||||
'Intended Audience :: Science/Research',
|
||||
'License :: OSI Approved :: GNU Affero General Public License v3',
|
||||
'Topic :: Multimedia :: Graphics :: 3D Rendering',
|
||||
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
|
||||
'Topic :: Scientific/Engineering :: Physics',
|
||||
'Topic :: Scientific/Engineering :: Visualization',
|
||||
],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user