From feeb386efe01fb3dd4e70e216337c8a4b476cb9a Mon Sep 17 00:00:00 2001 From: Kapileshwar Singh Date: Wed, 2 Sep 2015 18:01:40 +0100 Subject: setup: Add setup.py Signed-off-by: Kapileshwar Singh --- setup.py | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 setup.py (limited to 'setup.py') diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..9962e73 --- /dev/null +++ b/setup.py @@ -0,0 +1,58 @@ +#!/usr/bin/env python +# Copyright 2015-2015 ARM Limited +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +from setuptools import setup, find_packages + + +VERSION = "1.0.0" + +LONG_DESCRIPTION = """Behavioural Analysis involves the expressing the general +expectation of the state of the system while targeting a single or set of heuristics. +This is particularly helpful when there are large number of factors that can change +the behaviour of the system and testing all permutations of these input parameters +is impossible. In such a scenario an assertion of the final expectation can be +useful in managing performance and regression. + +The Behavioural Analysis and Regression Toolkit is based on TRAPpy. The primary goal is +to assert behaviours using the FTrace output from the kernel +""" + +REQUIRES = [ + "TRAPpy==1.0.0", +] + +setup(name='BART', + version=VERSION, + license="Apache v2", + author="ARM-BART", + author_email="bart@arm.com", + description="Behavioural Analysis and Regression Toolkit", + long_description=LONG_DESCRIPTION, + url="http://arm-software.github.io/bart", + packages=find_packages(), + include_package_data=True, + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Environment :: Web Environment", + "Environment :: Console", + "License :: OSI Approved :: Apache Software License", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 2.7", + # As we depend on trace data from the Linux Kernel/FTrace + "Topic :: System :: Operating System Kernels :: Linux", + "Topic :: Scientific/Engineering :: Visualization" + ], + install_requires=REQUIRES + ) -- cgit v1.2.3 From 0fa287ecda476020bf469ec9057c7c453cd52cf5 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Mon, 5 Oct 2015 18:43:43 +0100 Subject: bart 1.0.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 9962e73..3ded12c 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ from setuptools import setup, find_packages -VERSION = "1.0.0" +VERSION = "1.0.1" LONG_DESCRIPTION = """Behavioural Analysis involves the expressing the general expectation of the state of the system while targeting a single or set of heuristics. -- cgit v1.2.3 From a2d51ed8ad771801bf53969954948fe3643ed255 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Mon, 5 Oct 2015 18:46:14 +0100 Subject: setup: rename to bart-py for pypi Bart is already taken by some software to model the light curves of exoplanet transits. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 3ded12c..97ea81f 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ REQUIRES = [ "TRAPpy==1.0.0", ] -setup(name='BART', +setup(name='bart-py', version=VERSION, license="Apache v2", author="ARM-BART", -- cgit v1.2.3 From f8ba14c9fa7f650654461a41a13b27eb16c2e969 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Mon, 5 Oct 2015 18:54:24 +0100 Subject: setup: don't require a specific version of trappy This will break as soon as we update trappy. Let's not require a specific version until we know there are incompatibilities. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 97ea81f..523eac6 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ to assert behaviours using the FTrace output from the kernel """ REQUIRES = [ - "TRAPpy==1.0.0", + "TRAPpy", ] setup(name='bart-py', -- cgit v1.2.3 From 6427c9e6ab7f4f588550c7a8befdb600367cc636 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Thu, 22 Oct 2015 14:20:32 +0100 Subject: setup: Depend on trappy >= 2.0 trappy has changed the API for EventPlot in f4eefc02239a ("plotter: EventPlot: Allow specification of lane names") which will be released in trappy 2.0. This is fixed in 5b1275f59fec ("sched: Update usage of EventPlot API") in bart. Make sure bart the next version of bart depends on the appropriate version of trappy. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 523eac6..fc7950d 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ to assert behaviours using the FTrace output from the kernel """ REQUIRES = [ - "TRAPpy", + "TRAPpy>=2.0", ] setup(name='bart-py', -- cgit v1.2.3 From 2b2cc6dfef79caa242416d1037811235020d0570 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Wed, 4 Nov 2015 11:03:41 +0000 Subject: bart 1.1.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index fc7950d..0c6de39 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ from setuptools import setup, find_packages -VERSION = "1.0.1" +VERSION = "1.1.0" LONG_DESCRIPTION = """Behavioural Analysis involves the expressing the general expectation of the state of the system while targeting a single or set of heuristics. -- cgit v1.2.3 From b03236f09aafd38f635650420eadffccbb8eb819 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Tue, 10 Nov 2015 14:40:30 +0000 Subject: setup: Depend on trappy >= 3.0 trappy has changed the API of stats.SchedConf in 0fce01a7dad8 ("stats: SchedConf: Fix for period calculation"), the return value of period() is changed. This is fixed in bart in 0e83faeeee8a ("sched: Use Median for calculation of the period of a task"). --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 0c6de39..f0eac2f 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ to assert behaviours using the FTrace output from the kernel """ REQUIRES = [ - "TRAPpy>=2.0", + "TRAPpy>=3.0", ] setup(name='bart-py', -- cgit v1.2.3 From d1f1a8e6e9236511a7194b18e4a114d1a124e6c1 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Thu, 19 Nov 2015 10:20:34 +0000 Subject: bart 1.2.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index f0eac2f..7068f3e 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ from setuptools import setup, find_packages -VERSION = "1.1.0" +VERSION = "1.2.0" LONG_DESCRIPTION = """Behavioural Analysis involves the expressing the general expectation of the state of the system while targeting a single or set of heuristics. -- cgit v1.2.3 From d91f4894d64d14e832e3284bf06f771e71fa86f3 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Tue, 1 Dec 2015 14:55:02 +0000 Subject: setup: release bart 1.3.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 7068f3e..87b0b21 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ from setuptools import setup, find_packages -VERSION = "1.2.0" +VERSION = "1.3.0" LONG_DESCRIPTION = """Behavioural Analysis involves the expressing the general expectation of the state of the system while targeting a single or set of heuristics. -- cgit v1.2.3 From c8b7cb8b69d7563b06e72a1abe9b91ee8e51711a Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Tue, 5 Jan 2016 16:13:08 +0000 Subject: bart: update copyright to 2016 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 87b0b21..4534060 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2015-2015 ARM Limited +# Copyright 2015-2016 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. -- cgit v1.2.3 From a5c1fb04cfdfc963ce6c26e2102d3e4793481d24 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Tue, 5 Jan 2016 16:13:42 +0000 Subject: setup: release bart 1.4.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 4534060..26957c0 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ from setuptools import setup, find_packages -VERSION = "1.3.0" +VERSION = "1.4.0" LONG_DESCRIPTION = """Behavioural Analysis involves the expressing the general expectation of the state of the system while targeting a single or set of heuristics. -- cgit v1.2.3 From 290caafb3675103f8ee91b71245a7aba0f2b0c2c Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Wed, 10 Feb 2016 10:21:30 +0000 Subject: setup: release bart 1.5.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 26957c0..69c3876 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ from setuptools import setup, find_packages -VERSION = "1.4.0" +VERSION = "1.5.0" LONG_DESCRIPTION = """Behavioural Analysis involves the expressing the general expectation of the state of the system while targeting a single or set of heuristics. -- cgit v1.2.3 From adb8fc25ebaa2a3a46719ad5670613e75f67fa31 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Thu, 7 Jul 2016 18:15:10 +0100 Subject: bart: set the version using an explicit file There is no pythonic way of specifying the version of a project, [0] describes 7 (seven!) ways of doing it. We were currently using method 5, setting the value in setup.py and using pkg_resources to get it from the installed version. This works ok if you have installed the package using python setup.py or pip, but fails if you are importing bart from a checkout, which is what lisa do. Even worse, if you import it from lisa but have an old bart version installed, bart.__version__ will tell you the version of the installed bart, not the one you have imported and are using. Switch to use a version.py file that's distributed with the project (method 3), as trappy did in ARM-software/trappy@712e6f93b308 . Fixes #57 [0] https://packaging.python.org/en/latest/single_source_version/ --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 69c3876..c73c225 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ from setuptools import setup, find_packages -VERSION = "1.5.0" +execfile("bart/version.py") LONG_DESCRIPTION = """Behavioural Analysis involves the expressing the general expectation of the state of the system while targeting a single or set of heuristics. @@ -34,7 +34,7 @@ REQUIRES = [ ] setup(name='bart-py', - version=VERSION, + version=__version__, license="Apache v2", author="ARM-BART", author_email="bart@arm.com", -- cgit v1.2.3