Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 2023.5.2 #413

Merged
merged 24 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b01a458
Fix tracking APi error when using with no user
jacobshilitz Aug 2, 2023
4f69cec
Fix transit days for UPS to be bussiness days
jacobshilitz Aug 3, 2023
ca40433
Merge pull request #412 from jacobshilitz/fix_ups_transit_days
danh91 Aug 3, 2023
6c5378a
(introduce) source.requirements.txt for build from source
danh91 Aug 22, 2023
7c24ef4
(revert) schemas to setup.py format
Aug 22, 2023
533c0c0
(remove) fedex local schema dependency
Aug 22, 2023
a42ead7
Fix transit days for UPS to be bussiness days
jacobshilitz Aug 3, 2023
321616d
(introduce) source.requirements.txt for build from source
danh91 Aug 22, 2023
45015fe
(revert) schemas to setup.py format
Aug 22, 2023
045a1db
Merge branch 'patch-2023.5.2' of github.com:karrioapi/karrio into pat…
Aug 22, 2023
81b41d6
(debug) source requirements
Aug 22, 2023
001c01e
(add) server image build from source script
Aug 23, 2023
fcc0480
Merge pull request #411 from jacobshilitz/fix_tracking_api_error
danh91 Aug 23, 2023
f9bcd49
(update) docker build to support source build
danh91 Aug 23, 2023
e02fd69
(fix) DHL Pickup request formatting
danh91 Aug 23, 2023
fb0a3e7
(version) updated modules
Aug 23, 2023
b20b02d
(adding) docker development environment setup
Aug 24, 2023
2699221
(clean) up dev docker compose env
Aug 24, 2023
59d1033
(clean) docker dev environment configurations
danh91 Aug 24, 2023
b1b7693
Fix UPS multi parcel individual weight
jacobshilitz Aug 31, 2023
1f2134e
Merge pull request #418 from jacobshilitz/fix_ups_weight_for_multi_pa…
danh91 Sep 1, 2023
f7f6a2e
(update) server dev manifest to use source code
danh91 Sep 1, 2023
95e6555
(update) UPS extension patch version
danh91 Sep 1, 2023
e4257f7
(release) patch 2023.5.2
danh91 Sep 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bin/build-server-image-from-source
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Source environment variables
source "bin/_env"

echo 'building server image from source...'
docker build -f "${ROOT}/docker/Dockerfile" -t karrio/server:$1 "${ROOT}" --build-arg REQUIREMENTS=source.requirements.txt "${@:2}"
4 changes: 2 additions & 2 deletions bin/deploy-hobby
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

export KARRIO_TAG="${KARRIO_TAG:-2023.5.1}"
export KARRIO_TAG="${KARRIO_TAG:-2023.5.2}"
export SENTRY_DSN="${SENTRY_DSN:-'https://public@sentry.example.com/1'}"

SECRET_KEY=$(head -c 28 /dev/urandom | sha224sum -b | head -c 56)
Expand All @@ -23,7 +23,7 @@ if ! [ -z "$1" ]
then
export KARRIO_TAG=$1
else
echo "What version of Karrio would you like to install? (We default to '2023.5.1')"
echo "What version of Karrio would you like to install? (We default to '2023.5.2')"
echo "You can check out available versions here: https://hub.docker.com/r/karrio/server/tags"
read -r KARRIO_TAG_READ
if [ -z "$KARRIO_TAG_READ" ]
Expand Down
2 changes: 1 addition & 1 deletion bin/upgrade-hobby
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ else
fi

[[ -f ".env" ]] && export $(cat .env | xargs) || ( echo "No .env file found. Please create it with SECRET_KEY and DOMAIN set." && exit 1)
export KARRIO_TAG="${KARRIO_TAG:-2023.5.1}"
export KARRIO_TAG="${KARRIO_TAG:-2023.5.2}"

# get karrio scripts
mkdir -p ./karrio
Expand Down
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
services:
api:
build:
context: .
dockerfile: docker/dev.Dockerfile
container_name: karrio.api
command: karrio runserver 0.0.0.0:5002
ports:
- 5002:5002
volumes:
- .:/code

