Skip to content

Commit f1f05e7

Browse files
committed
Drop nox as dependency for tests
1 parent 4129b1c commit f1f05e7

File tree

3 files changed

+12
-24
lines changed

3 files changed

+12
-24
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
matrix:
4040
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
4141
experimental: [false]
42-
nox-session: [""]
4342
runs-on: ["ubuntu-latest"]
4443

4544
runs-on: ${{ matrix.runs-on }}

noxfile.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,6 @@
2929
)
3030

3131

32-
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
33-
def test(session):
34-
session.install(".")
35-
session.install("-r", "dev-requirements.txt")
36-
37-
junit_xml = os.path.join(
38-
SOURCE_DIR, "junit", "elasticsearch-serverless-python-junit.xml"
39-
)
40-
pytest_argv = [
41-
"pytest",
42-
"--cov-report=term-missing",
43-
"--cov=elasticsearch_serverless",
44-
"--cov-config=setup.cfg",
45-
f"--junitxml={junit_xml}",
46-
"--log-level=DEBUG",
47-
"--cache-clear",
48-
"-vv",
49-
]
50-
session.run(*pytest_argv)
51-
52-
5332
@nox.session()
5433
def format(session):
5534
session.install("black", "isort", "flynt", "unasync")

pyproject.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ 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+
43+
]
3344
dependencies = [
3445
"elastic-transport>=8,<9",
3546
]
@@ -59,7 +70,7 @@ include = [
5970

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

6475
[tool.isort]
6576
profile = "black"
@@ -89,7 +100,6 @@ extra-dependencies = [
89100
"black",
90101
"twine",
91102
"build",
92-
"nox",
93103
"numpy; python_version<'3.10'",
94104
"pandas; python_version<'3.10'",
95105
"mapbox-vector-tile; python_version<'3.10'",

0 commit comments

Comments
 (0)