Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converted repo documentation from RST format to Markdown #1892

Merged
merged 10 commits into from
Feb 20, 2024
866 changes: 866 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

1,787 changes: 0 additions & 1,787 deletions CHANGES.rst

This file was deleted.

56 changes: 56 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Contributing

## Instructions for contributors

Please help out to add features in the library that are missing or
prepare pull requests with solutions to any bug you may encounter during
execution.

If you\'re already using `poetry` ([poetry @
pypi](https://pypi.org/project/poetry/)), then please do so since it\'s
the preferred way of handling the dependencies of this library. `poetry`
can also be configured to handle virtualenvs automatically.

### Clone the repo and install the required dependencies

```bash
local ~/code$ git clone [email protected]:kalaspuff/tomodachi
local ~/code$ cd tomodachi

# Using poetry
local ~/code/tomodachi$ poetry install -E uvloop -E protobuf -E aiodns -E opentelemetry

# or alternatively with pip
local ~/code/tomodachi$ pip install -U .[uvloop,protobuf,aiodns,opentelemetry]

# Verify that the tomodachi CLI is installed
local ~/code/tomodachi$ tomodachi --version
local ~/code/tomodachi$ python -m tomodachi --version

# Finally to start services
local ~/code/tomodachi$ tomodachi run examples/basic_examples/http_simple_service.py
```

To add a PR, for the repository, commit your changes to your own clone
and make a PR on GitHub for your clone against master branch.

### Automated linting, unit tests and integration tests

There are GitHub actions enabled on \"push\" to automate test cases for
the most common use-cases, as well as performing lint tests, type hint
checking, etc. You can also run them on your own, see `Makefile` for a
helping hand.

Note that the code must conform to the `black` code style and imports
must be sorted alphabetically, and automatically separated into sections
and by type. 🖤

Use the following `make` commands to run these tasks on demand:

```bash
local ~/code/tomodachi$ make black
# Runs: black tomodachi/ examples/ tests/

local ~/code/tomodachi$ make isort
# Runs: isort tomodachi/ examples/ tests/
```
63 changes: 0 additions & 63 deletions CONTRIBUTING.rst

This file was deleted.

6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ default:
.PHONY: build
build:
rm -rf build dist
cp README.rst README.rst.tmp
cat README.rst.tmp | tr '\n' '\r' | sed -e $$'s/.. raw:: html\r*\( [^\r]*\r\)*\r//g' | tr '\r' '\n' > README.rst
poetry build
cp README.rst.tmp README.rst
rm README.rst.tmp

.PHONY: install
install:
Expand Down Expand Up @@ -110,7 +106,7 @@ _post_release_commit_dev_version:

.PHONY: _git_release
_git_release: _check_release _check_build_time
git commit -m "`python tomodachi/__version__.py`" --allow-empty pyproject.toml poetry.lock tomodachi/__version__.py CHANGES.rst
git commit -m "`python tomodachi/__version__.py`" --allow-empty pyproject.toml poetry.lock tomodachi/__version__.py CHANGES.md
git tag -a `python tomodachi/__version__.py` -m `python tomodachi/__version__.py`
git push
git push --tags
Expand Down
Loading