Skip to content

Commit ef5c175

Browse files
authored
Merge pull request #145 from square/fern-bot/04-15-2025-0325PM
🌿 Fern Regeneration -- April 15, 2025
2 parents 13ff070 + 3955cc7 commit ef5c175

File tree

3,291 files changed

+296841
-1604
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,291 files changed

+296841
-1604
lines changed

.fernignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Specify files that shouldn't be modified by Fern
2+
3+
.github/workflows/ci.yml
4+
.github/workflows/legacy.yml
5+
.github/ISSUE_TEMPLATE
6+
.github/labeler.yml
7+
.github/pull_request_template.md
8+
examples
9+
legacy
10+
src/square/core/api_error.py
11+
src/square/utils/webhooks_helper.py
12+
tests/integration
13+
README.md

.github/workflows/ci.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'legacy/**'
7+
tags:
8+
- '*'
9+
- '!legacy*'
10+
branches:
11+
- '**'
12+
13+
jobs:
14+
compile:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repo
18+
uses: actions/checkout@v3
19+
- name: Set up python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: 3.8
23+
- name: Bootstrap poetry
24+
run: |
25+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
26+
- name: Install dependencies
27+
run: poetry install
28+
- name: Compile
29+
run: poetry run mypy src
30+
31+
test:
32+
runs-on: ubuntu-latest
33+
env:
34+
TEST_SQUARE_TOKEN: ${{ secrets.TEST_SQUARE_TOKEN }}
35+
steps:
36+
- name: Checkout repo
37+
uses: actions/checkout@v3
38+
- name: Set up python
39+
uses: actions/setup-python@v4
40+
with:
41+
python-version: 3.8
42+
- name: Bootstrap poetry
43+
run: |
44+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
45+
- name: Install dependencies
46+
run: poetry install
47+
48+
- name: Test
49+
run: poetry run pytest -rP tests
50+
51+
publish:
52+
needs: [compile]
53+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Checkout repo
57+
uses: actions/checkout@v3
58+
- name: Set up python
59+
uses: actions/setup-python@v4
60+
with:
61+
python-version: 3.8
62+
- name: Bootstrap poetry
63+
run: |
64+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
65+
- name: Install dependencies
66+
run: poetry install
67+
- name: Publish to pypi
68+
run: |
69+
poetry config repositories.remote https://upload.pypi.org/legacy/
70+
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
71+
env:
72+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
73+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/legacy.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
paths:
6+
- 'legacy/**'
7+
tags:
8+
- 'legacy*'
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
env:
14+
SQUARE_SANDBOX_TOKEN: ${{ secrets.TEST_SQUARE_TOKEN }}
15+
steps:
16+
- name: Checkout repo
17+
uses: actions/checkout@v3
18+
- name: Set up python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: 3.8
22+
- name: Bootstrap poetry
23+
run: |
24+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
25+
- name: Install dependencies
26+
working-directory: ./legacy
27+
run: poetry install
28+
29+
- name: Test
30+
working-directory: ./legacy
31+
run: poetry run pytest -rP tests
32+
33+
publish:
34+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/legacy')
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout repo
38+
uses: actions/checkout@v3
39+
- name: Set up python
40+
uses: actions/setup-python@v4
41+
with:
42+
python-version: 3.8
43+
- name: Bootstrap poetry
44+
run: |
45+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
46+
- name: Install dependencies
47+
working-directory: ./legacy
48+
run: poetry install
49+
- name: Publish to pypi
50+
working-directory: ./legacy
51+
run: |
52+
poetry config repositories.remote https://upload.pypi.org/legacy/
53+
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
54+
env:
55+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
56+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/python-package.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
*.pyc
2-
build
3-
dist
4-
*.egg-info
1+
dist/
2+
.mypy_cache/
3+
__pycache__/
4+
poetry.toml
5+
.ruff_cache/

0 commit comments

Comments
 (0)