Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Documentation

# build the documentation whenever there are new commits on main
# build the documentation whenever there are new commits on main and for tags
on:
push:
branches:
tags:
tags:
- '*'
workflow_dispatch:

# security: restrict permissions for CI jobs.
permissions:
Expand All @@ -16,7 +16,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
# setup
- uses: actions/checkout@v5
with:
persist-credentials: false
Expand All @@ -32,15 +31,14 @@ jobs:
- name: Install chordnet dependencies
run: uv sync --frozen --all-extras --dev

- name: Build docs
run: uv run pdoc -o docs/ chordnet
- name: Build library docs
run: uv run pdoc --no-show-source --docformat google -o docs/ chordnet

- uses: actions/upload-pages-artifact@v4
with:
path: docs/

# Deploy the artifact to GitHub pages.
# This is a separate job so that only actions/deploy-pages has the necessary permissions.
# Deploy the artifact to GitHub Pages.
deploy:
needs: build
runs-on: ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ This fits with the concept of "joining" an existing ring network, or creating a
new one. Examples follow this practice.

## Development
See `CONTRIBUTING.md`.
See `CONTRIBUTING.md` [(here)](https://github.com/jacklowrie/chordnet?tab=contributing-ov-file).

## Security
If you discover a security issue, **please do not open a public issue**.
See `SECURITY.md` for the full policy/reporting instructions.
See the [security policy](https://github.com/jacklowrie/chordnet/security/policy)
for reporting instructions.
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "chordnet"
version = "2.0.0"
version = "2.1.0"
license = "MIT"
license-files = ["LICENSE"]
description = "Implementation of the chord peer-to-peer networking protocol, introduced by Stoica et al."
Expand Down Expand Up @@ -60,11 +60,21 @@ classifiers = [
"Typing :: Typed",
]


requires-python = ">=3.10"
dependencies = [
"loguru>=0.7.3",
]

[project.urls]
Homepage = "https://github.com/jacklowrie/chordnet"
Source = "https://github.com/jacklowrie/chordnet"
Documentation = "https://jacklowrie.github.io/chordnet/chordnet.html"
Issues = "https://github.com/jacklowrie/chordnet/issues"
download = "https://github.com/jacklowrie/chordnet/releases"
History = "https://github.com/jacklowrie/chordnet/releases"
PyPI = "https://pypi.org/project/chordnet/"

[build-system]
requires = ["uv_build>=0.7.19,<0.8"]
build-backend = "uv_build"
Expand Down
16 changes: 15 additions & 1 deletion src/chordnet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
"""init.py: defines importable classes."""
"""# A Python Library for Distributed Computing

ChordNet implements the chord protocol, introduced by Stoica et al.
It implements a distributed hash table.

## Project Links
- [Source (github)](https://github.com/jacklowrie/chordnet)
- [Issues](https://github.com/jacklowrie/chordnet/issues)
- [Download](https://github.com/jacklowrie/chordnet/releases)
- [History](https://github.com/jacklowrie/chordnet/releases)
- [PyPI](https://pypi.org/project/chordnet/)

.. include:: ../../README.md
:start-line: 16
""" # noqa: D415 (this docstring is rendered by pdoc)
from loguru import logger

from .chordnet import ChordNet
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.