Skip to content

Commit

Permalink
Switch from vendored AuthorizeNet SDK to a new release
Browse files Browse the repository at this point in the history
AuthorizeNet finally released a version of the SDK compatible with Python 3.10+.
  • Loading branch information
patrys committed Sep 25, 2024
1 parent 43423a5 commit 8870565
Show file tree
Hide file tree
Showing 784 changed files with 23 additions and 118,116 deletions.
1 change: 0 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ RUN apt-get update \
WORKDIR /app
RUN pip install poetry==1.7.0
RUN poetry config virtualenvs.create false
COPY vendored/ /app/vendored/
COPY poetry.lock pyproject.toml /app/
RUN poetry install --no-root
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN apt-get -y update \
WORKDIR /app
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install poetry==1.7.0
RUN poetry config virtualenvs.create false
COPY vendored/ /app/vendored/
COPY poetry.lock pyproject.toml /app/
RUN --mount=type=cache,mode=0755,target=/root/.cache/pypoetry poetry install --no-root

Expand Down
44 changes: 20 additions & 24 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ documentation = "https://docs.saleor.io/"
aniso8601 = "^7.0.0"
asgiref = "^3.7.2"
Authlib = "^1.3.1"
authorizenet = {path = "vendored/authorizenet", develop = true}
authorizenet = "^1.1.5"
azure-common = "^1.1.28"
azure-storage-blob = "^12.12.0"
azure-storage-common = "^2.1.0"
Expand Down Expand Up @@ -72,7 +72,6 @@ documentation = "https://docs.saleor.io/"
python-json-logger = ">=0.1.11,<2.1.0"
pytimeparse = "^1.1.8"
pytz = "^2024.1"
pyxb = {path = "vendored/pyxb", develop = true}
razorpay = "^1.2"
redis = "^5.0.1"
requests = "^2.32"
Expand Down Expand Up @@ -144,7 +143,7 @@ documentation = "https://docs.saleor.io/"
vcrpy = ">=4.0,<7.0"

[tool.deptry]
extend_exclude = ["conftest\\.py", ".*/conftest\\.py", ".*/tests/.*", "vendored/.*"]
extend_exclude = ["conftest\\.py", ".*/conftest\\.py", ".*/tests/.*"]

[tool.deptry.package_module_name_map]
graphql-core = "graphql"
Expand Down Expand Up @@ -177,8 +176,7 @@ plugins = [
]

exclude = [
"tests/",
"vendored/"
"tests/"
]

[[tool.mypy.overrides]]
Expand All @@ -187,7 +185,6 @@ exclude = [


[tool.ruff]
extend-exclude = ["vendored"]
lint.extend-select = ["D", "I", "ISC001", "ISC002", "PIE", "PT", "T20", "UP"]
lint.ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D202", "D203", "D206", "D213", "D407", "PT019"]
target-version = "py39"
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ omit =
*/migrations/*
*/tests/*
*/fixtures.py
*/vendored/*
saleor/core/utils/random_data.py
source = saleor

Expand Down
8 changes: 0 additions & 8 deletions vendored/authorizenet/CONTRIBUTING.md

This file was deleted.

26 changes: 0 additions & 26 deletions vendored/authorizenet/DESCRIPTION.rst

This file was deleted.

Loading

0 comments on commit 8870565

Please sign in to comment.