Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pyproject.toml for project metadata #1438

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version := `python3 -c "from configparser import ConfigParser; p = ConfigParser(); p.read('setup.cfg'); print(p['metadata']['version'])"`
version := `python3 -c "import pathlib, re; print(re.findall('version = \"(.*)\"', pathlib.Path('pyproject.toml').read_text())[0])"`

default:
@echo "\"just publish\"?"
Expand Down
37 changes: 19 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[build-system]
requires = ["setuptools >=61"]
build-backend = "setuptools.build_meta"

[project]
name = "meshio"
version = "5.0.0"
version = "5.3.4"
description = "I/O for many mesh formats"
readme = "README.md"
requires-python = ">=3.7"
license = {file = "LICENSE.txt"}
license = {text = "MIT"}
keywords = ["mesh", "file formats", "scientific", "engineering", "fem", "finite elements"]
authors = [
{email = "[email protected]"},
{name = "Nico Schlömer"}
{name = "Nico Schlömer"}, {email = "[email protected]"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
Expand All @@ -22,32 +22,33 @@ classifiers = [
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering",
"Topic :: Utilities"
"Topic :: Utilities",
]
requires-python = ">=3.7"
dependencies = [
"importlib_metadata; python_version<'3.8'",
"numpy>=1.20.0"
"numpy>=1.20.0",
"rich",
]

[project.optional-dependencies]
all = [
"netCDF4",
"h5py" # CGNS, H5M, MED, XDMF formats
"h5py", # CGNS, H5M, MED, XDMF formats
]

[project.urls]
homepage = "https://github.com/nschloe/meshio"
code = "https://github.com/nschloe/meshio"
issues = "https://github.com/nschloe/meshio/issues"
funding = "https://github.com/sponsors/nschloe"
Code = "https://github.com/nschloe/meshio"
Issues = "https://github.com/nschloe/meshio/issues"
Funding = "https://github.com/sponsors/nschloe"

[tool.setuptools.packages.find]
where = ["src"]

[project.entry-points.console_scripts]
meshio = "meshio._cli:main"

[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[tool.isort]
profile = "black"
57 changes: 0 additions & 57 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,60 +1,3 @@
[metadata]
name = meshio
version = 5.3.4
author = Nico Schlömer et al.
author_email = [email protected]
description = I/O for many mesh formats
url = https://github.com/nschloe/meshio
project_urls =
Code=https://github.com/nschloe/meshio
Issues=https://github.com/nschloe/meshio/issues
Funding=https://github.com/sponsors/nschloe
long_description = file: README.md
long_description_content_type = text/markdown
license = MIT
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Scientific/Engineering
Topic :: Utilities
keywords =
mesh
file formats
scientific
engineering
fem
finite elements

[options]
package_dir =
=src
packages = find:
install_requires =
importlib_metadata;python_version<"3.8"
numpy
rich
python_requires = >=3.7

[options.packages.find]
where=src

[options.extras_require]
all =
netCDF4
h5py # CGNS, H5M, MED, XDMF formats

[options.entry_points]
console_scripts =
meshio = meshio._cli:main

[options.data_files]
share/paraview-5.9/plugins =
tools/paraview-meshio-plugin.py