From 83eeb515e2bf12256833545f1d40f033ef618bd9 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Wed, 7 Jun 2023 13:02:10 +0200 Subject: [PATCH] feat(PyPI): release next jumpavg version Change-Id: I9dc5b70d983471c8b2ba5788c52e81dcfc728f49 Signed-off-by: Vratko Polak --- PyPI/jumpavg/README.rst | 6 ++++++ PyPI/jumpavg/setup.py | 52 ++++++++++++++++++++++++------------------------- 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/PyPI/jumpavg/README.rst b/PyPI/jumpavg/README.rst index f66ea9d39b..a5d78b1436 100644 --- a/PyPI/jumpavg/README.rst +++ b/PyPI/jumpavg/README.rst @@ -10,6 +10,8 @@ of CSIT_ (Continuous System and Integration Testing) project of fd.io_ (Fast Data), one of LFN_ (Linux Foundation Networking) projects. +Currently still being primarily used in PAL's successor CSIT-DASH_. + In order to make this code available in PyPI_ (Python Package Index), the setuputils stuff has been added, and the code has been moved into a separate directory_, @@ -25,6 +27,9 @@ Change log TODO: Move into separate file? +0.4.0: Added "unit" and "sbps" parameters so information content + is reasonable even if sample values are below one. + 0.3.0: Considerable speedup by avoiding unneeded copy. Dataclasses used. Mostly API compatible, but repr looks different. @@ -36,6 +41,7 @@ TODO: Move into separate file? .. _PAL: https://wiki.fd.io/view/CSIT/Design_Optimizations#Presentation_and_Analytics_Layer .. _CSIT: https://wiki.fd.io/view/CSIT +.. _CSIT-DASH: https://csit.fd.io .. _fd.io: https://fd.io/ .. _LFN: https://www.linuxfoundation.org/projects/networking/ .. _PyPI: https://pypi.org/ diff --git a/PyPI/jumpavg/setup.py b/PyPI/jumpavg/setup.py index 129277a26e..a464adb5a5 100644 --- a/PyPI/jumpavg/setup.py +++ b/PyPI/jumpavg/setup.py @@ -6,57 +6,55 @@ See: https://packaging.python.org/en/latest/distributing.html """ -from setuptools import (setup, find_packages) from os import path from io import open +from setuptools import setup, find_packages + here = path.abspath(path.dirname(__file__)) -with open(path.join(here, u"README.rst"), encoding=u"utf-8") as f: +with open(path.join(here, "README.rst"), encoding="utf-8") as f: long_description = f.read() setup( - name=u"jumpavg", - version=u"0.3.0", # This is currently the only place listing the version. + name="jumpavg", + version="0.4.0", # This is currently the only place listing the version. description=( - u"Library for locating changes in time series by grouping results." + "Library for locating changes in time series by grouping results." ), long_description=long_description, - long_description_content_type=u"text/x-rst", + long_description_content_type="text/x-rst", # TODO: Create a separate webpage for jumpavg library. url=( - u"https://gerrit.fd.io/r/gitweb?p=csit.git;a=tree;f=PyPI/jumpavg" - u";hb=refs/heads/master" + "https://gerrit.fd.io/r/gitweb?p=csit.git;a=tree;f=PyPI/jumpavg" + ";hb=refs/heads/master" ), - author=u"Cisco Systems Inc. and/or its affiliates", - author_email=u"csit-dev@lists.fd.io", + author="Cisco Systems Inc. and/or its affiliates", + author_email="csit-dev@lists.fd.io", classifiers=[ - u"Development Status :: 3 - Alpha", - u"Intended Audience :: Science/Research", + "Development Status :: 3 - Alpha", + "Intended Audience :: Science/Research", # Pick your license as you wish - u"License :: OSI Approved :: Apache Software License", - u"Natural Language :: English", + "License :: OSI Approved :: Apache Software License", + "Natural Language :: English", # TODO: Test which Python versions is the code compatible with. - u"Programming Language :: Python :: 3.8", - u"Topic :: Scientific/Engineering :: Information Analysis" + "Programming Language :: Python :: 3.8", + "Topic :: Scientific/Engineering :: Information Analysis", ], - keywords=u"progression regression anomaly detection statistics bits", + keywords="progression regression anomaly detection statistics bits", packages=find_packages(exclude=[]), python_requires="~=3.8", install_requires=[], # TODO: Include simulator and tests. - extras_require={ - }, - package_data={ - }, + extras_require={}, + package_data={}, entry_points={ - u"console_scripts": [ - ], + "console_scripts": [], }, project_urls={ - u"Bug Reports": u"https://jira.fd.io/projects/CSIT/issues", - u"Source": ( - u"https://gerrit.fd.io/r/gitweb?p=csit.git;a=tree;f=PyPI/jumpavg" - u";hb=refs/heads/master" + "Bug Reports": "https://jira.fd.io/projects/CSIT/issues", + "Source": ( + "https://gerrit.fd.io/r/gitweb?p=csit.git;a=tree;f=PyPI/jumpavg" + ";hb=refs/heads/master" ), }, ) -- 2.16.6