Skip to content

Commit

Permalink
Change to src-layout (#164)
Browse files Browse the repository at this point in the history
* Change to src-layout

* Update Dockerfile
  • Loading branch information
oittaa authored Apr 13, 2022
1 parent 48d9c83 commit db70e5b
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENV STORAGE_DIR storage
# Python app installation
WORKDIR $APP_HOME
COPY README.md pyproject.toml setup.py ./
COPY gcp_storage_emulator gcp_storage_emulator/
COPY src src/
RUN pip install .

ENTRYPOINT ["gcp-storage-emulator"]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires = [
]

[tool.pytest.ini_options]
addopts = "--cov=gcp_storage_emulator --cov-report=xml --cov-branch"
addopts = "--cov=src --cov-report=xml --cov-branch"
testpaths = [
"tests"
]
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages

NAME = "gcp-storage-emulator"
PACKAGES = find_packages()
PACKAGES = find_packages("src")

DESCRIPTION = "A stub emulator for the Google Cloud Storage API"
URL = "https://github.com/oittaa/gcp-storage-emulator"
Expand All @@ -29,6 +29,7 @@
author=AUTHOR,
author_email=AUTHOR_EMAIL,
packages=PACKAGES,
package_dir={"": "src"},
zip_safe=False,
keywords=[
"Google Cloud Storage",
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.

0 comments on commit db70e5b

Please sign in to comment.