Skip to content

Commit

Permalink
Merge branch 'master' into docusign-assets-v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
narendranandaniya-crest authored Sep 19, 2024
2 parents e7dffce + 25c7fbe commit 708924c
Show file tree
Hide file tree
Showing 1,110 changed files with 2,825 additions and 13,179 deletions.
4 changes: 2 additions & 2 deletions .builders/images/linux-aarch64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ RUN yum install -y perl-IPC-Cmd && \
ldconfig

# Compile and install Python 3
ENV PYTHON3_VERSION=3.11.8
ENV PYTHON3_VERSION=3.12.6
RUN yum install -y libffi-devel && \
DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \
VERSION="${PYTHON3_VERSION}" \
SHA256="d3019a613b9e8761d260d9ebe3bd4df63976de30464e5c0189566e1ae3f61889" \
SHA256="85a4c1be906d20e5c5a69f2466b00da769c221d6a684acfd3a514dbf5bf10a66" \
RELATIVE_PATH="Python-{{version}}" \
bash install-from-source.sh \
--prefix=/opt/python/${PYTHON_VERSION} \
Expand Down
34 changes: 32 additions & 2 deletions .builders/images/linux-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ RUN yum install -y perl-IPC-Cmd && \
ldconfig

# Compile and install Python 3
ENV PYTHON3_VERSION=3.11.8
ENV PYTHON3_VERSION=3.12.6
RUN yum install -y libffi-devel && \
DOWNLOAD_URL="https://python.org/ftp/python/{{version}}/Python-{{version}}.tgz" \
VERSION="${PYTHON3_VERSION}" \
SHA256="d3019a613b9e8761d260d9ebe3bd4df63976de30464e5c0189566e1ae3f61889" \
SHA256="85a4c1be906d20e5c5a69f2466b00da769c221d6a684acfd3a514dbf5bf10a66" \
RELATIVE_PATH="Python-{{version}}" \
bash install-from-source.sh --prefix=/opt/python/${PYTHON_VERSION} --with-ensurepip=yes --enable-ipv6 --with-dbmliborder=
ENV PATH="/opt/python/${PYTHON_VERSION}/bin:${PATH}"
Expand All @@ -81,6 +81,36 @@ RUN \
RELATIVE_PATH="krb5-{{version}}/src" \
bash install-from-source.sh --without-keyutils --without-system-verto --without-libedit --disable-static

# libxml & libxslt for lxml
RUN \
DOWNLOAD_URL="https://download.gnome.org/sources/libxml2/2.12/libxml2-{{version}}.tar.xz" \
VERSION="2.12.6" \
SHA256="889c593a881a3db5fdd96cc9318c87df34eb648edfc458272ad46fd607353fbb" \
RELATIVE_PATH="libxml2-{{version}}" \
bash install-from-source.sh \
--without-iconv \
--without-python \
--without-icu \
--without-debug \
--without-mem-debug \
--without-run-debug \
--without-legacy \
--without-catalog \
--without-docbook \
--disable-static

RUN \
DOWNLOAD_URL="https://download.gnome.org/sources/libxslt/1.1/libxslt-{{version}}.tar.xz" \
VERSION="1.1.39" \
SHA256="2a20ad621148339b0759c4d4e96719362dee64c9a096dbba625ba053846349f0" \
RELATIVE_PATH="libxslt-{{version}}" \
bash install-from-source.sh \
--without-python \
--without-crypto \
--without-profiler \
--without-debugger \
--disable-static

