diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 1ea1a47..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,3 +0,0 @@ -include README.md -include LICENSE.md -include float_raster/VERSION diff --git a/float_raster/LICENSE.md b/float_raster/LICENSE.md new file mode 120000 index 0000000..7eabdb1 --- /dev/null +++ b/float_raster/LICENSE.md @@ -0,0 +1 @@ +../LICENSE.md \ No newline at end of file diff --git a/float_raster/README.md b/float_raster/README.md new file mode 120000 index 0000000..32d46ee --- /dev/null +++ b/float_raster/README.md @@ -0,0 +1 @@ +../README.md \ No newline at end of file diff --git a/float_raster/VERSION.py b/float_raster/VERSION.py deleted file mode 100644 index e4f476e..0000000 --- a/float_raster/VERSION.py +++ /dev/null @@ -1,4 +0,0 @@ -""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """ -__version__ = ''' -0.6 -'''.strip() diff --git a/float_raster/__init__.py b/float_raster/__init__.py index db3be2a..cc23c3c 100644 --- a/float_raster/__init__.py +++ b/float_raster/__init__.py @@ -5,7 +5,7 @@ Module for rasterizing polygons, with float-precision anti-aliasing on See the documentation for float_raster.raster(...) for details. """ -from .VERSION import __version__ from .float_raster import * __author__ = 'Jan Petykiewicz' +__version__ = '0.6' diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0229023 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,38 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "float_raster" +description = "High-precision anti-aliasing polygon rasterizer" +readme = "README.md" +license = { file = "LICENSE.md" } +authors = [ + { name="Jan Petykiewicz", email="jan@mpxd.net" }, + ] +homepage = "https://mpxd.net/code/jan/float_raster" +repository = "https://mpxd.net/code/jan/float_raster" +keywords = [ + "coverage", + ] +classifiers = [ + "Programming Language :: Python :: 3", + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Intended Audience :: Information Technology", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: GNU Affero General Public License v3", + "Topic :: Scientific/Engineering", + "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)", + "Topic :: Multimedia :: Graphics :: Graphics Conversion", + ] +requires-python = ">=3.8" +dynamic = ["version"] +dependencies = [ + "numpy~=1.21", + "scipy", + ] + +[tool.hatch.version] +path = "float_raster/__init__.py" diff --git a/setup.py b/setup.py deleted file mode 100644 index ed502ba..0000000 --- a/setup.py +++ /dev/null @@ -1,40 +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('float_raster/VERSION.py', 'rt') as f: - version = f.readlines()[2].strip() - -setup(name='float_raster', - version=version, - description='High-precision anti-aliasing polygon rasterizer', - long_description=long_description, - long_description_content_type='text/markdown', - author='Jan Petykiewicz', - author_email='jan@mpxd.net', - url='https://mpxd.net/code/jan/float_raster', - packages=find_packages(), - package_data={ - 'float_raster': ['py.typed'] - }, - install_requires=[ - 'numpy', - 'scipy', - ], - classifiers=[ - 'Programming Language :: Python :: 3', - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'Intended Audience :: Information Technology', - 'Intended Audience :: Manufacturing', - 'Intended Audience :: Science/Research', - 'License :: OSI Approved :: GNU Affero General Public License v3', - 'Topic :: Scientific/Engineering', - 'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)', - 'Topic :: Multimedia :: Graphics :: Graphics Conversion', - ], - )