maildev:
container_name: karrio.mail
image: maildev/maildev
restart: on-failure
ports:
- "1080:1080"
- "1025:1025"
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ RUN apt-get update -y && apt-get install -y gcc
RUN python -m venv /karrio/venv
ENV PATH="/karrio/venv/bin:$PATH"
COPY "${REQUIREMENTS}" /temp/
RUN pip install --upgrade pip && \
COPY . /temp/app/
RUN cd /temp/app && \
pip install --upgrade pip && \
pip install dumb-init && \
pip install -r "/temp/${REQUIREMENTS}"

Expand Down
17 changes: 17 additions & 0 deletions docker/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# The base image compilation
FROM python:3.10-slim

WORKDIR /code

RUN apt-get update -y && apt-get install -y gcc libpango1.0-0 libpangoft2-1.0-0 ghostscript
RUN python -m venv /karrio/venv
ENV PATH="/karrio/venv/bin:$PATH"

COPY requirements.server.dev.txt /temp/requirements.txt
COPY . .
RUN pip install --upgrade pip && \
pip install -r /temp/requirements.txt

EXPOSE 5002

CMD ["karrio", "runserver", "0.0.0.0:5002"]
6 changes: 3 additions & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
api:
container_name: karrio.api
image: karrio.docker.scarf.sh/karrio/server:2023.5.1
image: karrio.docker.scarf.sh/karrio/server:2023.5.2
restart: unless-stopped
ports:
- ${KARRIO_HTTP_PORT}:${KARRIO_HTTP_PORT}
Expand All @@ -25,7 +25,7 @@ services:

worker:
container_name: karrio.worker
image: karrio.docker.scarf.sh/karrio/server:2023.5.1
image: karrio.docker.scarf.sh/karrio/server:2023.5.2
restart: unless-stopped
depends_on:
- db
Expand All @@ -46,7 +46,7 @@ services:

dashboard:
container_name: karrio.dashboard
image: karrio.docker.scarf.sh/karrio/dashboard:2023.5.1
image: karrio.docker.scarf.sh/karrio/dashboard:2023.5.2
ports:
- ${DASHBOARD_PORT}:3000/tcp
depends_on:
Expand Down
124 changes: 53 additions & 71 deletions requirements.server.dev.txt
Original file line number Diff line number Diff line change
@@ -1,80 +1,62 @@
django-debug-toolbar

# Schemas update (change schemas to setup.py before next update)
# -e ./schemas/dpdhl
# Schemas update
./schemas/aramex
./schemas/australiapost
./schemas/canadapost
./schemas/canpar
./schemas/chronopost
# ./schemas/dhl_express
./schemas/dhl_poland
./schemas/dicom
./schemas/dpd
./schemas/dpdhl
# ./schemas/fedex
./schemas/purolator
./schemas/royalmail
./schemas/sendle
./schemas/sf_express
./schemas/tnt
./schemas/usps
./schemas/yanwen
./schemas/yunexpress

