Skip to content

Commit

Permalink
pyproject.toml cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMock committed Aug 15, 2023
1 parent 18bfb72 commit 9801cc9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include MANIFEST.in
include README.rst
include NOTICE
include CHANGELOG.md
include setup.py
include pyproject.toml
recursive-include elasticsearch_serverless* py.typed *.pyi
recursive-include docs/sphinx *

Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
SOURCE_DIR = os.path.dirname(os.path.abspath(__file__))
SOURCE_FILES = (
"docs/sphinx/conf.py",
"setup.py",
"noxfile.py",
"elasticsearch_serverless/",
"test_elasticsearch_serverless/",
"utils/",
"pyproject.toml",
)


Expand Down
15 changes: 13 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
keywords = [
"elasticsearch",
"elastic",
"kibana",
"mapping",
"REST",
"search",
"client",
"index",
]
dependencies = [
"elastic-transport>=8,<9",
]
Expand All @@ -49,7 +59,8 @@ Homepage = "https://github.com/elastic/elasticsearch-serverless-python"
"Source Code" = "https://github.com/elastic/elasticsearch-serverless-python"

[tool.hatch.version]
path = "elasticsearch_serverless/__init__.py"
path = "elasticsearch_serverless/_version.py"
pattern = "__versionstr__ = \"(?P<version>[^\"]+)\""

[tool.hatch.build.targets.sdist]
include = [
Expand All @@ -58,7 +69,7 @@ include = [

[tool.pytest]
junit_family = "legacy"
addopts = "-vvv -p no:logging --cov-report=term-missing --cov=elasticsearch --cov-config=.coveragerc"
addopts = "-vvv -p no:logging --cov-report=term-missing --cov=elasticsearch_serverless --cov-config=.pyproject.toml"

[tool.isort]
profile = "black"
Expand Down

0 comments on commit 9801cc9

Please sign in to comment.