CSIT-1110: Use jumpavg library from pip 38/13038/5
authorVratko Polak <vrpolak@cisco.com>
Thu, 14 Jun 2018 12:04:03 +0000 (14:04 +0200)
committerTibor Frank <tifrank@cisco.com>
Fri, 15 Jun 2018 10:44:11 +0000 (10:44 +0000)
+ Move the jumpavg library code to separate directory.
- Bump to 0.1.2 has to be done later.

Change-Id: I9722ede48f00e99eeb68ca3f91e0bdeee2937973
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
23 files changed:
PyPI/README.txt [new file with mode: 0644]
PyPI/jumpavg/.gitignore [new file with mode: 0644]
PyPI/jumpavg/LICENSE.txt [moved from resources/tools/presentation/new/jumpavg/LICENSE.txt with 99% similarity]
PyPI/jumpavg/MANIFEST.in [moved from resources/tools/presentation/new/jumpavg/MANIFEST.in with 100% similarity]
PyPI/jumpavg/README.rst [moved from resources/tools/presentation/new/jumpavg/README.rst with 70% similarity]
PyPI/jumpavg/jumpavg/AbstractGroupClassifier.py [moved from resources/tools/presentation/new/jumpavg/AbstractGroupClassifier.py with 100% similarity]
PyPI/jumpavg/jumpavg/AbstractGroupMetadata.py [moved from resources/tools/presentation/new/jumpavg/AbstractGroupMetadata.py with 100% similarity]
PyPI/jumpavg/jumpavg/AvgStdevMetadata.py [moved from resources/tools/presentation/new/jumpavg/AvgStdevMetadata.py with 100% similarity]
PyPI/jumpavg/jumpavg/AvgStdevMetadataFactory.py [moved from resources/tools/presentation/new/jumpavg/AvgStdevMetadataFactory.py with 100% similarity]
PyPI/jumpavg/jumpavg/BitCountingClassifier.py [moved from resources/tools/presentation/new/jumpavg/BitCountingClassifier.py with 100% similarity]
PyPI/jumpavg/jumpavg/BitCountingGroup.py [moved from resources/tools/presentation/new/jumpavg/BitCountingGroup.py with 100% similarity]
PyPI/jumpavg/jumpavg/BitCountingGroupList.py [moved from resources/tools/presentation/new/jumpavg/BitCountingGroupList.py with 100% similarity]
PyPI/jumpavg/jumpavg/BitCountingMetadata.py [moved from resources/tools/presentation/new/jumpavg/BitCountingMetadata.py with 100% similarity]
PyPI/jumpavg/jumpavg/BitCountingMetadataFactory.py [moved from resources/tools/presentation/new/jumpavg/BitCountingMetadataFactory.py with 100% similarity]
PyPI/jumpavg/jumpavg/ClassifiedBitCountingMetadata.py [moved from resources/tools/presentation/new/jumpavg/ClassifiedBitCountingMetadata.py with 100% similarity]
PyPI/jumpavg/jumpavg/ClassifiedMetadataFactory.py [moved from resources/tools/presentation/new/jumpavg/ClassifiedMetadataFactory.py with 100% similarity]
PyPI/jumpavg/jumpavg/RunGroup.py [moved from resources/tools/presentation/new/jumpavg/RunGroup.py with 100% similarity]
PyPI/jumpavg/jumpavg/__init__.py [moved from resources/tools/presentation/new/jumpavg/__init__.py with 100% similarity]
PyPI/jumpavg/setup.cfg [moved from resources/tools/presentation/new/jumpavg/setup.cfg with 100% similarity]
PyPI/jumpavg/setup.py [moved from resources/tools/presentation/new/jumpavg/setup.py with 73% similarity]
resources/tools/presentation/new/jumpavg/.gitignore [deleted file]
resources/tools/presentation/new/requirements.txt
resources/tools/presentation/requirements.txt

diff --git a/PyPI/README.txt b/PyPI/README.txt
new file mode 100644 (file)
index 0000000..5dd27e3
--- /dev/null
@@ -0,0 +1,6 @@
+Directories here hold code to be released into Python Package Index (PyPI).
+
+Mosly libraries, so people could expect them in resources/libraries/python/.
+But these libraries cannot be there, because that is a package hierarchy
+used by robot code, but we want the libraries here
+to be NOT read from cloned CSIT git repo, but from pip.
diff --git a/PyPI/jumpavg/.gitignore b/PyPI/jumpavg/.gitignore
new file mode 100644 (file)
index 0000000..894a44c
--- /dev/null
@@ -0,0 +1,104 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+MANIFEST
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+.hypothesis/
+.pytest_cache/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# pyenv
+.python-version
+
+# celery beat schedule file
+celerybeat-schedule
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+.spyderproject
+.spyproject
+
+# Rope project settings
+.ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
similarity index 99%
rename from resources/tools/presentation/new/jumpavg/LICENSE.txt
rename to PyPI/jumpavg/LICENSE.txt
index d645695..261eeb9 100644 (file)
@@ -1,4 +1,3 @@
-
                                  Apache License
                            Version 2.0, January 2004
                         http://www.apache.org/licenses/
                                  Apache License
                            Version 2.0, January 2004
                         http://www.apache.org/licenses/
