1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
import pathlib
from setuptools import setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (
(HERE / "README.md")
.read_text()
.replace(
# use jsdelivr here to work inside PyPI description
'src="assets/demo.svg"',
'src="https://cdn.jsdelivr.net/gh/jared-hughes/isosurfaces/assets/demo.svg"',
)
)
# This call to setup() does all the work
setup(
name="isosurfaces",
version="0.1.2",
description="Construct isolines/isosurfaces over a 2D/3D scalar field defined by a function (not a uniform grid)",
long_description=README,
long_description_content_type="text/markdown",
license_files=("LICENSE",),
url="https://github.com/jared-hughes/isosurfaces",
author="Jared Hughes",
author_email="jahughes.dev@gmail.com",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
],
python_requires=">=3.8",
packages=["isosurfaces"],
include_package_data=True,
package_data={"isosurfaces": ["py.typed"]},
install_requires=["numpy"],
)
|