Skip to content

Commit

Permalink
Update dependencies and the template (#22)
Browse files Browse the repository at this point in the history
* update dependencies and template

* version bump

* update openapi doc
  • Loading branch information
dontseyit authored Nov 13, 2024
1 parent 5c72aeb commit ecff125
Show file tree
Hide file tree
Showing 8 changed files with 1,554 additions and 1,709 deletions.
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"visualstudioexptteam.vscodeintellicode",
"ymotongpoo.licenser",
"charliermarsh.ruff",
"ms-python.mypy-type-checker"
"ms-python.mypy-type-checker",
"-ms-python.autopep8"
]
}
},
Expand All @@ -71,4 +72,4 @@
// details can be found here: https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
}
}
}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ repos:
- id: no-commit-to-branch
args: [--branch, dev, --branch, int, --branch, main]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.7.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.13.0
hooks:
- id: mypy
args: [--no-warn-unused-ignores]
2 changes: 1 addition & 1 deletion .pyproject_generation/pyproject_custom.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ars"
version = "2.0.4"
version = "2.0.5"
description = "Access Request Service"
dependencies = [
"ghga-event-schemas~=3.3.1",
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ We recommend using the provided Docker container.

A pre-build version is available at [docker hub](https://hub.docker.com/repository/docker/ghga/access-request-service):
```bash
docker pull ghga/access-request-service:2.0.4
docker pull ghga/access-request-service:2.0.5
```

Or you can build the container yourself from the [`./Dockerfile`](./Dockerfile):
```bash
# Execute in the repo's root dir:
docker build -t ghga/access-request-service:2.0.4 .
docker build -t ghga/access-request-service:2.0.5 .
```

For production-ready deployment, we recommend using Kubernetes, however,
for simple use cases, you could execute the service using docker
on a single server:
```bash
# The entrypoint is preconfigured:
docker run -p 8080:8080 ghga/access-request-service:2.0.4 --help
docker run -p 8080:8080 ghga/access-request-service:2.0.5 --help
```

If you prefer not to use containers, you may install the service from source:
Expand Down
1,897 changes: 914 additions & 983 deletions lock/requirements-dev.txt

Large diffs are not rendered by default.

1,339 changes: 627 additions & 712 deletions lock/requirements.txt

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ components:
title: Request Text
type: string
status:
allOf:
- $ref: '#/components/schemas/AccessRequestStatus'
$ref: '#/components/schemas/AccessRequestStatus'
default: pending
description: The status of this access request
status_changed:
Expand Down Expand Up @@ -139,8 +138,7 @@ components:
description: ID of the IVA to be used for this request
title: Iva Id
status:
allOf:
- $ref: '#/components/schemas/AccessRequestStatus'
$ref: '#/components/schemas/AccessRequestStatus'
description: The new status of this access request
required:
- status
Expand All @@ -161,7 +159,7 @@ components:
info:
description: A service managing access requests for the GHGA Data Portal
title: Access Request Service
version: 2.0.4
version: 2.0.5
openapi: 3.1.0
paths:
/access-requests:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classifiers = [
"Intended Audience :: Developers",
]
name = "ars"
version = "2.0.4"
version = "2.0.5"
description = "Access Request Service"
dependencies = [
"ghga-event-schemas~=3.3.1",
Expand Down

0 comments on commit ecff125

Please sign in to comment.