s3rius / FastAPI-template

Feature rich robust FastAPI template.
MIT License
1.94k stars 171 forks source link

How to specify version of application? #128

Closed RoyalGoose closed 1 year ago

RoyalGoose commented 1 year ago

As I can see the version of api is specified in application.py

app = FastAPI(
...
version=metadata.version("app_name")
)

But how can I change this version?

I tried to change version in pyproject.toml, but it seems have no effect

s3rius commented 1 year ago

@RoyalGoose You need to update version in your pyproject.toml and run poetry install.

RoyalGoose commented 1 year ago

@RoyalGoose You need to update version in your pyproject.toml and run poetry install.

Thank you! I forgot to run poetry install

s3rius commented 1 year ago

@RoyalGoose You're welcome.