Skip to content

Commit

Permalink
Developer page and navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
aandres committed Sep 19, 2023
1 parent 3b226b7 commit 1ce45e8
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
68 changes: 68 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@

# Development

## Set up

```shell
python3 -m venv --clear venv
source venv/bin/activate
poetry self add "poetry-dynamic-versioning[plugin]"
poetry install
pre-commit install
```

## Testing


To run tests fast:
```shell
pytest -n auto tests
```

To Get coverage:
```shell
coverage run --branch --include "./beavers/*" -m pytest tests
coverage report --show-missing
```

## Generating the change log

We use [git-change-log](https://pawamoy.github.io/git-changelog/usage/) to generate our CHANGELOG.md

Please follow the [basic convention](https://pawamoy.github.io/git-changelog/usage/#basic-convention) for commit message.

To update the change log, run:
```shell
git-changelog -io CHANGELOG.md
```

## New Release

For new release, first prepare the change log, push and merge it.
```shell
git-changelog -bio CHANGELOG.md``
```

Then tag and push:
```shell
git tag vX.X.X
git push origin vX.X.X
```

Lastly on github, go to tags and create a release.
The CI will deploy to pypi automatically from then.

## Testing the documentation

```shell
mkdocs serve --livereload --watch=./
```

## Updating dependencies

- For the repo `poetry lock`
- For the doc: `(cd docs/; pip-compile ./requirements.in > ./requirements.txt)`

## Resources

The repo set up is inspired by this [guide](https://mathspp.com/blog/how-to-create-a-python-package-in-2022)
16 changes: 16 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,19 @@ markdown_extensions:
- md_in_html
extra:
project_name: "beavers"


nav:
- Home:
- index.md
- Concepts:
- concepts/1_dag.md
- concepts/2_advanced.md
- concepts/3_replay.md
- concepts/4_kafka.md
- API Reference:
- reference/engine.md
- reference/kafka.md
- reference/replay.md
- install.md
- development.md

0 comments on commit 1ce45e8

Please sign in to comment.