Skip to content

Commit

Permalink
✨ Updated hatch config
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilbadyal committed Aug 18, 2024
1 parent 032c458 commit 8fbffd2
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -37,23 +38,30 @@ 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"
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
Expand Down

0 comments on commit 8fbffd2

Please sign in to comment.