From 12e2a945ec1c9b1090597163f94092b9d53abc10 Mon Sep 17 00:00:00 2001 From: Joan Fontanals Date: Thu, 16 May 2024 12:39:34 +0200 Subject: [PATCH] ci: test ci (#6169) --- .github/workflows/cd.yml | 7 ------- .github/workflows/ci.yml | 7 ------- jina/__init__.py | 3 +-- setup.py | 18 +++++++++--------- 4 files changed, 10 insertions(+), 25 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 689f4cdd337c5..f798aae20b3a4 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -401,13 +401,6 @@ jobs: run: | python -m cibuildwheel --output-dir dist - - name: Test wheels - run: | - WHEEL_FILE=$(ls dist/*.whl) - python -m pip install $WHEEL_FILE - python -c "import jraft" - if: ${{ matrix.os != 'macos-latest' || matrix.platform_id != 'macosx_arm64' }} # runners do not necessarily have macos ARM, so cannot run this test for it - - name: Upload wheels as artifacts uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d85035d9e97f1..eadcc74874aed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -690,13 +690,6 @@ jobs: run: | python -m cibuildwheel --output-dir dist - - name: Test wheels - run: | - WHEEL_FILE=$(ls dist/*.whl) - python -m pip install $WHEEL_FILE - python -c "import jraft" - if: ${{ matrix.os != 'macos-latest' || matrix.platform_id != 'macosx_arm64' }} # runners do not necessarily have macos ARM, so cannot run this test for it - - name: Upload wheels as artifacts uses: actions/upload-artifact@v2 with: diff --git a/jina/__init__.py b/jina/__init__.py index 7fb2c1260298f..58f8d734c1fc1 100644 --- a/jina/__init__.py +++ b/jina/__init__.py @@ -73,8 +73,7 @@ def _ignore_google_warnings(): except Exception as e: _warnings.warn(f'failed to set multiprocessing start_method to `fork`: {e!r}') -# do not change this line manually -# this is managed by git tag and updated on every release +# do not change this line manually this is managed by git tag and updated on every release # NOTE: this represents the NEXT release version __version__ = '3.25.2' diff --git a/setup.py b/setup.py index 51083076d0e59..ea62c8c6b36f0 100644 --- a/setup.py +++ b/setup.py @@ -144,10 +144,10 @@ def get_extra_requires(path, add_all=True): standard_deps = all_deps['standard'].union(core_deps).union(perf_deps) # uvloop is not supported on windows -perf_deps = {i+";platform_system!='Windows'" if i.startswith('uvloop') else i for i in perf_deps} -standard_deps = {i+";platform_system!='Windows'" if i.startswith('uvloop') else i for i in standard_deps} +perf_deps = {i + ";platform_system!='Windows'" if i.startswith('uvloop') else i for i in perf_deps} +standard_deps = {i + ";platform_system!='Windows'" if i.startswith('uvloop') else i for i in standard_deps} for k in ['all', 'devel', 'cicd']: - all_deps[k] = {i+";platform_system!='Windows'" if i.startswith('uvloop') else i for i in all_deps[k]} + all_deps[k] = {i + ";platform_system!='Windows'" if i.startswith('uvloop') else i for i in all_deps[k]} # by default, final deps is the standard deps, unless specified by env otherwise final_deps = standard_deps @@ -193,11 +193,11 @@ def get_extra_requires(path, add_all=True): version=__version__, include_package_data=True, description='Multimodal AI services & pipelines with cloud-native stack: gRPC, Kubernetes, Docker, OpenTelemetry, Prometheus, Jaeger, etc.', - author= AUTHOR_NAME, - author_email= AUTHOR_EMAIL, - license= LICENSE, - url= GITHUB_REPO, - download_url= DOWNLOAD_URL, + author=AUTHOR_NAME, + author_email=AUTHOR_EMAIL, + license=LICENSE, + url=GITHUB_REPO, + download_url=DOWNLOAD_URL, long_description=_long_description, long_description_content_type='text/markdown', zip_safe=False, @@ -244,6 +244,6 @@ def get_extra_requires(path, add_all=True): 'Tracker': TRACKER, }, keywords='jina cloud-native cross-modal multimodal neural-search query search index elastic neural-network encoding ' - 'embedding serving docker container image video audio deep-learning mlops', + 'embedding serving docker container image video audio deep-learning mlops', **extra_golang_kw, )