From 36acbbee88c28d8378e2591935dea8de10b2fbb2 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Mon, 4 Dec 2023 19:13:35 +0100 Subject: [PATCH] Move to pyproject.toml. --- .pre-commit-config.yaml | 4 --- codecov.yml | 2 -- pyproject.toml | 59 ++++++++++++++++++++++++++++++++++++++++- setup.cfg | 48 --------------------------------- 4 files changed, 58 insertions(+), 55 deletions(-) delete mode 100644 setup.cfg diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 07b5831..00850e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,10 +27,6 @@ repos: hooks: - id: reorder-python-imports args: [--py38-plus, --add-import, 'from __future__ import annotations'] -- repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.5.0 - hooks: - - id: setup-cfg-fmt - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.1.6 hooks: diff --git a/codecov.yml b/codecov.yml index 996ab44..b492d9d 100644 --- a/codecov.yml +++ b/codecov.yml @@ -21,6 +21,4 @@ coverage: ignore: - ".tox/**/*" - - "setup.py" - - "versioneer.py" - "src/pytask_parallel/_version.py" diff --git a/pyproject.toml b/pyproject.toml index 254adc3..adb1c24 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,11 +2,68 @@ requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"] build-backend = "setuptools.build_meta" +[project] +name = "pytask_parallel" +description = "Parallelize the execution of tasks with pytask." +classifiers = [ + "Development Status :: 4 - Beta", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only" +] +requires-python = ">=3.8" +dependencies = [ + "attrs>=21.3.0", + "click", + "cloudpickle", + "loky", + "pluggy>=1.0.0", + "pytask>=0.4.0", + "rich" +] +dynamic = ["version"] + +[[project.authors]] +name = "Tobias Raabe" +email = "raabe@posteo.de" + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.license] +text = "MIT" + +[project.urls] +Homepage = "https://github.com/pytask-dev/pytask-parallel" +Changelog = "https://github.com/pytask-dev/pytask-parallel/blob/main/CHANGES.md" +Documentation = "https://github.com/pytask-dev/pytask-parallel" +Github = "https://github.com/pytask-dev/pytask-parallel" +Tracker = "https://github.com/pytask-dev/pytask-parallel/issues" + +[tool.setuptools] +include-package-data = true +zip-safe = false +platforms = [ "any",] +license-files = [ "LICENSE",] + +[tool.check-manifest] +ignore = ["src/pytask_parallel/_version.py"] + +[project.entry-points.pytask] +pytask_parallel = "pytask_parallel.plugin" + +[tool.setuptools.package-dir] +"" = "src" + +[tool.setuptools.packages.find] +where = ["src"] +namespaces = false [tool.setuptools_scm] write_to = "src/pytask_parallel/_version.py" - [tool.mypy] files = ["src", "tests"] check_untyped_defs = true diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index e2aa791..0000000 --- a/setup.cfg +++ /dev/null @@ -1,48 +0,0 @@ -[metadata] -name = pytask_parallel -description = Parallelize the execution of tasks with pytask. -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/pytask-dev/pytask-parallel -author = Tobias Raabe -author_email = raabe@posteo.de -license = MIT -license_files = LICENSE -platforms = any -classifiers = - Development Status :: 4 - Beta - License :: OSI Approved :: MIT License - Operating System :: OS Independent - Programming Language :: Python :: 3 - Programming Language :: Python :: 3 :: Only -project_urls = - Changelog = https://github.com/pytask-dev/pytask-parallel/blob/main/CHANGES.md - Documentation = https://github.com/pytask-dev/pytask-parallel - Github = https://github.com/pytask-dev/pytask-parallel - Tracker = https://github.com/pytask-dev/pytask-parallel/issues - -[options] -packages = find: -install_requires = - attrs>=21.3.0 - click - cloudpickle - loky - pluggy>=1.0.0 - pytask>=0.4.0 - rich -python_requires = >=3.8 -include_package_data = True -package_dir = =src -zip_safe = False - -[options.packages.find] -where = src - -[options.entry_points] -pytask = - pytask_parallel = pytask_parallel.plugin - -[check-manifest] -ignore = - src/pytask_parallel/_version.py