diff --git a/justfile b/justfile index c5740d162..e22d38a3d 100644 --- a/justfile +++ b/justfile @@ -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\"?" diff --git a/pyproject.toml b/pyproject.toml index cb99ded5b..ce4087dae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "nico.schloemer@gmail.com"}, - {name = "Nico Schlömer"} + {name = "Nico Schlömer"}, {email = "nico.schloemer@gmail.com"}, ] classifiers = [ - "Development Status :: 4 - Beta", - "Programming Language :: Python", "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", @@ -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" diff --git a/setup.cfg b/setup.cfg index 4f69fbe07..2015a1b58 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,60 +1,3 @@ -[metadata] -name = meshio -version = 5.3.4 -author = Nico Schlömer et al. -author_email = nico.schloemer@gmail.com -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