Initial commit from pymetrius template

This commit is contained in:
Michael Panchenko committed 2025-03-23 23:33:19 +01:00
commit e93169bc8d
40 files changed
+4241

No files matched your search

+53
View File
@@ -0,0 +1,53 @@
# serena
Welcome to the serena library!
## Getting Started
You can have a local uv or docker-interpeter based setup. The repository is also
configured to seamlessly working within a GitHub Codespace. See the instructions
for the various setup scenarios below.
Independently of how the setup was done, the virtual environment can be activated with
`source .venv/bin/activate` (after creating it with uv) and the various tasks like formatting, testing, and documentation building
can be executed using `poe`. For example, `poe format` will format the code, including the
notebooks. Just run `poe` to see the available commands.
### Python (uv) setup
You can install the dependencies with
```shell
uv venv
uv pip install -e ".[dev]"
source .venv/bin/activate
```
### Docker setup
Build the docker image with
```shell
docker build -t serena .
```
and run it with the repository mounted as a volume:
```shell
docker run -it --rm -v "$(pwd)":/workspace serena
```
You can also just run `bash docker_build_and_run.sh`, which will do both things
for you.
Note: for the WSL subsystem on Windows you might need to adjust the path for the
volume.
### Codespaces
The fastest way to get started is to use a GitHub Codespace. Just click on the
button in the repository's main page.
## Contributing
Please open new issues for bugs, feature requests and extensions. See more details about the structure and
workflow in the [contributing page](docs/04_contributing/04_contributing.rst).