From ee2ce66525d68b70ff94dc0fcf003acfc572a36c Mon Sep 17 00:00:00 2001 From: tangowithfoxtrot <5676771+tangowithfoxtrot@users.noreply.github.com> Date: Thu, 30 Nov 2023 18:19:58 +0000 Subject: [PATCH] rename to "bitwarden_sdk" --- .github/workflows/build-python-wheels.yml | 10 +++++----- .github/workflows/generate_schemas.yml | 2 +- .gitignore | 2 +- .../{BitwardenClient => bitwarden_sdk}/__init__.py | 0 .../bitwarden_client.py | 0 languages/python/example.py | 2 +- languages/python/pyproject.toml | 6 +++--- 7 files changed, 11 insertions(+), 11 deletions(-) rename languages/python/{BitwardenClient => bitwarden_sdk}/__init__.py (100%) rename languages/python/{BitwardenClient => bitwarden_sdk}/bitwarden_client.py (100%) diff --git a/.github/workflows/build-python-wheels.yml b/.github/workflows/build-python-wheels.yml index 49b537967..f5e193b91 100644 --- a/.github/workflows/build-python-wheels.yml +++ b/.github/workflows/build-python-wheels.yml @@ -89,7 +89,7 @@ jobs: uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 with: name: schemas.py - path: ${{ github.workspace }}/languages/python/BitwardenClient/ + path: ${{ github.workspace }}/languages/python/bitwarden_sdk/ # - name: Setup Windows ARM64 # if: ${{ matrix.settings.target == 'aarch64-pc-windows-msvc' }} @@ -122,12 +122,12 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: - name: BitwardenClient-${{ env._PACKAGE_VERSION }}-${{ matrix.settings.target }} - path: ${{ github.workspace }}/target/wheels/BitwardenClient*.whl + name: bitwarden_sdk-${{ env._PACKAGE_VERSION }}-${{ matrix.settings.target }} + path: ${{ github.workspace }}/target/wheels/bitwarden_sdk*.whl - name: Upload sdists if: ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' }} # we only need one sdist uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: - name: BitwardenClient-${{ env._PACKAGE_VERSION }}-sdist - path: ${{ github.workspace }}/target/wheels/BitwardenClient-*.tar.gz + name: bitwarden_sdk-${{ env._PACKAGE_VERSION }}-sdist + path: ${{ github.workspace }}/target/wheels/bitwarden_sdk-*.tar.gz diff --git a/.github/workflows/generate_schemas.yml b/.github/workflows/generate_schemas.yml index 675f53c1e..89e5620a8 100644 --- a/.github/workflows/generate_schemas.yml +++ b/.github/workflows/generate_schemas.yml @@ -54,7 +54,7 @@ jobs: uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: name: schemas.py - path: ${{ github.workspace }}/languages/python/BitwardenClient/schemas.py + path: ${{ github.workspace }}/languages/python/bitwarden_sdk/schemas.py if-no-files-found: error - name: Upload json schemas artifact diff --git a/.gitignore b/.gitignore index 38b074349..1f296cf63 100644 --- a/.gitignore +++ b/.gitignore @@ -48,5 +48,5 @@ support/schemas crates/bitwarden-napi/src-ts/bitwarden_client/schemas.ts languages/csharp/Bitwarden.Sdk/schemas.cs languages/js_webassembly/bitwarden_client/schemas.ts -languages/python/BitwardenClient/schemas.py +languages/python/bitwarden_sdk/schemas.py languages/java/src/main/java/com/bitwarden/sdk/schema diff --git a/languages/python/BitwardenClient/__init__.py b/languages/python/bitwarden_sdk/__init__.py similarity index 100% rename from languages/python/BitwardenClient/__init__.py rename to languages/python/bitwarden_sdk/__init__.py diff --git a/languages/python/BitwardenClient/bitwarden_client.py b/languages/python/bitwarden_sdk/bitwarden_client.py similarity index 100% rename from languages/python/BitwardenClient/bitwarden_client.py rename to languages/python/bitwarden_sdk/bitwarden_client.py diff --git a/languages/python/example.py b/languages/python/example.py index 4d627342f..ce7143798 100644 --- a/languages/python/example.py +++ b/languages/python/example.py @@ -1,7 +1,7 @@ import logging import os -from BitwardenClient import BitwardenClient, DeviceType, client_settings_from_dict +from bitwarden_sdk import BitwardenClient, DeviceType, client_settings_from_dict # Create the BitwardenClient, which is used to interact with the SDK client = BitwardenClient(client_settings_from_dict({ diff --git a/languages/python/pyproject.toml b/languages/python/pyproject.toml index 8c2c6a3fd..30cc6e63d 100644 --- a/languages/python/pyproject.toml +++ b/languages/python/pyproject.toml @@ -14,7 +14,7 @@ classifiers = [ ] dependencies = ["dateutils >= 0.6.6"] description = "A Bitwarden Client for python" -name = "BitwardenClient" +name = "bitwarden_sdk" readme = "README.md" requires-python = ">=3.0" version = "0.1.0" @@ -23,7 +23,7 @@ version = "0.1.0" bindings = "pyo3" compatibility = "manylinux2014" include = [ - { path = "BitwardenClient/*.py", format = ["sdist", "wheel"] } + { path = "bitwarden_sdk/*.py", format = ["sdist", "wheel"] } ] manifest-path = "../../crates/bitwarden-py/Cargo.toml" -python-packages = ["BitwardenClient"] +python-packages = ["bitwarden_sdk"]