Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
48 changes: 37 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
version: 2.1

jobs:
build:
machine:
image: ubuntu-2204:edge
docker:
# cimg/python:3.10.22; load the SDK on its minimum supported Python version.
- image: cimg/python@sha256:76c05d8095ddc71ed2afb3b20f7b4d1172bee557238d53b5351646308b3ac538
steps:
- checkout
- run:
name: Build Docker image for running python tests
command: docker build -t plaid-python .
- run:
name: Run python tests in Docker
command: docker run --rm -e CLIENT_ID=$CLIENT_ID -e SECRET=$SECRET plaid-python
- store_test_results:
path: /tmp/circleci-test-results
- run:
name: Check out the public SDK at the exact commit
command: |
[[ "$CIRCLE_SHA1" =~ ^[0-9a-f]{40}$ ]]
git init .
git remote add origin https://github.com/plaid/plaid-python.git
GIT_TERMINAL_PROMPT=0 git -c credential.helper= fetch --no-tags --depth=1 origin "$CIRCLE_SHA1"
git checkout --detach FETCH_HEAD
test "$(git rev-parse HEAD)" = "$CIRCLE_SHA1"
- run:
name: Install dependencies
command: |
python -m pip install poetry==2.5.1
poetry install
- run:
name: Load plaid and plaid.legacy
command: |
poetry run python -c 'import plaid; plaid.Plaid'
poetry run python -c 'import plaid.legacy; from plaid.legacy.api import plaid_api; plaid_api.PlaidApi'
- run:
name: Run the legacy Sandbox tests
command: |
if [ -z "$CLIENT_ID" ] || [ -z "$SECRET" ]; then
echo "Sandbox credentials aren't available to this build; skipping."
exit 0
fi
# --noconftest skips tests/conftest.py, which starts WireMock for the new SDK's wire tests.
poetry run python -m pytest -rP --noconftest tests/legacy/*_integration.py

workflows:
build:
jobs:
- build
17 changes: 0 additions & 17 deletions .dockerignore

This file was deleted.

38 changes: 38 additions & 0 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"cliVersion": "5.134.0",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "5.41.1",
"generatorConfig": {
"package_name": "plaid",
"client": {
"class_name": "Plaid",
"filename": "client.py"
},
"pydantic_config": {
"skip_validation": true
},
"use_typeddict_requests": true,
"use_typeddict_requests_for_file_upload": true,
"wire_tests": {
"enabled": true
},
"default_max_retries": 0,
"timeout": "infinity",
"user-agent": "Plaid Python v{version}",
"extra_dependencies": {
"urllib3": ">=1.25.3",
"python-dateutil": ">=2.5.3",
"nulltype": ">=2.3.1"
},
"mypy_exclude": [
"^src/plaid/legacy/",
"^tests/legacy/"
]
},
"originGitCommit": "f1a83e1ff13066a8677747472d618faf29af8b91",
"originGitCommitIsDirty": true,
"invokedBy": "ci",
"requestedVersion": "48.0.0",
"ciProvider": "github",
"sdkVersion": "48.0.0"
}
13 changes: 9 additions & 4 deletions .fernignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Specify files that shouldn't be modified by Fern
.fern/replay.lock
.fern/replay.yml
.gitattributes
src/plaid/legacy/
tests/legacy/

# Release and repository workflows are maintained here, not generated.
# Maintained by Plaid in the internal SDK mirror, as in plaid-go, plaid-node and plaid-ruby.
README.md
CHANGELOG.md
MIGRATION.md
CONTRIBUTING.md
LICENSE
.github/
.circleci/config.yml
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

# Type-checks and runs the unit and wire tests on the package's minimum Python. The wire tests
# start WireMock with docker compose. Publishing is in publish.yml.
on:
pull_request:
push:
branches: [master]

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.10"

- name: Install Poetry
run: python -m pip install poetry==2.5.1

- name: Install dependencies
run: poetry install

- name: Type-check
run: poetry run mypy .

- name: Unit and wire tests
run: poetry run pytest -rP -n auto .

- name: Unit and wire tests with aiohttp
run: |
poetry install --extras aiohttp
poetry run pytest -rP -n auto -m aiohttp .
24 changes: 5 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
.env

*.pyc
__pycache__

*.egg
*.egg-info

venv

.cache/*
.coverage
.tox/*

docs/.buildinfo
docs/.doctrees
docs/objects.inv

dist
.mypy_cache/
.ruff_cache/
__pycache__/
dist/
poetry.toml
11 changes: 0 additions & 11 deletions .openapi-generator-ignore

This file was deleted.

Loading