Skip to content

Commit e555aed

Browse files
committed
minimize changes
1 parent eeb4fa3 commit e555aed

File tree

6 files changed

+17
-21
lines changed

6 files changed

+17
-21
lines changed

Dockerfile

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM python:3.12-slim
1+
FROM python:3.9-slim
22

3-
LABEL org.opencontainers.image.authors="brian <[email protected]>"
3+
MAINTAINER brian <[email protected]>
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
99
RUN 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-
3834
RUN mkdir -p /opt/
3935
COPY . /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)
4640
ENV PYTHONPATH=/opt/client:/opt/ingester:/opt/api
4741
RUN 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

api/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

client/datalake/tests/conftest.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@
1818
import os
1919
import six
2020

21-
2221
try:
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

client/got.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

client/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ dynamic = ["version"]
3737
test = [
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',

ingester/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)