From 89aea6b41ed95cbfd9a6c301073027ea88d5380c Mon Sep 17 00:00:00 2001 From: benoit74 Date: Fri, 1 Mar 2024 13:47:13 +0000 Subject: [PATCH] Adopt hatch-openzim plugin --- pyproject.toml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 177acf1..ac7113f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,29 +1,22 @@ [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-openzim==0.2.0"] build-backend = "hatchling.build" [project] name = "zimit" -authors = [ - { name = "Kiwix", email = "dev@kiwix.org" }, -] -keywords = ["some"] requires-python = ">=3.11,<3.12" description = "Make ZIM file from any website through crawling" readme = "README.md" -license = {text = "GPL-3.0-or-later"} -classifiers = [ - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.11", - "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", -] dependencies = [ "requests==2.31.0", "inotify==0.2.10", "tld==0.13", "warc2zim @ git+https://github.com/openzim/warc2zim@warc2zim2", ] -dynamic = ["version"] +dynamic = ["authors", "classifiers", "keywords", "license", "version", "urls"] + +[tool.hatch.metadata.hooks.openzim-metadata] +kind = "scraper" [tool.hatch.metadata] allow-direct-references = true # to be removed once we use a released warc2zim version @@ -52,10 +45,6 @@ dev = [ "zimit[check]", ] -[project.urls] -Homepage = "https://github.com/openzim/zimit" -Donate = "https://www.kiwix.org/en/support-us/" - [project.scripts] zimit = "zimit:zimit.zimit"