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
20 changes: 20 additions & 0 deletions docs/release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# How to make a PyHSS release

* Create a pull request with a release commit containing the following:
* `lib/version.py`: update `pyhss_version`
* `CHANGELOG.md`:
* Replace `## [Unreleased]` with the new version number and date in this
format: `## [1.0.1] - 2024-01-23`
* Add a new line at the bottom of the document linking to the future tag.
* `debian/changelog`:
* Run `gbp dch --ignore-branch` to update it with a list of commits since
the file was last changed.
* Adjust the first line in `debian/changelog`:
* Adjust the version number.
* Change `UNRELEASED` to `unstable`.

* After the PR is merged:
* `git tag NEWRELEASEVERSION`
* `git push origin NEWRELEASEVERSION`

* Add a new `## [Unreleased]` section in `CHANGELOG.md`
4 changes: 4 additions & 0 deletions lib/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2026 sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
# SPDX-License-Identifier: AGPL-3.0-or-later

pyhss_version = "1.0.2"
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pyhss"
version = "1.0.2"
dynamic = ["version"]
requires-python = ">=3.11"

[project.scripts]
Expand All @@ -27,6 +27,9 @@ packages = [
"pyhss.tools",
]

[tool.setuptools.dynamic]
version = {attr = "pyhss.lib.version.pyhss_version"}

[tool.setuptools.package-dir]
pyhss = ""

Expand Down Expand Up @@ -63,6 +66,7 @@ include = [
"lib/gsup/controller/ss.py",
"lib/gsup/protocol/gsup_msg.py",
"lib/pyhss_config.py",
"lib/version.py",
"tests/test_database_upgrade_mariadb.py",
"tests/test_database_upgrade_postgresql.py",
"tests/test_database_upgrade_sqlite.py",
Expand Down
10 changes: 7 additions & 3 deletions services/apiService.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from diameter import Diameter
from messaging import RedisMessaging
from baseModels import SubscriberInfo
from version import pyhss_version
import database
from pyhss_config import config

Expand Down Expand Up @@ -81,9 +82,12 @@


apiService.wsgi_app = ProxyFix(apiService.wsgi_app)
api = Api(apiService, version='1.0', title=f'{siteName + " - " if siteName else ""}{originHostname} - PyHSS OAM API',
description='Restful API for working with PyHSS',
doc='/docs/'
api = Api(
apiService,
version=pyhss_version,
title=f"{siteName + ' - ' if siteName else ''}{originHostname} - PyHSS OAM API",
description="Restful API for working with PyHSS",
doc="/docs/",
)

ns_apn = api.namespace('apn', description='PyHSS APN Functions')
Expand Down
Loading