Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to src-layout #164

Merged
merged 2 commits into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.