# libpq and pg_config as needed by psycopg2
RUN \
DOWNLOAD_URL="https://ftp.postgresql.org/pub/source/v{{version}}/postgresql-{{version}}.tar.bz2" \
Expand Down
12 changes: 6 additions & 6 deletions .builders/images/windows-x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ RUN Get-RemoteFile `
Approve-File -Path $($Env:USERPROFILE + '\.cargo\bin\rustc.exe') -Hash $Env:RUSTC_HASH

# Install Python 3
ENV PYTHON_VERSION="3.11.7"
ENV PYTHON_VERSION="3.12.6"
RUN Get-RemoteFile `
-Uri https://www.python.org/ftp/python/$Env:PYTHON_VERSION/python-$Env:PYTHON_VERSION-amd64.exe `
-Path python-$Env:PYTHON_VERSION-amd64.exe `
-Hash 'c117c6444494bbe4cc937e8a5a61899d53f7f5c5bc573c5d130304e457d54024'; `
-Hash '5914748e6580e70bedeb7c537a0832b3071de9e09a2e4e7e3d28060616045e0a'; `
Start-Process -Wait python-$Env:PYTHON_VERSION-amd64.exe -ArgumentList '/quiet', 'InstallAllUsers=1'; `
Remove-Item python-$Env:PYTHON_VERSION-amd64.exe; `
& 'C:\Program Files\Python311\python.exe' -m pip install --no-warn-script-location --upgrade pip; `
& 'C:\Program Files\Python311\python.exe' -m pip install --no-warn-script-location virtualenv; `
& 'C:\Program Files\Python311\python.exe' -m virtualenv 'C:\py3'; `
Add-ToPath -Append 'C:\Program Files\Python311'
& 'C:\Program Files\Python312\python.exe' -m pip install --no-warn-script-location --upgrade pip; `
& 'C:\Program Files\Python312\python.exe' -m pip install --no-warn-script-location virtualenv; `
& 'C:\Program Files\Python312\python.exe' -m virtualenv 'C:\py3'; `
Add-ToPath -Append 'C:\Program Files\Python312'

# Install Python 2
ENV PYTHON_VERSION="2.7.18"
Expand Down
25 changes: 21 additions & 4 deletions .builders/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ def default_python_version() -> str:
return match.group(1)


@cache
def target_python_for_major(python_major: str):
return '2.7' if python_major == '2' else default_python_version()


def is_compatible_wheel(
target_name: str,
target_python_major: str,
Expand All @@ -44,7 +49,7 @@ def is_compatible_wheel(
platform: str,
) -> bool:
if interpreter.startswith('cp'):
target_python = '2.7' if target_python_major == '2' else default_python_version()
target_python = target_python_for_major(target_python_major)
expected_tag = f'cp{target_python_major}' if abi == 'abi3' else f'cp{target_python}'.replace('.', '')
if expected_tag not in interpreter:
return False
Expand All @@ -59,8 +64,17 @@ def is_compatible_wheel(
return True


def generate_lock_file(requirements_file: Path, lock_file: Path) -> None:
target, _, python_version = lock_file.stem.rpartition('_')
def generate_lock_file(
requirements_file: Path,
lock_file_folder: Path,
target: str,
python_version: str,
) -> None:
python_target = target_python_for_major(python_version)
# The lockfiles contain the major.minor Python version
# so that the Agent can transition safely
lock_file = lock_file_folder / f'{target}_{python_target}.txt'

python_major = python_version[-1]

dependencies: dict[str, str] = {}
Expand Down Expand Up @@ -135,7 +149,10 @@ def main():
for python_version in target.iterdir():
if python_version.name.startswith('py'):
generate_lock_file(
python_version / 'frozen.txt', LOCK_FILE_DIR / f'{target.name}_{python_version.name}.txt'
python_version / 'frozen.txt',
LOCK_FILE_DIR,
target.name,
python_version.name.strip('py'),
)

if (image_digest_file := target / 'image_digest').is_file():
Expand Down
4 changes: 0 additions & 4 deletions .ddev/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,9 @@ simplejson = ['MIT']
supervisor = ['BSD-3-Clause-Modification']
# https://github.com/Cairnarvon/uptime/blob/master/COPYING.txt
uptime = ['BSD-2-Clause']
# https://github.com/hickeroar/win_inet_pton/blob/master/LICENSE
win-inet-pton = ['Unlicense']

[overrides.dependencies.repo]
PyYAML = 'https://github.com/yaml/pyyaml'
contextlib2 = 'https://github.com/jazzband/contextlib2'
dnspython = 'https://github.com/rthalley/dnspython'
foundationdb = 'https://github.com/apple/foundationdb'
in-toto = 'https://github.com/in-toto/in-toto'
Expand All @@ -127,7 +124,6 @@ service-identity = 'https://github.com/pyca/service-identity'
snowflake-connector-python = 'https://github.com/snowflakedb/snowflake-connector-python'
supervisor = 'https://github.com/Supervisor/supervisor'
tuf = 'https://github.com/theupdateframework/python-tuf'
typing = 'https://github.com/python/typing'

[overrides.validate.openmetrics]
exclude = [
Expand Down
6 changes: 3 additions & 3 deletions .deps/image_digests.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"linux-aarch64": "sha256:bb4ca64678ec1be3fe0c94b6f069912c4e78f52a1918b770e40066cc1c1a7191",
"linux-x86_64": "sha256:cd58dce0bb12645ca22037094a13aab7b2509d17e219e2ec32876fd1aa8b8082",
"windows-x86_64": "sha256:caa8cfa4d307c442edcc0cf42528ba4a5ca80b36371df22ce527a18ea41f6476"
"linux-aarch64": "sha256:f3834f630ad669a0876dafb95a9ffd5b485171536cffbc1170ffbd3cbfab9c1d",
"linux-x86_64": "sha256:952783e733c9c0d08568394a0e925d1f8428d8f04507a2b10bcfd2a1486da2db",
"windows-x86_64": "sha256:2fd9816b42a300080a0bcc57753e577f0140bb8b0d06e14c54fc8f634d93a2db"
}
2 changes: 1 addition & 1 deletion .deps/metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"sha256": "c6a2b5cce003888652d1b2f4c18f4fc40942bf4132af84a1931e81f37b5fdb17"
"sha256": "2566080e6db100ff1cb0b3b98c011fa1d70fed5bfd9042fc4fcf29a10491ca84"
}
Loading

0 comments on commit 708924c

Please sign in to comment.