Skip to content

Commit f4a6814

Browse files
committed
add bpython as dev dependency, bump version, fix publish workflow and precommit tests
1 parent 16b496b commit f4a6814

File tree

5 files changed

+307
-4
lines changed

5 files changed

+307
-4
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,28 @@ jobs:
4040
run-test: true
4141
run-build: false
4242

43+
release-artifacts:
44+
runs-on: ubuntu-latest
45+
needs:
46+
- [build-package, cross-test]
47+
permissions:
48+
- content: write
49+
steps:
50+
- name: Retrieve release distributions
51+
uses: actions/download-artifact@v4
52+
with:
53+
name: release-dists
54+
path: dist/
55+
- name: Upload Python Distributions to Release
56+
uses: softprops/action-gh-release@v1
57+
if: startsWith(github.ref, 'refs/tags/')
58+
with:
59+
files: dist/*
60+
61+
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
4365
pypi-publish:
4466
runs-on: ubuntu-latest
4567
needs:

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ repos:
4141
types: [python]
4242
args: ["run", "pytest"]
4343
always_run: true
44+
pass_filenames: false

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "chordnet"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
license = "MIT"
55
license-files = ["LICENSE"]
66
description = "Implementation of the chord peer-to-peer networking protocol, introduced by Stoica et al."
@@ -16,7 +16,7 @@ classifiers = [
1616
# 4 - Beta
1717
# 5 - Production/Stable
1818
# 7 - Inactive
19-
"Development Status :: 1 - Planning",
19+
"Development Status :: 2 - Pre-Alpha",
2020

2121
# Indicate who your project is intended for
2222
"Intended Audience :: Developers",
@@ -58,6 +58,7 @@ explicit = true
5858

5959
[dependency-groups]
6060
dev = [
61+
"bpython>=0.25",
6162
"mypy>=1.17.1",
6263
"pre-commit>=4.3.0",
6364
"pytest>=8.4.1",
@@ -68,7 +69,7 @@ dev = [
6869
minversion = "6.0"
6970
addopts = "-ra -q"
7071
pythonpath = [
71-
"src"
72+
"src",
7273
]
7374
testpaths = [
7475
"tests",

src/chordnet/net.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def _listen_for_connections(self) -> None:
129129
).start()
130130
except Exception as e:
131131
if self._running:
132+
print(f"Error accepting connection: {e}\n")
132133
sys.stderr.write(f"Error accepting connection: {e}\n")
133134
sys.stderr.flush()
134135

0 commit comments

Comments
 (0)