Skip to content

Commit

Permalink
Release v0.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
IHosseini083 authored May 3, 2023
1 parent 74a5391 commit 4531cd1
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 3 deletions.
48 changes: 47 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,51 @@ The format used in this document is based on [Keep a Changelog](https://keepacha

## [Unreleased]

## [0.1.10] (2023-05-03)

### Added

- Dockerized project.
- Add new schema `CommonHTTPError` for common HTTP error response models in OpenAPI spec.
- Use `UTC` time in `structlog.processors.TimeStamper` processor.
- Add `UVICORN_HOST` and `UVICORN_PORT` as required environment variables to be explicitly
set by user.

### Removed

- Removed flake8 and autopep8 pre-commit hooks.
- Removed `charliermarsh.ruff` extension from VSCode's recommended extensions.
- Removed `scripts/test` script.
- Removed `LOG_FILE_PATH` environment variable and support for log files

### Chnaged

- Removed `@app.on_event("...")` functions and use `lifespan` feature instead:

```python
from contextlib import asynccontextmanager

from fastapi import FastAPI

@asynccontextmanager
async def lifespan(application: FastAPI): # noqa
# On startup
yield
# On shutdown


app = FastAPI(
...,
lifespan=lifespan,
)
```

- Set pre-commit ci autoupdate schedule to `monthly`.
- Clean up README file and add instructions for using `Docker`.
- Use enum for validation of `LOG_LEVEL` environment variable instead of pydantic validator.
- Use `structlog.stdlib.BoundLogger` bound logger as `wrapper_class` for all structlog
loggers that we get from calling `structlog.get_logger()`.

## [0.1.7] (2022-11-14)

### Added
Expand Down Expand Up @@ -240,4 +285,5 @@ MongoDB connection string.
[0.1.5]: https://github.com/IHosseini083/Shortify/compare/v0.1.4...v0.1.5
[0.1.6]: https://github.com/IHosseini083/Shortify/compare/v0.1.5...v0.1.6
[0.1.7]: https://github.com/IHosseini083/Shortify/compare/v0.1.6...v0.1.7
[unreleased]: https://github.com/IHosseini083/Shortify/compare/v0.1.7...HEAD
[0.1.10]: https://github.com/IHosseini083/Shortify/compare/v0.1.7...v0.1.10
[unreleased]: https://github.com/IHosseini083/Shortify/compare/v0.1.10...HEAD
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "shortify"
version = "0.1.7"
version = "0.1.10"
description = "Shortify is a URL shortener RESTful API built with Python and FastAPI."
authors = ["Iliya <IHosseini083@gmail.com>"]
license = "GPL-3.0-only"
Expand Down
2 changes: 1 addition & 1 deletion shortify/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.7"
__version__ = "0.1.10"

0 comments on commit 4531cd1

Please sign in to comment.