Skip to content

Commit ea326a4

Browse files
authored
Merge pull request #27 from home-assistant-libs/synesthesiam-20250127-version-bump-cleanup
Bump version and clean up
2 parents 6f615ad + 161ab44 commit ea326a4

8 files changed

+22
-32
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ venv/
1919
!.vscode/tasks.json
2020

2121
dist/
22+
build/

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.3.0
4+
5+
- Add support for outgoing calls (@jaminh)
6+
37
## 0.2.2
48

59
- Always set `addr`

README.md

-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
11
# VoIP Utils
22

33
Voice over IP utilities for the [voip integration](https://www.home-assistant.io/integrations/voip/).
4-
5-
## Test outgoing call
6-
Install dependencies from requirements_dev.txt
7-
8-
Set environment variables for source and destination endpoints in .env file
9-
CALL_SRC_USER = "homeassistant"
10-
CALL_SRC_IP = "192.168.1.1"
11-
CALL_SRC_PORT = 5060
12-
CALL_VIA_IP = "192.168.1.1"
13-
CALL_DEST_IP = "192.168.1.2"
14-
CALL_DEST_PORT = 5060
15-
CALL_DEST_USER = "phone"
16-
17-
Run script
18-
python call_example.py
19-

pyproject.toml

+14-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "voip-utils"
7-
version = "0.2.2"
7+
version = "0.3.0"
88
license = {text = "Apache-2.0"}
99
description = "Voice over IP Utilities"
1010
readme = "README.md"
@@ -26,6 +26,19 @@ classifiers = [
2626
requires-python = ">=3.9.0"
2727
dependencies = ["opuslib==3.0.1"]
2828

29+
[project.optional-dependencies]
30+
dev = [
31+
"build==1.2.2",
32+
"black==23.3.0",
33+
"flake8==7.1.0",
34+
"isort==5.12.0",
35+
"mypy==1.1.1",
36+
"opuslib==3.0.1",
37+
"pylint==3.2.5",
38+
"pytest==7.2.2",
39+
"python-dotenv==1.0.1"
40+
]
41+
2942
[project.urls]
3043
"Source Code" = "https://github.com/home-assistant-libs/voip-utils"
3144

requirements.txt

-1
This file was deleted.

requirements_dev.txt

-10
This file was deleted.

script/package

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ _PROGRAM_DIR = _DIR.parent
88
_VENV_DIR = _PROGRAM_DIR / ".venv"
99

1010
context = venv.EnvBuilder().ensure_directories(_VENV_DIR)
11-
subprocess.check_call([context.env_exe, "-m", "build"])
11+
subprocess.check_call([context.env_exe, "-m", "build", "--wheel", "--sdist"])

script/setup

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ builder.create(_VENV_DIR)
2020
# Upgrade dependencies
2121
pip = [context.env_exe, "-m", "pip"]
2222
subprocess.check_call(pip + ["install", "--upgrade", "pip"])
23-
subprocess.check_call(pip + ["install", "--upgrade", "setuptools", "wheel"])
2423

2524
# Install requirements
26-
subprocess.check_call(pip + ["install", "-r", str(_PROGRAM_DIR / "requirements.txt")])
25+
subprocess.check_call(pip + ["install", "-e", str(_PROGRAM_DIR)])
2726

2827
if args.dev:
2928
# Install dev requirements
3029
subprocess.check_call(
31-
pip + ["install", "-r", str(_PROGRAM_DIR / "requirements_dev.txt")]
30+
pip + ["install", "-e", f"{_PROGRAM_DIR}[dev]"]
3231
)

0 commit comments

Comments
 (0)