Skip to content

Commit eb36a8e

Browse files
committed
packaging: revert setuptool and bump version to 0.3.5
1 parent 4ea2597 commit eb36a8e

File tree

6 files changed

+83
-10
lines changed

6 files changed

+83
-10
lines changed

opensipscli/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
## along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
##
1919

20-
__version__ = '0.3.4'
20+
__version__ = '0.3.5'
2121

2222
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4

packaging/debian/changelog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
opensips-cli (0.3.5-1) stable; urgency=low
2+
3+
* Keep hatchling pyproject build path.
4+
* Add setup.py fallback for older distro build environments.
5+
* Switch Debian Build-Depends to setuptools.
6+
* Revert RedHat packaging to legacy py3 build/install macros.
7+
8+
-- Razvan Crainea <razvan@opensips.org> Thu, 19 Feb 2026 12:55:00 +0000
9+
110
opensips-cli (0.3.4-1) stable; urgency=low
211

312
* Migrate packaging to pyproject.toml and hatchling.

packaging/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Source: opensips-cli
22
Section: python
33
Priority: optional
44
Maintainer: Razvan Crainea <razvan@opensips.org>
5-
Build-Depends: debhelper (>= 9), dh-python, pybuild-plugin-pyproject, python3-hatchling, python3-dev, default-libmysqlclient-dev | libmysqlclient-dev, python3-sqlalchemy, python3-opensips
5+
Build-Depends: debhelper (>= 9), dh-python, python3-setuptools, python3-dev, default-libmysqlclient-dev | libmysqlclient-dev, python3-sqlalchemy, python3-opensips
66
Standards-Version: 3.9.8
77
Homepage: https://github.com/OpenSIPS/opensips-cli
88

packaging/debian/rules

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
VERSION=$(shell python -Bc 'import sys; sys.path.append("."); from opensipscli.version import __version__; print(__version__)')
44
NAME=opensips-cli
5-
export PYBUILD_SYSTEM=pyproject
65

76
%:
87
dh $@ --with python3 --buildsystem=pybuild

packaging/redhat_fedora/opensips-cli.spec

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary: Interactive command-line tool for OpenSIPS 3.0+
22
Name: opensips-cli
3-
Version: 0.3.4
3+
Version: 0.3.5
44
Release: 0%{?dist}
55
License: GPL-3+
66
Group: System Environment/Daemons
@@ -10,8 +10,7 @@ URL: http://opensips.org
1010
BuildArch: noarch
1111

1212
BuildRequires: python3-devel
13-
BuildRequires: pyproject-rpm-macros
14-
BuildRequires: python3-hatchling
13+
BuildRequires: python3-setuptools
1514
BuildRequires: python3-rpm-macros
1615
BuildRequires: mysql-devel
1716
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -52,17 +51,18 @@ XMLRPC Interface.
5251
%autosetup -n %{name}-%{version}
5352

5453
%build
55-
%pyproject_wheel
54+
%py3_build
5655

5756
%install
58-
%pyproject_install
59-
%pyproject_save_files opensipscli
57+
%py3_install
6058

6159
%clean
6260
rm -rf $RPM_BUILD_ROOT
6361

64-
%files -f %{pyproject_files}
62+
%files
6563
%{_bindir}/opensips-cli
64+
%{python3_sitelib}/opensipscli/*
65+
%{python3_sitelib}/opensipscli-*.egg-info
6666
%doc README.md
6767
%doc docs/*
6868
%doc etc/default.cfg

setup.py

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#!/usr/bin/env python
2+
##
3+
## This file is part of OpenSIPS CLI
4+
## (see https://github.com/OpenSIPS/opensips-cli).
5+
##
6+
## This program is free software: you can redistribute it and/or modify
7+
## it under the terms of the GNU General Public License as published by
8+
## the Free Software Foundation, either version 3 of the License, or
9+
## (at your option) any later version.
10+
##
11+
## This program is distributed in the hope that it will be useful,
12+
## but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
## GNU General Public License for more details.
15+
##
16+
## You should have received a copy of the GNU General Public License
17+
## along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
##
19+
20+
"""
21+
Installs OpenSIPS Command Line Interface
22+
"""
23+
24+
from pathlib import Path
25+
26+
from setuptools import find_packages, setup
27+
28+
29+
HERE = Path(__file__).resolve().parent
30+
VERSION = {}
31+
exec((HERE / "opensipscli" / "version.py").read_text(encoding="utf-8"), VERSION)
32+
33+
34+
setup(
35+
name="opensipscli",
36+
version=VERSION["__version__"],
37+
author="OpenSIPS Project",
38+
author_email="project@opensips.org",
39+
maintainer="Razvan Crainea",
40+
maintainer_email="razvan@opensips.org",
41+
description="OpenSIPS Command Line Interface",
42+
long_description=(HERE / "README.md").read_text(encoding="utf-8"),
43+
long_description_content_type="text/markdown",
44+
url="https://github.com/OpenSIPS/opensips-cli",
45+
download_url="https://github.com/OpenSIPS/opensips-cli/archive/master.zip",
46+
packages=find_packages(include=("opensipscli", "opensipscli.*")),
47+
install_requires=[
48+
"opensips",
49+
"mysqlclient<1.4.0rc1",
50+
"sqlalchemy>=1.3.3,<2",
51+
"sqlalchemy-utils",
52+
],
53+
classifiers=[
54+
"Programming Language :: Python :: 3",
55+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
56+
"Operating System :: OS Independent",
57+
],
58+
scripts=["bin/opensips-cli"],
59+
project_urls={
60+
"Source Code": "https://github.com/OpenSIPS/opensips-cli",
61+
"Issues Tracker": "https://github.com/OpenSIPS/opensips-cli/issues",
62+
},
63+
)
64+
65+
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4

0 commit comments

Comments
 (0)