Skip to content

Commit 9801cc9

Browse files
committed
pyproject.toml cleanup
1 parent 18bfb72 commit 9801cc9

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include MANIFEST.in
44
include README.rst
55
include NOTICE
66
include CHANGELOG.md
7-
include setup.py
7+
include pyproject.toml
88
recursive-include elasticsearch_serverless* py.typed *.pyi
99
recursive-include docs/sphinx *
1010

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
SOURCE_DIR = os.path.dirname(os.path.abspath(__file__))
2323
SOURCE_FILES = (
2424
"docs/sphinx/conf.py",
25-
"setup.py",
2625
"noxfile.py",
2726
"elasticsearch_serverless/",
2827
"test_elasticsearch_serverless/",
2928
"utils/",
29+
"pyproject.toml",
3030
)
3131

3232

pyproject.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ classifiers = [
3030
"Programming Language :: Python :: 3.10",
3131
"Programming Language :: Python :: 3.11",
3232
]
33+
keywords = [
34+
"elasticsearch",
35+
"elastic",
36+
"kibana",
37+
"mapping",
38+
"REST",
39+
"search",
40+
"client",
41+
"index",
42+
]
3343
dependencies = [
3444
"elastic-transport>=8,<9",
3545
]
@@ -49,7 +59,8 @@ Homepage = "https://github.com/elastic/elasticsearch-serverless-python"
4959
"Source Code" = "https://github.com/elastic/elasticsearch-serverless-python"
5060

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

5465
[tool.hatch.build.targets.sdist]
5566
include = [
@@ -58,7 +69,7 @@ include = [
5869

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

6374
[tool.isort]
6475
profile = "black"

0 commit comments

Comments
 (0)