Skip to content

Commit

Permalink
sync with wasp 0.14 version from studio
Browse files Browse the repository at this point in the history
  • Loading branch information
davorrunje committed Jul 19, 2024
1 parent 3420327 commit e66ee78
Show file tree
Hide file tree
Showing 231 changed files with 34,323 additions and 125 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/python-3.10/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
],
"service": "python-3.10",
"forwardPorts": [
"${containerEnv:CONTAINER_PREFIX}-nats-py310-fastagencyapi:9222"
"${containerEnv:CONTAINER_PREFIX}-nats-py310-fastagency:9222"
],
"shutdownAction": "stopCompose",
"workspaceFolder": "/workspaces/fastagencyapi",
"workspaceFolder": "/workspaces/fastagency",
// "runArgs": [],
"remoteEnv": {},
"features": {
Expand Down
30 changes: 15 additions & 15 deletions .devcontainer/python-3.10/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ version: '3'
services:
python-3.10: # nosemgrep
image: mcr.microsoft.com/devcontainers/python:3.10
container_name: $USER-python-3.10-fastagencyapi
container_name: $USER-python-3.10-fastagency
volumes:
- ../../:/workspaces/fastagencyapi:cached
- ../../:/workspaces/fastagency:cached
command: sleep infinity
environment:
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py310-fastagencyapi:5432/fastagencyapi
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py310-fastagencyapi:5432/pyfastagencyapi
- NATS_URL=nats://${USER}-nats-py310-fastagencyapi:4222
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py310-fastagency:5432/fastagency
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py310-fastagency:5432/pyfastagency
- NATS_URL=nats://${USER}-nats-py310-fastagency:4222
env_file:
- ../devcontainer.env
networks:
- fastagencyapi-network
nats-fastagencyapi: # nosemgrep
- fastagency-network
nats-fastagency: # nosemgrep
image: nats:latest
container_name: $USER-nats-py310-fastagencyapi
container_name: $USER-nats-py310-fastagency
# ports:
# - "${PORT_PREFIX}4222:4222"
# - "${PORT_PREFIX}9222:9222"
Expand All @@ -27,19 +27,19 @@ services:
env_file:
- ../devcontainer.env
networks:
- fastagencyapi-network
postgres-fastagencyapi: # nosemgrep
- fastagency-network
postgres-fastagency: # nosemgrep
image: postgres:latest
container_name: $USER-postgres-py310-fastagencyapi
container_name: $USER-postgres-py310-fastagency
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password # pragma: allowlist secret
POSTGRES_DB: fastagencyapi
POSTGRES_DB: fastagency
# ports:
# - "${PORT_PREFIX}5432:5432"
networks:
- fastagencyapi-network
- fastagency-network

networks:
fastagencyapi-network:
name: "${USER}-fastagencyapi-network"
fastagency-network:
name: "${USER}-fastagency-network"
4 changes: 2 additions & 2 deletions .devcontainer/python-3.11/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
],
"service": "python-3.11",
"forwardPorts": [
"${containerEnv:CONTAINER_PREFIX}-nats-py311-fastagencyapi:9222"
"${containerEnv:CONTAINER_PREFIX}-nats-py311-fastagency:9222"
],
"shutdownAction": "stopCompose",
"workspaceFolder": "/workspaces/fastagencyapi",
"workspaceFolder": "/workspaces/fastagency",
// "runArgs": [],
"remoteEnv": {},
"features": {
Expand Down
30 changes: 15 additions & 15 deletions .devcontainer/python-3.11/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ version: '3'
services:
python-3.11: # nosemgrep
image: mcr.microsoft.com/devcontainers/python:3.11
container_name: $USER-python-3.11-fastagencyapi
container_name: $USER-python-3.11-fastagency
volumes:
- ../../:/workspaces/fastagencyapi:cached
- ../../:/workspaces/fastagency:cached
command: sleep infinity
environment:
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py311-fastagencyapi:5432/fastagencyapi
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py311-fastagencyapi:5432/pyfastagencyapi
- NATS_URL=nats://${USER}-nats-py311-fastagencyapi:4222
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py311-fastagency:5432/fastagency
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py311-fastagency:5432/pyfastagency
- NATS_URL=nats://${USER}-nats-py311-fastagency:4222
env_file:
- ../devcontainer.env
networks:
- fastagencyapi-network
nats-fastagencyapi: # nosemgrep
- fastagency-network
nats-fastagency: # nosemgrep
image: nats:latest
container_name: $USER-nats-py311-fastagencyapi
container_name: $USER-nats-py311-fastagency
# ports:
# - "${PORT_PREFIX}4222:4222"
# - "${PORT_PREFIX}9222:9222"
Expand All @@ -27,19 +27,19 @@ services:
env_file:
- ../devcontainer.env
networks:
- fastagencyapi-network
postgres-fastagencyapi: # nosemgrep
- fastagency-network
postgres-fastagency: # nosemgrep
image: postgres:latest
container_name: $USER-postgres-py311-fastagencyapi
container_name: $USER-postgres-py311-fastagency
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password # pragma: allowlist secret
POSTGRES_DB: fastagencyapi
POSTGRES_DB: fastagency
# ports:
# - "${PORT_PREFIX}5432:5432"
networks:
- fastagencyapi-network
- fastagency-network

networks:
fastagencyapi-network:
name: "${USER}-fastagencyapi-network"
fastagency-network:
name: "${USER}-fastagency-network"
4 changes: 2 additions & 2 deletions .devcontainer/python-3.12/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
],
"service": "python-3.12",
"forwardPorts": [
"${containerEnv:CONTAINER_PREFIX}-nats-py312-fastagencyapi:9222"
"${containerEnv:CONTAINER_PREFIX}-nats-py312-fastagency:9222"
],
"shutdownAction": "stopCompose",
"workspaceFolder": "/workspaces/fastagencyapi",
"workspaceFolder": "/workspaces/fastagency",
// "runArgs": [],
"remoteEnv": {},
"features": {
Expand Down
30 changes: 15 additions & 15 deletions .devcontainer/python-3.12/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ version: '3'
services:
python-3.12: # nosemgrep
image: mcr.microsoft.com/devcontainers/python:3.12
container_name: $USER-python-3.12-fastagencyapi
container_name: $USER-python-3.12-fastagency
volumes:
- ../../:/workspaces/fastagencyapi:cached
- ../../:/workspaces/fastagency:cached
command: sleep infinity
environment:
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py312-fastagencyapi:5432/fastagencyapi
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py312-fastagencyapi:5432/pyfastagencyapi
- NATS_URL=nats://${USER}-nats-py312-fastagencyapi:4222
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py312-fastagency:5432/fastagency
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py312-fastagency:5432/pyfastagency
- NATS_URL=nats://${USER}-nats-py312-fastagency:4222
env_file:
- ../devcontainer.env
networks:
- fastagencyapi-network
nats-fastagencyapi: # nosemgrep
- fastagency-network
nats-fastagency: # nosemgrep
image: nats:latest
container_name: $USER-nats-py312-fastagencyapi
container_name: $USER-nats-py312-fastagency
# ports:
# - "${PORT_PREFIX}4222:4222"
# - "${PORT_PREFIX}9222:9222"
Expand All @@ -27,19 +27,19 @@ services:
env_file:
- ../devcontainer.env
networks:
- fastagencyapi-network
postgres-fastagencyapi: # nosemgrep
- fastagency-network
postgres-fastagency: # nosemgrep
image: postgres:latest
container_name: $USER-postgres-py312-fastagencyapi
container_name: $USER-postgres-py312-fastagency
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password # pragma: allowlist secret
POSTGRES_DB: fastagencyapi
POSTGRES_DB: fastagency
# ports:
# - "${PORT_PREFIX}5432:5432"
networks:
- fastagencyapi-network
- fastagency-network

networks:
fastagencyapi-network:
name: "${USER}-fastagencyapi-network"
fastagency-network:
name: "${USER}-fastagency-network"
4 changes: 2 additions & 2 deletions .devcontainer/python-3.9/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
],
"service": "python-3.9",
"forwardPorts": [
"${containerEnv:CONTAINER_PREFIX}-nats-py39-fastagencyapi:9222"
"${containerEnv:CONTAINER_PREFIX}-nats-py39-fastagency:9222"
],
"shutdownAction": "stopCompose",
"workspaceFolder": "/workspaces/fastagencyapi",
"workspaceFolder": "/workspaces/fastagency",
// "runArgs": [],
"remoteEnv": {},
"features": {
Expand Down
30 changes: 15 additions & 15 deletions .devcontainer/python-3.9/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ version: '3'
services:
python-3.9: # nosemgrep
image: mcr.microsoft.com/devcontainers/python:3.9
container_name: $USER-python-3.9-fastagencyapi
container_name: $USER-python-3.9-fastagency
volumes:
- ../../:/workspaces/fastagencyapi:cached
- ../../:/workspaces/fastagency:cached
command: sleep infinity
environment:
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py39-fastagencyapi:5432/fastagencyapi
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py39-fastagencyapi:5432/pyfastagencyapi
- NATS_URL=nats://${USER}-nats-py39-fastagencyapi:4222
- DATABASE_URL=postgresql://admin:password@${USER}-postgres-py39-fastagency:5432/fastagency
- PY_DATABASE_URL=postgresql://admin:password@${USER}-postgres-py39-fastagency:5432/pyfastagency
- NATS_URL=nats://${USER}-nats-py39-fastagency:4222
env_file:
- ../devcontainer.env
networks:
- fastagencyapi-network
nats-fastagencyapi: # nosemgrep
- fastagency-network
nats-fastagency: # nosemgrep
image: nats:latest
container_name: $USER-nats-py39-fastagencyapi
container_name: $USER-nats-py39-fastagency
# ports:
# - "${PORT_PREFIX}4222:4222"
# - "${PORT_PREFIX}9222:9222"
Expand All @@ -27,19 +27,19 @@ services:
env_file:
- ../devcontainer.env
networks:
- fastagencyapi-network
postgres-fastagencyapi: # nosemgrep
- fastagency-network
postgres-fastagency: # nosemgrep
image: postgres:latest
container_name: $USER-postgres-py39-fastagencyapi
container_name: $USER-postgres-py39-fastagency
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password # pragma: allowlist secret
POSTGRES_DB: fastagencyapi
POSTGRES_DB: fastagency
# ports:
# - "${PORT_PREFIX}5432:5432"
networks:
- fastagencyapi-network
- fastagency-network

networks:
fastagencyapi-network:
name: "${USER}-fastagencyapi-network"
fastagency-network:
name: "${USER}-fastagency-network"
5 changes: 1 addition & 4 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ pip install -e ".[dev]"
# install pre-commit hook if not installed already
pre-commit install

# create .mypy_cache directory (see https://github.com/python/mypy/issues/10768#issuecomment-2178450153)
mkdir .mypy_cache

# install wasp
curl -sSL https://get.wasp-lang.dev/installer.sh | sh
curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- -v 0.14.0

cd app && wasp db migrate-dev && cd ..

Expand Down
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Bug:'
labels: bug
assignees: ''
---

**Describe the bug**
Provide a clear and concise description of the bug.

**How to reproduce**
Include source code:

```python
from fastagency import FastAgency
...
```

And/Or steps to reproduce the behavior:

1. ...

**Expected behavior**
Explain what you expected to happen clearly and concisely.

**Observed behavior**
Describe what is actually happening clearly and concisely.

**Screenshots**
If applicable, attach screenshots to help illustrate the problem.

**Environment**
Include the output of the `fastagency -v` command to display your current project and system environment.

**Additional context**
Provide any other relevant context or information about the problem here.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true

contact_links:
- name: Security Contact
about: Please report security vulnerabilities to [email protected]
- name: Question or Problem
about: Ask a question or ask about a problem in GitHub Discussions.
url: https://github.com/airtai/fastagency/discussions/categories/questions
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Feature Request
about: Suggest an idea for this project
title: 'Feature:'
labels: enhancement
assignees: ''
---

To suggest an idea or inquire about a new Message Broker supporting feature or any other enhancement, please follow this template:

**Is your feature request related to a problem? Please describe.**
Provide a clear and concise description of the problem you've encountered. For example: "I'm always frustrated when..."

**Describe the solution you'd like**
Clearly and concisely describe the desired outcome or solution.

**Feature code example**
To help others understand the proposed feature, illustrate it with a **FastAgency** code example:

```python
from fastagency import FastAgency
...
```

**Describe alternatives you've considered**
Provide a clear and concise description of any alternative solutions or features you've thought about.

**Additional context**
Include any other relevant context or screenshots related to the feature request.
26 changes: 26 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Description

Please include a summary of the change and specify which issue is being addressed. Additionally, provide relevant motivation and context.

Fixes # (issue number)

## Type of change

Please delete options that are not relevant.

- [ ] Documentation (typos, code examples, or any documentation updates)
- [ ] Bug fix (a non-breaking change that resolves an issue)
- [ ] New feature (a non-breaking change that adds functionality)
- [ ] Breaking change (a fix or feature that would disrupt existing functionality)
- [ ] This change requires a documentation update

## Checklist

- [ ] My code adheres to the style guidelines of this project (`scripts/lint.sh` shows no errors)
- [ ] I have conducted a self-review of my own code
- [ ] I have made the necessary changes to the documentation
- [ ] My changes do not generate any new warnings
- [ ] I have added tests to validate the effectiveness of my fix or the functionality of my new feature
- [ ] Both new and existing unit tests pass successfully on my local environment by running `scripts/test-cov.sh`
- [ ] I have ensured that static analysis tests are passing by running `scripts/static-anaylysis.sh`
- [ ] I have included code examples to illustrate the modifications
Loading

0 comments on commit e66ee78

Please sign in to comment.