File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM python:3.12 -slim
1+ FROM python:3.9 -slim
22
3- LABEL org.opencontainers.image.authors= " brian <brian@planet.com>"
3+ MAINTAINER brian <brian@planet.com>
44
5- ENV LANG= C.UTF-8
6- ENV LC_ALL= C.UTF-8
5+ ENV LANG C.UTF-8
6+ ENV LC_ALL C.UTF-8
77
88# TODO: keep requirements in one place
99RUN pip install \
@@ -29,26 +29,20 @@ RUN pip install \
2929 pyinotify>=0.9.4, \
3030 raven>=5.0.0 \
3131 'tox>4,<5' \
32- # v80 removes many setup.py develop otions
33- 'setuptools<80.0.0' \
3432 'datalake<2'
3533
36- # RUN pip install -U pip
37-
3834RUN mkdir -p /opt/
3935COPY . /opt/
4036
41- # RUN pip install -e /opt/client[test]
42-
4337# Take care to install clients such that the source code can be mounted into
4438# the container and used for development. That is, the python paths and paths
4539# to console scripts Just Work (TM)
4640ENV PYTHONPATH=/opt/client:/opt/ingester:/opt/api
4741RUN for d in ingester api; do \
4842 cd /opt/$d && \
49- python setup.py develop --script-dir /usr/local/bin \
43+ python setup.py develop -s /usr/local/bin \
5044 --egg-path ../../../../../opt/$d/ \
51- -d /usr/local/lib/python3.12 /site-packages/ \
45+ -d /usr/local/lib/python3.9 /site-packages/ \
5246 --no-deps; \
5347 done
5448
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def get_version_from_pyver():
3030 if 'sdist' in sys .argv or 'bdist_wheel' in sys .argv :
3131 raise ImportError ('You must install pyver to create a package' )
3232 else :
33- return '0.dev '
33+ return 'noversion '
3434 version , version_info = pyver .get_version (pkg = "datalake_api" ,
3535 public = True )
3636 return version
Original file line number Diff line number Diff line change 1818import os
1919import six
2020
21-
2221try :
2322 from moto import mock_aws
23+ except ImportError :
24+ from moto import mock_s3 as mock_aws # ugh
25+ except ImportError :
26+ pass
27+
28+ try :
29+ # from moto import mock_aws
2430 import boto3
2531 from six .moves .urllib .parse import urlparse
2632 import json
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -37,10 +37,9 @@ dynamic = ["version"]
3737test = [
3838 ' pytest<8.0.0' ,
3939 ' pytest-cov>=2.5.1,<4' ,
40- ' moto[s3]>5 ' ,
40+ ' moto[s3]>4 ' ,
4141 ' twine<4.0.0' ,
42- # 'pip>=20.0.0,<22.0.0',
43- ' pip>=20.0.0' ,
42+ ' pip>=20.0.0,<22.0.0' ,
4443 ' wheel<0.38.0' ,
4544 ' flake8>=2.5.0,<4.1' ,
4645 ' responses<0.22.0' ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def get_version_from_pyver():
3030 if 'sdist' in sys .argv or 'bdist_wheel' in sys .argv :
3131 raise ImportError ('You must install pyver to create a package' )
3232 else :
33- return '0.dev '
33+ return 'noversion '
3434 version , version_info = pyver .get_version (pkg = "datalake_ingester" ,
3535 public = True )
3636 return version
You can’t perform that action at this time.
0 commit comments