Skip to content

Commit

Permalink
fixed windows py version + reverted toml conf
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Dec 4, 2023
1 parent 39d005a commit cbade19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .ci/azure/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
powershell -command "Expand-Archive -Force ninja-win.zip"
powershell -command "Invoke-WebRequest https://services.gradle.org/distributions/gradle-$(GRADLE_VER)-bin.zip -OutFile gradle-$(GRADLE_VER)-bin.zip"
powershell -command "Expand-Archive -Force gradle-$(GRADLE_VER)-bin.zip"
call "$(SETUPVARS)"
call $(SETUPVARS)
$(PYTHON_EXE) -m pip install --upgrade pip
$(PYTHON_EXE) -m pip install -r $(OPENVINO_REPO_DIR)\src\bindings\python\src\compatibility\openvino\requirements-dev.txt
$(PYTHON_EXE) -m pip install -r $(OPENVINO_REPO_DIR)\src\bindings\python\requirements.txt
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
- script: |
set PATH=$(WORK_DIR)\ninja-win;%PATH%
set OpenCV_DIR=C:\tools\opencv\build
call "$(SETUPVARS)"
call $(SETUPVARS) -pyver 3.8
call "$(MSVS_VARS_PATH)"
cmake -GNinja ^
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE) ^
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
- script: |
call $(SETUPVARS) -pyver 3.8 && ^
$(PYTHON_EXE) -m pytest tokenizers_test.py
$(PYTHON_EXE) -m pytest --tb=no tokenizers_test.py
continue-on-error: true
workingDirectory: $(REPO_DIR)\modules\custom_operations\user_ie_extensions\tokenizer\python\tests
displayName: 'Tokenizers extension regression test'
19 changes: 8 additions & 11 deletions modules/custom_operations/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ requires-python = ">=3.8"
authors = [
{ name = "OpenVINO Developers", email = "[email protected]" },
]

classifiers = [
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
Expand All @@ -14,29 +15,25 @@ classifiers = [
]

dependencies = [
"openvino>=2023.1",
"openvino",
"numpy"
]

[project.optional-dependencies]
dev = [
"black",
"ruff",
"pytest",
]
transformers = [
"transformers[sentencepiece]"
"transformers[sentencepiece,tiktoken]"
]
tiktoken = [
"tiktoken"
]
all = [
"ov_tokenizer[dev,transformers]"
"ov_tokenizer[dev,transformers,tiktoken]"
]


[tool.black]
line-length = 119
target-versions = ["py38", "py39", "py310", "py311", "py312"]


[tool.ruff]
ignore = ["C901", "E501", "E741", "W605"]
select = ["C", "E", "F", "I", "W"]
Expand All @@ -55,4 +52,4 @@ requires = [
"scikit-build~=0.17.0",
"cmake>=3.14"
]
build-backend = "setuptools.build_meta"
build-backend = "setuptools.build_meta"

0 comments on commit cbade19

Please sign in to comment.