From 1d502d2107bb949a520f7172b7854cb39331032d Mon Sep 17 00:00:00 2001 From: Michael Pilosov Date: Sun, 19 Mar 2023 17:10:52 -0600 Subject: [PATCH] updated instructions for build, new pkgs --- README.md | 14 ++++++++++---- setup.cfg | 9 ++++++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 952e432..362b791 100644 --- a/README.md +++ b/README.md @@ -8,20 +8,26 @@ 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 ``` ## Test -To run the tests, install the package with the `[dev]` option: +To run the tests, call: ```bash -pip install -e .[dev] pytest ``` diff --git a/setup.cfg b/setup.cfg index 82a17c0..0e6bd7b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,13 +31,16 @@ where = src [options.extras_require] dev = - build - setuptools_scm pytest pytest-mock pytest-asyncio pytest-cov - # asynctest; python_version<'3.8' + +pub = + build + wheel + setuptools_scm + twine [coverage:run] source = announce_server