Skip to content

Commit 9ef6927

Browse files
committed
Add version file.
1 parent 239c0e0 commit 9ef6927

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

opensips/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616
## You should have received a copy of the GNU General Public License
1717
## along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
##
19+
20+
from .version import __version__
21+

opensips/version.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
__version__ = '0.1.0'

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
from setuptools import setup, find_packages
22

3+
from opensips import version
4+
35
setup(
46
name="opensips",
5-
version="0.1.0",
7+
version=version.__version__,
68
packages=find_packages(),
79
install_requires=[],
810
author="Darius Stefan",
@@ -16,4 +18,4 @@
1618
],
1719
scripts=['scripts/opensips-mi'],
1820
python_requires=">=3.6"
19-
)
21+
)

0 commit comments

Comments
 (0)