move to hatch-based build

This commit is contained in:
Jan Petykiewicz 2022-08-18 23:47:26 -07:00
commit 2bb3318801
6 changed files with 50 additions and 50 deletions

View file

@ -1,2 +0,0 @@
include README.md
include LICENSE.md

1
adze/LICENSE.md Symbolic link
View file

@ -0,0 +1 @@
../LICENSE.md

1
adze/README.md Symbolic link
View file

@ -0,0 +1 @@
../README.md

View file

@ -61,3 +61,5 @@ from .boundary import build_polyhedron, boundary_from_poly
from .shapes import build_tetrahedron, build_box, planes_from_tetrahedron, planes_from_box from .shapes import build_tetrahedron, build_box, planes_from_tetrahedron, planes_from_box
from .voxel import voxelize from .voxel import voxelize
__author__ = 'Jan Petykiewicz'
__version__ = '0.1'

46
pyproject.toml Normal file
View file

@ -0,0 +1,46 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "adze"
description = "Polyhedron clipping and antialiased voxelization"
readme = "README.md"
license = { file = "LICENSE.md" }
authors = [
{ name="Jan Petykiewicz", email="jan@mpxd.net" },
]
homepage = "https://mpxd.net/code/jan/adze"
repository = "https://mpxd.net/code/jan/adze"
keywords = [
"geometry",
"geometric",
"polyhedron",
"voxel",
"voxelize",
"clip",
"clipping",
"split",
"moment",
"schlegel",
"3D",
"boolean",
]
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",
"Operating System :: OS Independent",
"Topic :: Multimedia :: Graphics",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
"numpy~=1.21",
]
[tool.hatch.version]
path = "adze/__init__.py"

View file

@ -1,48 +0,0 @@
#!/usr/bin/env python3
from setuptools import setup, find_packages
setup(name='adze',
version='0.1',
description='Polyhedron clipping and antialiased voxelization',
author='Jan Petykiewicz',
author_email='jan@mpxd.net',
url='https://mpxd.net/code/jan/adze',
keywords=[
'geometry',
'geometric',
'polyhedron',
'voxel',
'voxelize',
'clip',
'clipping',
'split',
'moment',
'schlegel',
'3D',
'boolean',
],
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Topic :: Multimedia :: Graphics',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=find_packages(),
install_requires=[
'typing',
'numpy',
],
extras_require={
},
)