Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/Dockerfile.client
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PYTHON_VERSION=3.8
ARG PYTHON_VERSION=3.9
FROM python:${PYTHON_VERSION}

WORKDIR /code/opensearch-py
Expand Down
1 change: 0 additions & 1 deletion .ci/test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ TEST_SUITE:
- oss

PYTHON_VERSION:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
python3.8 -m pip install nox
python3.9 -m pip install nox
- name: Lint the code
run: nox -s lint

Expand All @@ -24,13 +24,13 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
python3.8 -m pip install nox
python3.9 -m pip install nox
- name: Run the api generator
run: nox -s generate

Expand All @@ -39,16 +39,16 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install build tools
run: |
python3.8 -m pip install --upgrade build
python3.9 -m pip install --upgrade build
- name: Build project for distribution
run: |
python3.8 -m build
python3.9 -m build

twine-check:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Install Dependencies
run: |
python3.8 -m pip install nox
python3.9 -m pip install nox

- name: Make
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ jobs:
strategy:
matrix:
entry:
- { os: 'ubuntu-latest', python-version: "3.8" }
- { os: 'ubuntu-latest', python-version: "3.9" }
- { os: 'ubuntu-latest', python-version: "3.10" }
- { os: 'ubuntu-latest', python-version: "3.11" }
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
fetch-depth: 0
- name: Config git to rebase
run: git config --global pull.rebase true
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
python3.8 -m pip install nox
python3.9 -m pip install nox
- name: Generate API
run: nox -s generate
- name: Get current date
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

python:
version: 3.8
version: 3.9
install:
- method: pip
path: .
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Security
### Dependencies
- Bumps `aiohttp` from >=3.9.4,<4 to >=3.10.11,<4 ([#920](https://github.com/opensearch-project/opensearch-py/pull/920))
- Bumps `aiohttp` from >=3.10.11,<4 to >=3.12.14,<4 ([#952](https://github.com/opensearch-project/opensearch-py/pull/952))
- Bump `pytest-asyncio` from <=0.25.1 to <=1.1.0 ([#936](https://github.com/opensearch-project/opensearch-py/pull/936))
- Bumps `lycheeverse/lychee-action` from 1.9.3 to 2.0.2 ([#946](https://github.com/opensearch-project/opensearch-py/pull/946))

Expand Down
2 changes: 1 addition & 1 deletion DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## Prerequisites

Python 3.8 or newer is required.
Python 3.9 or newer is required.

```
$ python --version
Expand Down
576 changes: 370 additions & 206 deletions benchmarks/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion benchmarks/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "Apache 2.0"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9"
opensearch-py = { path = "..", develop=true, extras=["async"] }
richbench = "*"

Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ black>=24.3.0
twine

# Requirements for testing [async] extra
aiohttp>=3.10.11, <4
aiohttp>=3.12.14, <4
pytest-asyncio<=1.1.0
unasync
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
)


@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"]) # type: ignore
@nox.session(python=["3.9", "3.10", "3.11", "3.12"]) # type: ignore
def test(session: Any) -> None:
"""
runs all tests with a fresh python environment using "python setup.py test"
Expand All @@ -61,7 +61,7 @@ def test(session: Any) -> None:
session.run("python", "setup.py", "test")


@nox.session(python=["3.8"]) # type: ignore
@nox.session(python=["3.9"]) # type: ignore
def format(session: Any) -> None:
"""
runs black and isort to format the files accordingly
Expand All @@ -77,7 +77,7 @@ def format(session: Any) -> None:
session.notify("lint")


@nox.session(python=["3.8"]) # type: ignore
@nox.session(python=["3.9"]) # type: ignore
def lint(session: Any) -> None:
"""
runs isort, black, flake8, pylint, and mypy to check the files according to each utility's function
Expand Down
2 changes: 1 addition & 1 deletion opensearchpy/helpers/faceted_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def get_value(self, bucket: Any) -> Any:
if bucket["key"] is None:
bucket["key"] = 0
# Preserve milliseconds in the datetime
return datetime.utcfromtimestamp(int(bucket["key"]) / 1000.0) # type: ignore
return datetime.utcfromtimestamp(int(bucket["key"]) / 1000.0)
else:
return bucket["key"]

Expand Down
4 changes: 2 additions & 2 deletions opensearchpy/helpers/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ def __init__(
# no InnerDoc subclass, creating one instead...
self._doc_class = type("InnerDoc", (InnerDoc,), {})
for name, field in (properties or {}).items():
self._doc_class._doc_type.mapping.field(name, field) # type: ignore
self._doc_class._doc_type.mapping.field(name, field)
if dynamic is not None:
self._doc_class._doc_type.mapping.meta("dynamic", dynamic) # type: ignore
self._doc_class._doc_type.mapping.meta("dynamic", dynamic)

self._mapping = copy.deepcopy(self._doc_class._doc_type.mapping)
super().__init__(**kwargs)
Expand Down
Loading
Loading