diff --git a/docs/developer/devstart.md b/docs/developer/devstart.md index 2fd363dd39..52b8c62ad9 100644 --- a/docs/developer/devstart.md +++ b/docs/developer/devstart.md @@ -7,6 +7,8 @@ Setting up the development environment for Suzieq involves the following steps: * Make sure you have a python3 version that is > 3.7.1 and less than 3.9.0. If you don't have a system provided python version that matches this requirement, you can use [pyenv](https://realpython.com/intro-to-pyenv/) to install one. * If you've used pyenv to install a specific python version, ensure you activate it. * Install poetry--follow the instructions posted [here](https://python-poetry.org/docs/#installation). +* Install *poetry-dynamic-versioning* -- follow the instructions posted + [here](https://pypi.org/project/poetry-dynamic-versioning/) * Ensure you have git installed (follow the instructions [here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)) * Clone the github repository: ```git clone https://github.com/netenglabs/suzieq.git```. This creates a copy of the code repository in the subfolder suzieq in the current directory. * Create the virtual environment and install the appropriate packages by typing: ```poetry install``` diff --git a/pyproject.toml b/pyproject.toml index 54b1800c76..afe0c8e422 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "suzieq" -version = "0.16.0" +version = "0.0.0" description = "A framework and application for network observability" readme = 'README.md' repository = 'https://github.com/netenglabs/suzieq' @@ -14,7 +14,6 @@ classifiers = [ 'Topic :: System :: Networking :: Monitoring' ] - [tool.poetry.dependencies] python = ">3.7.1, < 3.9" aiohttp = "==3.7.4" @@ -74,6 +73,12 @@ sq-anonymizer = 'suzieq.utilities.sq_anonymizer:anonymizer_main' suzieq-cli = 'suzieq.cli.sq_cli:cli_main' suzieq-gui = 'suzieq.gui.sq_gui:gui_main' +[tool.poetry-dynamic-versioning] +enable = true +vcs = "git" +style = "semver" +pattern = "^v(?P\\d+\\.\\d+\\.\\d+)(-?((?P[a-zA-Z]+)\\.?(?P\\d+)?))?(\\+(?P.+))?$" + [build-system] -requires = ["poetry>=0.12"] +requires = ["poetry>=1.0.2", "poetry-dynamic-versioning"] build-backend = "poetry.masonry.api" diff --git a/suzieq/version.py b/suzieq/version.py index dd769927f2..989af4abd5 100755 --- a/suzieq/version.py +++ b/suzieq/version.py @@ -1,7 +1,8 @@ #!/usr/bin/env python -SUZIEQ_VERSION = "0.16.0" +__version__ = "0.0.0" +SUZIEQ_VERSION = __version__ if __name__ == '__main__': print(SUZIEQ_VERSION)