From 8fbffd2d8051366aeeed9472658e5dffc30fd94f Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Mon, 19 Aug 2024 00:41:28 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Updated=20hatch=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f31307c..bafcfb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,9 +2,10 @@ requires = ["hatchling","hatch-requirements-txt"] build-backend = "hatchling.build" +#Project [project] name = "esxport" -dynamic = ["version","dependencies"] +dynamic = ["version","dependencies","optional-dependencies"] description = "An adept Python CLI utility designed for querying Elasticsearch and exporting result as a CSV file." readme = {file = "README.md", content-type = "text/markdown"} requires-python = ">=3.8" @@ -37,13 +38,6 @@ classifiers = [ "Topic :: Text Processing", "Topic :: Utilities", ] -[tool.hatch.metadata] -allow-direct-references = true -[tool.hatch.metadata.hooks.requirements_txt] -files = ["requirements.txt"] -[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] -dev = ["requirements.dev.txt"] - [project.urls] Homepage = "https://github.com/nikhilbadyal/esxport" "Bug Tracker"="https://github.com/nikhilbadyal/esxport/issues" @@ -51,9 +45,23 @@ Repository = "https://github.com/nikhilbadyal/esxport.git" [project.scripts] esxport = "esxport.cli:cli" - +#Hatch +[tool.hatch.metadata] +allow-direct-references = true +[tool.hatch.metadata.hooks.requirements_txt] +files = ["requirements.txt"] +[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] +dev = ["requirements.dev.txt"] [tool.hatch.version] path = "esxport/__init__.py" +[tool.hatch.build.targets.sdist] +only-include = ["esxport"] +[tool.hatch.build.targets.wheel] +only-include = ["esxport"] + + + + [tool.ruff] line-length = 120