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

move unnecessary requirements for API to new dependency group; fix dockerfile #67

Merged
merged 3 commits into from
May 2, 2024
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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ RUN pip install --no-cache "poetry>=1.2.2,<1.3.0"
COPY poetry.lock pyproject.toml ./

# Install python dependencies
RUN poetry config virtualenvs.create false
RUN poetry install --with dev
RUN poetry export --with dev > requirements.txt
RUN pip install --no-cache -r requirements.txt

# Copy files to image
COPY data ./data
Expand Down
5 changes: 3 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 16 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,27 @@ authors = ["CPR-tech-team <[email protected]>"]
python = ">=3.9,<3.12"
uvicorn = {extras = ["standard"], version = "^0.20.0"}
fastapi = "^0.92.0"
python-dotenv = "^0.20.0"
opensearch-py = "^2.2.0"

[tool.poetry.dev-dependencies]
ruff = "^0.0.247"
black = "^22.1.0"
pyright = "^1.1.267"
pre-commit = "^2.17.0"
pytest = "^7.0.1"
pytest-dotenv = "^0.5.2"

[tool.poetry.group.dev.dependencies]
nbmake = "^1.4.1"
httpx = "^0.23.3"

[tool.poetry.group.other.dependencies]
cpr-data-access = {git = "https://github.com/climatepolicyradar/data-access.git", rev = "v0.2.9"}
openpyxl = "^3.1.1"
cloudpathlib = {version = "^0.13.0", extras = ["s3"]}
requests = "^2.28.2"
click = "^8.1.3"
opensearch-py = "^2.2.0"
openmock = "^2.2.0"
pycountry = "^22.3.5"
wbgapi = "^1.0.12"
Expand All @@ -30,19 +45,6 @@ rich = "^13.7.0"
awscli = "^1.29.28"
explorer = {git = "https://github.com/climatepolicyradar/explorer.git", rev = "96d2a244f4a0e3298a080f71edee6c4b96e5bd37"}

[tool.poetry.dev-dependencies]
ruff = "^0.0.247"
black = "^22.1.0"
pyright = "^1.1.267"
pre-commit = "^2.17.0"
python-dotenv = "^0.20.0"
pytest = "^7.0.1"
pytest-dotenv = "^0.5.2"

[tool.poetry.group.dev.dependencies]
nbmake = "^1.4.1"
httpx = "^0.23.3"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Expand Down
Loading