# Carrier Extentions in Development
# -e ./sdk/core
# -e ./sdk/extensions/generic
# -e ./sdk/extensions/amazon_mws
# -e ./sdk/extensions/aramex
# -e ./sdk/extensions/australiapost
# -e ./sdk/extensions/boxknight
# -e ./sdk/extensions/canadapost
# -e ./sdk/extensions/canpar
# -e ./sdk/extensions/chronopost
# -e ./sdk/extensions/dhl_express
# -e ./sdk/extensions/dhl_poland
# -e ./sdk/extensions/dhl_universal
# -e ./sdk/extensions/dicom
# -e ./sdk/extensions/dpd
# -e ./sdk/extensions/dpdhl
# -e ./sdk/extensions/fedex
# -e ./sdk/extensions/geodis
# -e ./sdk/extensions/laposte
# -e ./sdk/extensions/nationex
# -e ./sdk/extensions/purolator
# -e ./sdk/extensions/roadie
# -e ./sdk/extensions/royalmail
# -e ./sdk/extensions/sendle
# -e ./sdk/extensions/sf_express
# -e ./sdk/extensions/tnt
# -e ./sdk/extensions/ups
# -e ./sdk/extensions/usps
# -e ./sdk/extensions/usps_international
# -e ./sdk/extensions/yanwen
# -e ./sdk/extensions/yunexpress
./sdk/core
./sdk/extensions/generic
./sdk/extensions/amazon_mws
./sdk/extensions/aramex
./sdk/extensions/australiapost
./sdk/extensions/boxknight
./sdk/extensions/canadapost
./sdk/extensions/canpar
./sdk/extensions/chronopost
./sdk/extensions/dhl_express
./sdk/extensions/dhl_poland
./sdk/extensions/dhl_universal
./sdk/extensions/dicom
./sdk/extensions/dpd
./sdk/extensions/dpdhl
./sdk/extensions/fedex
./sdk/extensions/geodis
./sdk/extensions/laposte
./sdk/extensions/nationex
./sdk/extensions/purolator
./sdk/extensions/roadie
./sdk/extensions/royalmail
./sdk/extensions/sendle
./sdk/extensions/sf_express
./sdk/extensions/tnt
./sdk/extensions/ups
./sdk/extensions/usps
./sdk/extensions/usps_international
./sdk/extensions/yanwen
./sdk/extensions/yunexpress

# Carrier Hub Extentions in Development
# -e ./sdk/vendors/easypost
# -e ./sdk/vendors/eshipper
# -e ./sdk/vendors/freightcom


karrio
karrio.generic
karrio.amazon-mws
karrio.aramex
karrio.australiapost
karrio.boxknight
karrio.canadapost
karrio.canpar
karrio.chronopost
karrio.dhl-express
karrio.dhl-poland
karrio.dhl-universal
karrio.dicom
karrio.dpd
karrio.dpdhl
karrio.fedex
karrio.geodis
karrio.laposte
karrio.nationex
karrio.purolator
karrio.roadie
karrio.royalmail
karrio.sendle
karrio.sf-express
karrio.tnt
karrio.ups
karrio.usps
karrio.usps-international
karrio.yanwen
karrio.yunexpress

karrio.easypost
karrio.eshipper
karrio.freightcom
./sdk/vendors/easypost
./sdk/vendors/eshipper
./sdk/vendors/freightcom


# karrio server core modules
Expand Down
29 changes: 0 additions & 29 deletions schemas/aramex/pyproject.toml

This file was deleted.

18 changes: 16 additions & 2 deletions schemas/aramex/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
"""Warning: This setup.py is only there for git install until poetry support git subdirectory"""

from setuptools import setup, find_packages

with open("README.md", "r") as fh:
long_description = fh.read()

setup(
name="carrier.aramex",
version="0.0.0-dev",
version="2021.3",
description="Aramex Web API Schemas Python Data Types library",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/karrioapi/karrio",
author="Karrio",
author_email="hello@karrio.io",
license="Apache-2.0",
packages=find_packages(),
install_requires=["six", "lxml"],
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
],
zip_safe=False,
include_package_data=True,
)
28 changes: 0 additions & 28 deletions schemas/australiapost/pyproject.toml

This file was deleted.

18 changes: 16 additions & 2 deletions schemas/australiapost/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
"""Warning: This setup.py is only there for git install until poetry support git subdirectory"""

from setuptools import setup, find_packages

with open("README.md", "r") as fh:
long_description = fh.read()

setup(
name="carrier.australiapost",
version="0.0.0-dev",
version="2021.3",
description="Australia Post API Schemas Python Data Types library",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/karrioapi/karrio",
author="Karrio",
author_email="hello@karrio.io",
license="Apache-2.0",
packages=find_packages(),
install_requires=["jstruct"],
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
],
zip_safe=False,
include_package_data=True,
)
29 changes: 0 additions & 29 deletions schemas/canadapost/pyproject.toml

This file was deleted.

Loading