diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index c28ab72..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,2 +0,0 @@ -include README.md -include LICENSE.md diff --git a/adze/LICENSE.md b/adze/LICENSE.md new file mode 120000 index 0000000..7eabdb1 --- /dev/null +++ b/adze/LICENSE.md @@ -0,0 +1 @@ +../LICENSE.md \ No newline at end of file diff --git a/adze/README.md b/adze/README.md new file mode 120000 index 0000000..32d46ee --- /dev/null +++ b/adze/README.md @@ -0,0 +1 @@ +../README.md \ No newline at end of file diff --git a/adze/__init__.py b/adze/__init__.py index afffb3e..34a5a11 100644 --- a/adze/__init__.py +++ b/adze/__init__.py @@ -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 .voxel import voxelize +__author__ = 'Jan Petykiewicz' +__version__ = '0.1' diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a3535b3 --- /dev/null +++ b/pyproject.toml @@ -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" diff --git a/setup.py b/setup.py deleted file mode 100644 index c057451..0000000 --- a/setup.py +++ /dev/null @@ -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={ - }, - ) -