Compare commits
2 Commits
main
...
v0.0.1-rc1
Author | SHA1 | Date | |
---|---|---|---|
|
f480cb3f12 | ||
|
8e51024b2c |
21
README.md
21
README.md
@ -8,20 +8,31 @@ A Python library that announces a server to a host.
|
||||
pip install announce-server
|
||||
```
|
||||
|
||||
## Development
|
||||
|
||||
To install the developer dependencies required for testing and publishing:
|
||||
```bash
|
||||
pip install -e .[dev,pub]
|
||||
```
|
||||
|
||||
## Build
|
||||
To build the package, run:
|
||||
|
||||
```bash
|
||||
pip install -e .[dev]
|
||||
pip install -m build
|
||||
rm -rf dist/ build/ .eggs/ .pytest_cache/ src/announce_server.egg-info/
|
||||
python -m build --sdist --wheel
|
||||
```
|
||||
|
||||
To publish:
|
||||
```bash
|
||||
twine upload dist/*
|
||||
```
|
||||
|
||||
## Test
|
||||
|
||||
To run the tests, install the package with the `[dev]` option:
|
||||
To run the tests, call:
|
||||
|
||||
```bash
|
||||
pip install -e .[dev]
|
||||
pytest
|
||||
```
|
||||
|
||||
@ -30,7 +41,7 @@ pytest
|
||||
```python
|
||||
from announce_server.announce import announce_server
|
||||
|
||||
@announce_server(name="server_name", ip="server_ip", port=8000, host_ip="host_server_ip", host_port=5000)
|
||||
@announce_server(name="server_name", ip="server_ip", port=8000, host_ip="host_server_ip", host_port=5000, retry_interval=5)
|
||||
def your_function():
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user