Skip to content

Commit

Permalink
Merge pull request #23 from kytos-ng/release/2022.2.0
Browse files Browse the repository at this point in the history
[Release] Bumped 2022.2.0
  • Loading branch information
viniarck authored Aug 11, 2022
2 parents 00c642c + 1922785 commit f9df130
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ Fixed
Security
========

[2022.2.0] - 2022-08-08
***********************

General Information
===================
- Added unit tests and increased unit test coverage


[2022.1.0] - 2022-02-08
***********************

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include kytos.json
include requirements/run.txt
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

Overview
========
Napp responsible for providing a Generic Flow and stats
Napp responsible for providing a Generic Flow and OpenFlow stats

Installing
==========
Expand Down
2 changes: 1 addition & 1 deletion kytos.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"username": "amlight",
"name": "flow_stats",
"description": "Store flow information and show statistics about them.",
"version": "2022.1.0",
"version": "2022.2.0",
"napp_dependencies": ["kytos/of_core"],
"license": "",
"tags": [],
Expand Down
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Run "python3 setup.py --help-commands" to list all available commands and their
descriptions.
"""
import json
import os
import shutil
import sys
Expand All @@ -23,7 +24,6 @@

NAPP_NAME = 'flow_stats'
NAPP_USERNAME = 'amlight'
NAPP_VERSION = '2022.1.0'

# Kytos var folder
VAR_PATH = BASE_ENV / 'var' / 'lib' / 'kytos'
Expand Down Expand Up @@ -247,6 +247,13 @@ def symlink_if_different(path, target):
path.symlink_to(target)


def read_version_from_json():
"""Read the NApp version from NApp kytos.json file."""
file = Path('kytos.json')
metadata = json.loads(file.read_text(encoding="utf8"))
return metadata['version']


def read_requirements(path="requirements/run.txt"):
"""Read requirements file and return a list."""
with open(path, "r", encoding="utf8") as file:
Expand All @@ -258,7 +265,7 @@ def read_requirements(path="requirements/run.txt"):


setup(name=f'{NAPP_USERNAME}_{NAPP_NAME}',
version=NAPP_VERSION,
version=read_version_from_json(),
description='Store flow information and show statistics about them.',
url='http://github.com/kytos-ng/flow_stats',
author='FIU/AmLight team',
Expand Down

0 comments on commit f9df130

Please sign in to comment.