Skip to content

Commit

Permalink
add poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed Apr 5, 2024
1 parent fce6f11 commit 3439532
Show file tree
Hide file tree
Showing 8 changed files with 1,760 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ tag = True
tag_name = v{new_version}
message = Bump version: {current_version} → {new_version} [skip ci]

[bumpversion:file:setup.py]
[bumpversion:file:pyproject.toml]

[bumpversion:file:genotype_api/__init__.py]
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ WORKDIR /home/worker/app
COPY . /home/worker/app

# Install app requirements
RUN pip install -r requirements.txt

# Install app
RUN pip install -e .
RUN pip install poetry
RUN poetry config virtualenvs.create false \
&& poetry install

CMD gunicorn \
--workers=$GUNICORN_WORKERS \
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ install [poetry]
```
git clone https://github.com/Clinical-Genomics/genotype-api
cd genotype-api
pip install -e . -r requirements.txt
pip install poetry
poetry install
```

## Usage
Expand Down
1,706 changes: 1,706 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[tool.poetry]
name = "genotype-api"
version = "2.0.24"
description = "Genotype-api"
authors = ["Christian Oertlin <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
sqlalchemy = "^2.0.29"
aiofiles = "^23.2.1"
bcrypt = "^4.1.2"
bump2version = "^1.0.1"
click = "^8.1.7"
starlette = "^0.37.2"
coloredlogs = "^15.0.1"
email-validator = "^2.1.1"
fastapi = ">=0.109.1"
google-auth = "^2.29.0"
gunicorn = "^21.2.0"
httptools = "^0.6.1"
numpy = "^1.26.4"
openpyxl = "^3.1.2"
passlib = "^1.7.4"
pydantic = "^2.6.4"
pymysql = "^1.1.0"
python-dotenv = "^1.0.1"
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
python-multipart = "^0.0.9"
pyyaml = "^6.0.1"
requests = "^2.31.0"
uvicorn = "^0.29.0"
uvloop = "^0.19.0"
sqlalchemy-utils = "^0.41.2"
pydantic-settings = "^2.2.1"


[tool.poetry.group.dev.dependencies]
bump2version = "^1.0.1"
coveralls = "^3.3.1"
pre-commit = "^3.7.0"
pylint = "^3.1.0"
pytest-cov = "^5.0.0"
pytest = ">=5.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
6 changes: 0 additions & 6 deletions requirements-dev.txt

This file was deleted.

26 changes: 0 additions & 26 deletions requirements.txt

This file was deleted.

33 changes: 0 additions & 33 deletions setup.py

This file was deleted.

0 comments on commit 3439532

Please sign in to comment.