similarity index 70%
rename from resources/tools/presentation/new/jumpavg/README.rst
rename to PyPI/jumpavg/README.rst
index 732af5e..2bdde2b 100644 (file)
@@ -11,8 +11,9 @@ project of fd.io_ (Fast Data), one of LFN_
 (Linux Foundation Networking) projects.
 
 In order to make this code available in PyPI_ (Python Package Index),
 (Linux Foundation Networking) projects.
 
 In order to make this code available in PyPI_ (Python Package Index),
-and to avoid rigid release cadence of CSIT,
-the library has been moved into this standalone project.
+the setuputils stuff has been added,
+and the code has been moved into a separate directory_,
+in order to not intervere of otherwise tightly coupled CSIT code.
 
 Usage
 -----
 
 Usage
 -----
@@ -24,3 +25,4 @@ TODO.
 .. _fd.io: https://fd.io/
 .. _LFN: https://www.linuxfoundation.org/projects/networking/
 .. _PyPI: https://pypi.org/
 .. _fd.io: https://fd.io/
 .. _LFN: https://www.linuxfoundation.org/projects/networking/
 .. _PyPI: https://pypi.org/
+.. _directory: https://gerrit.fd.io/r/gitweb?p=csit.git;a=tree;f=PyPI/jumpavg;hb=refs/heads/master
similarity index 73%
rename from resources/tools/presentation/new/jumpavg/setup.py
rename to PyPI/jumpavg/setup.py
index 86a3889..aa56efd 100644 (file)
@@ -14,11 +14,12 @@ with open(path.join(here, "README.rst"), encoding="utf-8") as f:
 
 setup(
     name="jumpavg",
 
 setup(
     name="jumpavg",
-    version="0.1.0",  # This is currently the only place listing the version.
-    description="Library for finding changes in time series by grouping results",
+    version="0.1.2",  # This is currently the only place listing the version.
+    description="Library for finding changes in time series by grouping results.",
     long_description=long_description,
     long_description_content_type="text/x-rst",
     long_description=long_description,
     long_description_content_type="text/x-rst",
-    url="https://github.com/vrpolakatcisco/jumpavg",
+    # TODO: Create a separate webpage for jumpavg library.
+    url="https://gerrit.fd.io/r/gitweb?p=csit.git;a=tree;f=PyPI/jumpavg;hb=refs/heads/master",
     author="Cisco Systems Inc. and/or its affiliates",
     author_email="csit-dev@lists.fd.io",
     classifiers=[
     author="Cisco Systems Inc. and/or its affiliates",
     author_email="csit-dev@lists.fd.io",
     classifiers=[
@@ -26,13 +27,14 @@ setup(
         "Intended Audience :: Science/Research",
         # Pick your license as you wish
         "License :: OSI Approved :: Apache Software License",
         "Intended Audience :: Science/Research",
         # Pick your license as you wish
         "License :: OSI Approved :: Apache Software License",
-        "Natural Language :: English"
+        "Natural Language :: English",
         # TODO: Test which Python versions is the code compatible with.
         "Programming Language :: Python :: 2.7",
         "Topic :: Scientific/Engineering :: Information Analysis"
     ],
     keywords="progression regression anomaly detection",
     packages=find_packages(exclude=[]),
         # TODO: Test which Python versions is the code compatible with.
         "Programming Language :: Python :: 2.7",
         "Topic :: Scientific/Engineering :: Information Analysis"
     ],
     keywords="progression regression anomaly detection",
     packages=find_packages(exclude=[]),
+    # TODO: python_requires="~=2.7"
     install_requires=[],
     # TODO: Include simulator and tests.
     extras_require={
     install_requires=[],
     # TODO: Include simulator and tests.
     extras_require={
@@ -44,7 +46,7 @@ setup(
         ],
     },
     project_urls={
         ],
     },
     project_urls={
-        "Bug Reports": "https://github.com/vrpolakatcisco/jumpavg/issues",
-        "Source": "https://github.com/vrpolakatcisco/jumpavg/",
+        "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",
     },
 )
     },
 )
diff --git a/resources/tools/presentation/new/jumpavg/.gitignore b/resources/tools/presentation/new/jumpavg/.gitignore
deleted file mode 100644 (file)
index bb8ed49..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# general things to ignore
-build/
-dist/
-*.egg-info/
-*.egg
-*.py[cod]
-__pycache__/
-*.so
-*~
index a33848d..b7b3c13 100644 (file)
@@ -1,3 +1,4 @@
+jumpavg==0.1.0
 Sphinx
 sphinx-rtd-theme
 robotframework==2.9.2
 Sphinx
 sphinx-rtd-theme
 robotframework==2.9.2
index a33848d..b7b3c13 100644 (file)
@@ -1,3 +1,4 @@
+jumpavg==0.1.0
 Sphinx
 sphinx-rtd-theme
 robotframework==2.9.2
 Sphinx
 sphinx-rtd-theme
 robotframework==2.9.2