Metadata-Version: 2.1
Name: lcacollect-config
Version: 1.1.0
Summary: This package contains shared config and utils to be used across LCAcollect backends.
Home-page: https://github.com/lcacollect/shared-config-backend
License: LGPL-3.0-or-later
Author: Christian Kongsgaard
Author-email: chrk@arkitema.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: SQLAlchemy[asyncio] (>=1.4.35)
Requires-Dist: aiocache
Requires-Dist: asyncpg (>=0.26.0,<0.27.0)
Requires-Dist: fastapi-azure-auth
Requires-Dist: pydantic
Requires-Dist: sqlmodel (>=0.0.8)
Requires-Dist: strawberry-graphql[fastapi] (>=0.164.0)
Project-URL: Repository, https://github.com/lcacollect/shared-config-backend
Description-Content-Type: text/markdown

# LCAcollect Shared Config Package

This package contains shared config and utils to be used across LCAcollect backends. It is a Python package, distributed to
PyPI to be consumed from the relevant backends.

# Getting Started

Install the following in your virtual environment:

- Python 3.10
- [Poetry](https://python-poetry.org/docs/#osx--linux--bashonwindows-install-instructions)
- [pre-commit](https://pre-commit.com/#installation)

**Setup local Python environment**

```shell
poetry install
pre-commit install
```

**Run tests**

```shell
pytest tests/
```

# Publishing

Azure Artifacts are being used to
manage [versioning of this package](https://dev.azure.com/arkitema/lca-platform/_artifacts/feed/backend-packages/PyPI/lcaconfig/versions)
. When a new version is ready to be published, remember to update the version by running the following command:
```shell
poetry version minor
```
otherwise the pipeline will fail to publish the package.
Publishing happens automatically on merges to `main` in an Azure Pipeline.

