Skip to content

Commit

Permalink
fix: refine folder structure (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
yen3 authored Dec 1, 2022
1 parent 0b86a73 commit a033438
Show file tree
Hide file tree
Showing 18 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,5 @@ venv.bak/
# mypy
.mypy_cache/

dltlyse/_version.py
src/dltlyse/_version.py
src/dltlyse/dltlyse_results.xml
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,22 @@ RUN set -ex \
&& apk add python3 py3-pip py3-virtualenv \
&& cd /build/dltlyse \
&& pip install --no-cache-dir build wheel \
&& python3 -m build --wheel \
&& git clone https://github.com/bmwcarit/python-dlt /build/python-dlt \
&& cd /build/python-dlt \
&& python3 -m build --wheel


FROM alpine:3.17

COPY --from=builder /usr/local/lib /usr/local/lib
COPY --from=builder /build/dltlyse/dist/dltlyse*.whl /
COPY --from=builder /build/python-dlt/dist/dlt*.whl /

RUN set -ex \
&& ldconfig /usr/local/lib \
&& apk add --no-cache python3 py3-six \
&& apk add --no-cache --virtual .build-deps py3-pip git \
&& pip install --no-cache-dir dltlyse*.whl \
&& pip install --no-cache-dir dlt*.whl dltlyse*.whl \
&& apk del .build-deps

ENTRYPOINT [ "dltlyse" ]
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.github_flow
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN set -ex \
&& cmake CMakeLists.txt \
&& make -j \
&& make install \
&& ldconfig /usr/local/lib
&& ldconfig /usr/local/lib \
&& pip install --no-cache-dir git+https://github.com/bmwcarit/python-dlt

# vim: set ft=dockerfile :
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ classifiers = [
"Topic :: Software Development :: Testing",
]
dependencies = [
"dlt @ git+https://github.com/bmwcarit/python-dlt"
]

[project.optional-dependencies]
Expand All @@ -40,7 +39,7 @@ requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "dltlyse/_version.py"
write_to = "src/dltlyse/_version.py"

[tool.black]
line-length = 119
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ envlist = py3
deps =
pytest
six
git+https://github.com/bmwcarit/python-dlt
commands =
pytest tests/

Expand All @@ -17,4 +18,4 @@ deps =
commands =
black -l 119 --check .
flake8
mypy dltlyse/
mypy src/dltlyse/

0 comments on commit a033438

Please sign in to comment.