diff --git a/Dockerfile b/Dockerfile index 1bd54cd..815a479 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM amazonlinux:2023 # Install Python 3.9 and other necessary tools -RUN dnf install -y python3.9 python3.9-devel gcc zip && \ +RUN dnf install -y python3.8 python3.8-devel gcc zip && \ dnf clean all # Set up the work directory @@ -12,22 +12,22 @@ WORKDIR /root COPY . . # Create a virtual environment and install dependencies -RUN python3.9 -m venv /root/venv && \ +RUN python3.8 -m venv /root/venv && \ . /root/venv/bin/activate && \ - pip install --upgrade pip setuptools wheel && \ + pip install --upgrade pip && \ pip install \ --platform manylinux2014_x86_64 \ --implementation cp \ - --python-version 3.9 \ + --python-version 3.8 \ --only-binary=:all: --upgrade \ -r requirements.txt && \ pip install . && \ deactivate # Package everything into a ZIP file -CMD mkdir -p python/lib/python3.9/site-packages && \ - cp -r /root/venv/lib/python3.9/site-packages/* python/lib/python3.9/site-packages/ && \ - cp -r coinbase_advanced_trader python/lib/python3.9/site-packages/ && \ - cd python && \ - zip -r ../layer.zip . && \ - cd .. \ No newline at end of file +CMD . /root/venv/bin/activate && \ + mkdir python && \ + pip install . -t python && \ + pip install -r requirements.txt -t python && \ + zip -r layer.zip python && \ + deactivate \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 82fa6ef..1f0feec 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ coinbase-advanced-py -requests -urllib3 -PyYAML \ No newline at end of file +requests >=2.31.0 +urllib3 >= 2.2.2 +PyYAML >= 6.0.1 \ No newline at end of file diff --git a/setup.py b/setup.py index ddf213a..dff0594 100644 --- a/setup.py +++ b/setup.py @@ -29,9 +29,12 @@ 'Intended Audience :: Information Technology', 'Topic :: Software Development :: Libraries :: Python Modules', 'License :: OSI Approved :: MIT License', + 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', ], -) + python_requires='>=3.8', +) \ No newline at end of file