forked from pyvista/pyvista
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move project metadata to pyproject.toml; avoid calling setup.py (pyvi…
- Loading branch information
Showing
5 changed files
with
102 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,94 @@ | ||
[build-system] | ||
requires = ['setuptools'] | ||
build-backend = 'setuptools.build_meta' | ||
|
||
[project] | ||
name = 'pyvista' | ||
description = 'Easier Pythonic interface to VTK' | ||
authors = [ | ||
{name = 'PyVista Developers', email = '[email protected]'}, | ||
] | ||
readme = 'README.rst' | ||
requires-python = '>=3.7' | ||
keywords = ['vtk', 'numpy', 'plotting', 'mesh'] | ||
license = {text = 'MIT'} | ||
classifiers = [ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Scientific/Engineering :: Information Analysis', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX', | ||
'Operating System :: MacOS', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
] | ||
dependencies = [ | ||
'imageio', | ||
'numpy', | ||
'pillow', | ||
'pooch', | ||
'scooby>=0.5.1', | ||
"typing-extensions; python_version < '3.8'", | ||
'vtk', | ||
] | ||
dynamic = ['version'] | ||
|
||
[project.optional-dependencies] | ||
all = [ | ||
'cmocean', | ||
'colorcet', | ||
'ipyvtklink', | ||
'matplotlib', | ||
'meshio>=5.2', | ||
'panel', | ||
'pythreejs', | ||
] | ||
colormaps = [ | ||
'cmocean', | ||
'colorcet', | ||
'matplotlib', | ||
] | ||
io = ['meshio>=5.2'] | ||
jupyter = [ | ||
'ipyvtklink', | ||
'panel', | ||
'pythreejs', | ||
] | ||
|
||
[project.urls] | ||
Documentation = 'https://docs.pyvista.org/' | ||
"Bug Tracker" = 'https://github.com/pyvista/pyvista/issues' | ||
"Source Code" = 'https://github.com/pyvista/pyvista' | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = 'pyvista._version.__version__'} | ||
|
||
[tool.setuptools.packages.find] | ||
include = [ | ||
'pyvista', | ||
'pyvista.*', | ||
] | ||
|
||
[tool.setuptools.package-data] | ||
pyvista = [ | ||
'py.typed', | ||
] | ||
"pyvista.examples" = [ | ||
'2k_earth_daymap.jpg', | ||
'airplane.ply', | ||
'ant.ply', | ||
'channels.vti', | ||
'globe.vtk', | ||
'hexbeam.vtk', | ||
'nut.ply', | ||
'rectilinear.vtk', | ||
'sphere.ply', | ||
'uniform.vtk', | ||
] | ||
|
||
[tool.isort] | ||
profile = 'black' | ||
line_length = 100 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,4 @@ | ||
"""Installation file for python pyvista module.""" | ||
from io import open as io_open | ||
import os | ||
|
||
"""See pyproject.toml for project metadata.""" | ||
from setuptools import setup | ||
|
||
package_name = 'pyvista' | ||
|
||
__version__ = None | ||
filepath = os.path.dirname(__file__) | ||
version_file = os.path.join(filepath, package_name, '_version.py') | ||
with io_open(version_file, mode='r') as fd: | ||
exec(fd.read()) | ||
|
||
install_requires = [ | ||
'numpy', | ||
'imageio', | ||
'pillow', | ||
'pooch', | ||
'scooby>=0.5.1', | ||
'vtk', | ||
"typing-extensions; python_version < '3.8'", | ||
] | ||
|
||
readme_file = os.path.join(filepath, 'README.rst') | ||
|
||
setup( | ||
name=package_name, | ||
packages=[ | ||
'pyvista', | ||
'pyvista.examples', | ||
'pyvista.core', | ||
'pyvista.core.filters', | ||
'pyvista.demos', | ||
'pyvista.jupyter', | ||
'pyvista.plotting', | ||
'pyvista.utilities', | ||
'pyvista.ext', | ||
], | ||
version=__version__, | ||
description='Easier Pythonic interface to VTK', | ||
long_description=io_open(readme_file, encoding="utf-8").read(), | ||
long_description_content_type='text/x-rst', | ||
author='PyVista Developers', | ||
author_email='[email protected]', | ||
license='MIT', | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Scientific/Engineering :: Information Analysis', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX', | ||
'Operating System :: MacOS', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
], | ||
url='https://github.com/pyvista/pyvista', | ||
keywords='vtk numpy plotting mesh', | ||
package_data={ | ||
'pyvista': [ | ||
'py.typed', | ||
], | ||
'pyvista.examples': [ | ||
'airplane.ply', | ||
'ant.ply', | ||
'channels.vti', | ||
'hexbeam.vtk', | ||
'sphere.ply', | ||
'nut.ply', | ||
'uniform.vtk', | ||
'rectilinear.vtk', | ||
'globe.vtk', | ||
'2k_earth_daymap.jpg', | ||
], | ||
}, | ||
project_urls={ | ||
"Documentation": "https://docs.pyvista.org/", | ||
"Bug Tracker": "https://github.com/pyvista/pyvista/issues", | ||
"Source Code": "https://github.com/pyvista/pyvista", | ||
}, | ||
python_requires='>=3.7.*', | ||
install_requires=install_requires, | ||
extras_require={ | ||
'all': [ | ||
'matplotlib', | ||
'colorcet', | ||
'cmocean', | ||
'meshio>=5.2', | ||
'ipyvtklink', | ||
'panel', | ||
'pythreejs', | ||
], | ||
'colormaps': ['matplotlib', 'colorcet', 'cmocean'], | ||
'io': ['meshio>=5.2'], | ||
'jupyter': ['ipyvtklink', 'panel', 'pythreejs'], | ||
}, | ||
zip_safe=False, | ||
) | ||
setup() |