Skip to content

Commit 4b0b7e2

Browse files
committed
microbench_plot -> scope_plot throughout
1 parent 93930a6 commit 4b0b7e2

27 files changed

+76
-72
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ current_version = 0.1.1
33
commit = True
44
tag = True
55

6-
[bumpversion:file:microbench_plot/__init__.py]
6+
[bumpversion:file:scope_plot/__init__.py]
77

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
22
include =
3-
microbench_plot/*
3+
scope_plot/*
44

55
[report]
66
exclude_lines =

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This will significantly speed up the amount of time it
2121
takes to debug and resolve the issue for our contributors.
2222

2323
```python
24-
import microbench_plot
24+
import scope_plot
2525

2626
# Please show the smallest possible example where
2727
# the issue occurs. This will drastically decrease

README.rst

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
MicrobenchPlot
22
=======
33

4-
.. image:: https://img.shields.io/travis/rai-project/microbench_plot/master.svg
5-
:target: https://travis-ci.org/rai-project/microbench_plot
4+
.. image:: https://img.shields.io/travis/rai-project/scope_plot/master.svg
5+
:target: https://travis-ci.org/rai-project/scope_plot
66
:alt: Linux and MacOS Build Status
7-
.. image:: https://img.shields.io/appveyor/ci/rai-project/microbench_plot/master.svg
8-
:target: https://ci.appveyor.com/project/rai-project/microbench_plot
7+
.. image:: https://img.shields.io/appveyor/ci/rai-project/scope_plot/master.svg
8+
:target: https://ci.appveyor.com/project/rai-project/scope_plot
99
:alt: Windows Build Status
10-
.. image:: https://img.shields.io/codecov/c/github/rai-project/microbench_plot/master.svg
11-
:target: https://codecov.io/gh/rai-project/microbench_plot
10+
.. image:: https://img.shields.io/codecov/c/github/rai-project/scope_plot/master.svg
11+
:target: https://codecov.io/gh/rai-project/scope_plot
1212
:alt: Test Suite Coverage
13-
.. image:: https://img.shields.io/codeclimate/github/rai-project/microbench_plot.svg
14-
:target: https://codeclimate.com/github/rai-project/microbench_plot
13+
.. image:: https://img.shields.io/codeclimate/github/rai-project/scope_plot.svg
14+
:target: https://codeclimate.com/github/rai-project/scope_plot
1515
:alt: Code Health
16-
.. image:: https://readthedocs.org/projects/microbench_plot/badge/?version=latest
17-
:target: http://microbench_plot.readthedocs.io
16+
.. image:: https://readthedocs.org/projects/scope_plot/badge/?version=latest
17+
:target: http://scope_plot.readthedocs.io
1818
:alt: Documentation Build Status
19-
.. image:: https://pyup.io/repos/github/rai-project/microbench_plot/shield.svg
20-
:target: https://pyup.io/repos/github/rai-project/microbench_plot
19+
.. image:: https://pyup.io/repos/github/rai-project/scope_plot/shield.svg
20+
:target: https://pyup.io/repos/github/rai-project/scope_plot
2121
:alt: Dependency Versions
22-
.. image:: https://img.shields.io/pypi/v/microbench_plot.svg
23-
:target: https://pypi.python.org/pypi/microbench_plot
22+
.. image:: https://img.shields.io/pypi/v/scope_plot.svg
23+
:target: https://pypi.python.org/pypi/scope_plot
2424
:alt: PyPI Version
2525
.. image:: https://img.shields.io/badge/say-thanks-ff69b4.svg
2626
:target: https://saythanks.io/to/abduld
@@ -33,11 +33,11 @@ Getting Started with MicrobenchPlot
3333

3434
MicrobenchPlot is available on PyPI can be installed with `pip <https://pip.pypa.io>`_.::
3535

36-
$ python -m pip install microbench_plot
36+
$ python -m pip install scope_plot
3737

38-
To install the latest development version from `Github <https://github.com/rai-project/microbench_plot>`_::
38+
To install the latest development version from `Github <https://github.com/rai-project/scope_plot>`_::
3939

40-
$ python -m pip install git+git://github.com/rai-project/microbench_plot.git
40+
$ python -m pip install git+git://github.com/rai-project/scope_plot.git
4141

4242

4343
If your current Python installation doesn't have pip available, try `get-pip.py <bootstrap.pypa.io>`_
@@ -47,28 +47,28 @@ Here's a very simple example:
4747

4848
.. code-block:: python
4949
50-
import microbench_plot
50+
import scope_plot
5151
# Fill this section in with the common use-case.
5252
5353
API Reference
5454
-------------
5555

56-
The `API Reference on readthedocs.io <http://microbench_plot.readthedocs.io>`_ provides API-level documentation.
56+
The `API Reference on readthedocs.io <http://scope_plot.readthedocs.io>`_ provides API-level documentation.
5757

5858
Support / Report Issues
5959
-----------------------
6060

6161
All support requests and issue reports should be
62-
`filed on Github as an issue <https://github.com/rai-project/microbench_plot/issues>`_.
62+
`filed on Github as an issue <https://github.com/rai-project/scope_plot/issues>`_.
6363
Make sure to follow the template so your request may be as handled as quickly as possible.
6464
Please respect contributors by not using personal contacts for support requests.
6565

6666
Contributing
6767
------------
6868

69-
We happily welcome contributions, please see `our guide for Contributors <http://microbench_plot.readthedocs.io/en/latest/contributing.html>`_ for the best places to start and help.
69+
We happily welcome contributions, please see `our guide for Contributors <http://scope_plot.readthedocs.io/en/latest/contributing.html>`_ for the best places to start and help.
7070

7171
License
7272
-------
7373

74-
microbench_plot is made available under the MIT License. For more details, see `LICENSE.txt <https://github.com/rai-project/microbench_plot/blob/master/LICENSE.txt>`_.
74+
scope_plot is made available under the MIT License. For more details, see `LICENSE.txt <https://github.com/rai-project/scope_plot/blob/master/LICENSE.txt>`_.

RELEASE.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Steps to Release MicrobenchPlot
22
=========================
33

4-
These are the steps to take to create a release of the module ``microbench_plot``:
4+
These are the steps to take to create a release of the module ``scope_plot``:
55

66
1. Switch to the release branch
77

@@ -12,7 +12,7 @@ These are the steps to take to create a release of the module ``microbench_plot`
1212
1313
2. Update the following files with the correct version.
1414

15-
- ``microbench_plot/__init__.py``
15+
- ``scope_plot/__init__.py``
1616
- ``CHANGELOG.rst``
1717

1818
3. Add and commit the changes.

docs/source/about.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Abdul Dakkak <[email protected]>
99
License
1010
-------
1111

12-
Copied from `LICENSE.txt <https://github.com/rai-project/microbench_plot/blob/master/LICENSE.txt>`_:
12+
Copied from `LICENSE.txt <https://github.com/rai-project/scope_plot/blob/master/LICENSE.txt>`_:
1313

1414
.. include:: ../../LICENSE.txt
1515

docs/source/conf.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import sys
1919
sys.path.insert(0, os.path.abspath('../..'))
2020

21-
import microbench_plot
21+
import scope_plot
2222

2323
# -- General configuration ------------------------------------------------
2424

@@ -51,11 +51,11 @@
5151
master_doc = 'index'
5252

5353
# Releases changelog extension
54-
releases_release_uri = "https://github.com/rai-project/microbench_plot/tree/%s"
55-
releases_issue_uri = "https://github.com/rai-project/microbench_plot/issues/%s"
54+
releases_release_uri = "https://github.com/rai-project/scope_plot/tree/%s"
55+
releases_issue_uri = "https://github.com/rai-project/scope_plot/issues/%s"
5656

5757
# General information about the project.
58-
project = 'MicrobenchPlot'
58+
project = 'ScopePlot'
5959
copyright = '%d Abdul Dakkak' % year
6060
author = 'Abdul Dakkak'
6161

@@ -64,7 +64,7 @@
6464
# built documents.
6565
#
6666
# The short X.Y version.
67-
version = microbench_plot.__version__
67+
version = scope_plot.__version__
6868
# The full version, including alpha/beta/rc tags.
6969
release = version
7070

@@ -98,7 +98,7 @@
9898
html_theme_options = {
9999
'description': 'plot microbenchmarks',
100100
'github_user': 'abduld',
101-
'github_repo': 'microbench_plot',
101+
'github_repo': 'scope_plot',
102102
'github_button': False,
103103
'github_banner': True,
104104
'font_family': "'Roboto', Georgia, sans",
@@ -131,6 +131,7 @@ def autodoc_skip_member(app, what, name, obj, skip, options):
131131
def setup(app):
132132
app.connect('autodoc-skip-member', autodoc_skip_member)
133133

134+
134135
# Add any paths that contain custom static files (such as style sheets) here,
135136
# relative to this directory. They are copied after the builtin static files,
136137
# so a file named "default.css" will overwrite the builtin "default.css".

docs/source/contributing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Thank you for considering contributing. ❤️
77
Adding Features / Fixing Bugs
88
-----------------------------
99

10-
#. `Check for open issues <https://github.com/rai-project/microbench_plot/issues>`_ or open
10+
#. `Check for open issues <https://github.com/rai-project/scope_plot/issues>`_ or open
1111
a new issue to start a discussion around a new feature or a bug. Issues labeled with
1212
*Contributor Friendly* are for issues that are great for new contributors that are
1313
new to the project or not as familiar with the codebase.
1414

15-
#. Fork the `MicrobenchPlot repository on Github <https://github.com/rai-project/microbench_plot>`_
15+
#. Fork the `MicrobenchPlot repository on Github <https://github.com/rai-project/scope_plot>`_
1616
to start making changes.
1717

1818
#. Write a test which shows that the bug was fixed or that the feature works as expected.

docs/source/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Getting Started with MicrobenchPlot
1818

1919
MicrobenchPlot is available on PyPI can be installed with `pip <https://pip.pypa.io>`_.::
2020

21-
$ python -m pip install microbench_plot
21+
$ python -m pip install scope_plot
2222

23-
To install the latest development version from `Github <https://github.com/rai-project/microbench_plot>`_::
23+
To install the latest development version from `Github <https://github.com/rai-project/scope_plot>`_::
2424

25-
$ python -m pip install git+git://github.com/rai-project/microbench_plot.git
25+
$ python -m pip install git+git://github.com/rai-project/scope_plot.git
2626

2727

2828
If your current Python installation doesn't have pip available, try `get-pip.py <bootstrap.pypa.io>`_
@@ -32,7 +32,7 @@ Here's a very simple example:
3232

3333
.. code-block:: python
3434
35-
import microbench_plot
35+
import scope_plot
3636
# Fill this section in with the common use-case.
3737
3838
API Reference
@@ -44,7 +44,7 @@ Support / Report Issues
4444
-----------------------
4545

4646
All support requests and issue reports should be
47-
`filed on Github as an issue <https://github.com/rai-project/microbench_plot/issues>`_.
47+
`filed on Github as an issue <https://github.com/rai-project/scope_plot/issues>`_.
4848
Make sure to follow the template so your request may be as handled as quickly as possible.
4949
Please respect contributors by not using personal contacts for support requests.
5050

@@ -56,4 +56,4 @@ We happily welcome contributions, please see :doc:`contributing` for details.
5656
License
5757
-------
5858

59-
microbench_plot is made available under the MIT License. For more details, see :doc:`about`.
59+
scope_plot is made available under the MIT License. For more details, see :doc:`about`.

docs/source/makefiles.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Here is an exmaple makefile for a directory organized in this way::
1717
└── ac922_prefetch_cpu-gpu.yml
1818

1919
The `data` directory contains microbench data files.
20-
The `deps` directory will contain dependence files generated by microbench_plot
20+
The `deps` directory will contain dependence files generated by scope_plot
2121
The `spec` directory contains specs to describe each generated figure
2222
The `generated` directory will contain one generated figure for each spec files
2323

@@ -56,11 +56,11 @@ The `generated` directory will contain one generated figure for each spec files
5656
5757
# This is the rule for creating the dependency files
5858
deps/%.d: specs/%.yml
59-
python -m microbench_plot $(MICROBENCH_ARGS) -s $^ -t '$(patsubst specs/%.yml,generated/%.pdf,$^)' -o $@ --deps
59+
python -m scope_plot $(MICROBENCH_ARGS) -s $^ -t '$(patsubst specs/%.yml,generated/%.pdf,$^)' -o $@ --deps
6060
6161
# This is the rule for creating the figure
6262
generated/%.pdf : specs/%.yml deps/%.d
63-
python -m microbench_plot $(MICROBENCH_ARGS) -s $< -o $@
63+
python -m scope_plot $(MICROBENCH_ARGS) -s $< -o $@
6464
6565
clean:
6666
rm -f $(TARGETS) $(DEPFILES)
File renamed without changes.

microbench_plot/__main__.py renamed to scope_plot/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
""" This is the entry point for if your module is
2-
executed like this: ``python -m microbench_plot``. """
2+
executed like this: ``python -m scope_plot``. """
33
from .cli import main
44

55
if __name__ == '__main__':
File renamed without changes.

microbench_plot/cli.py renamed to scope_plot/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import sys
55
import click
66

7-
from microbench_plot import specification
8-
from microbench_plot import figure
9-
from microbench_plot.benchmark import GoogleBenchmark
10-
from microbench_plot import utils
7+
from scope_plot import specification
8+
from scope_plot import figure
9+
from scope_plot.benchmark import GoogleBenchmark
10+
from scope_plot import utils
1111

1212
""" If the module has a command line interface then this
1313
file should be the entry point for that interface. """
File renamed without changes.
File renamed without changes.

microbench_plot/figure.py renamed to scope_plot/figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import matplotlib.pyplot as plt
88
import yaml
99

10-
from microbench_plot import utils
11-
from microbench_plot.error import UnknownGenerator
10+
from scope_plot import utils
11+
from scope_plot.error import UnknownGenerator
1212

1313
pp = pprint.PrettyPrinter(indent=4)
1414
plt.switch_backend('agg')

microbench_plot/specification.py renamed to scope_plot/specification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import yaml
22
import os.path
33

4-
from microbench_plot import utils
5-
from microbench_plot.error import NoInputFilesError
4+
from scope_plot import utils
5+
from scope_plot.error import NoInputFilesError
66

77

88
def load(yaml_path):
File renamed without changes.

setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
import re
33
from setuptools import setup, find_packages
44

5-
base_package = 'microbench_plot'
5+
base_package = 'scope_plot'
66

77
# Get the version (borrowed from SQLAlchemy)
88
base_path = os.path.dirname(__file__)
9-
with open(os.path.join(base_path, 'microbench_plot', '__init__.py')) as f:
9+
with open(os.path.join(base_path, 'scope_plot', '__init__.py')) as f:
1010
module_content = f.read()
1111
VERSION = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(module_content).group(1)
1212
LICENSE = re.compile(r'.*__license__ = \'(.*?)\'', re.S).match(module_content).group(1)
@@ -29,23 +29,23 @@
2929

3030
if __name__ == '__main__':
3131
setup(
32-
name='microbench_plot',
33-
description='plot microbenchmarks',
32+
name='scope_plot',
33+
description='Plot Google Benchmark results',
3434
long_description='\n\n'.join([readme, changes]),
3535
license=LICENSE,
36-
url='http://microbench_plot.readthedocs.io',
36+
url='http://scope_plot.readthedocs.io',
3737
version=VERSION,
3838
author='Abdul Dakkak',
3939
author_email='[email protected]',
4040
maintainer='Abdul Dakkak',
4141
maintainer_email='[email protected]',
4242
entry_points={
4343
'console_scripts': [
44-
'microbench_plot = microbench_plot.cli:main'
44+
'scope_plot = scope_plot.cli:main'
4545
]
4646
},
4747
install_requires=requirements,
48-
keywords=['microbench_plot'],
48+
keywords=['scope_plot'],
4949
packages=packages,
5050
zip_safe=False,
5151
classifiers=['Intended Audience :: Developers',

tests/test_apply_search_dirs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
2-
from microbench_plot import specification
3-
from microbench_plot import figure
2+
from scope_plot import specification
3+
from scope_plot import figure
44

55
FIXTURES_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "__fixtures")
66

tests/test_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
import os
22
import pytest
33

4-
from microbench_plot import cli
4+
from scope_plot import cli
55

66
pytest_plugins = ["pytester"]
77

88

99
@pytest.fixture
1010
def run(testdir):
1111
def do_run(*args):
12-
args = ["microbench_plot"] + list(args)
12+
args = ["scope_plot"] + list(args)
1313
return testdir._run(*args)
1414
return do_run
1515

1616

17-
def test_microbench_plot_help(tmpdir, run):
17+
def test_scope_plot_help(tmpdir, run):
1818
result = run("--help")
1919
assert result.ret == 0
2020

21-
# def test_microbench_plot_version(tmpdir, run):
21+
# def test_scope_plot_version(tmpdir, run):
2222
# input = tmpdir.join("example.txt")
2323
# content = unicode("\xc3\xa4\xc3\xb6", "latin1")
2424
# with input.open("wb") as f:

0 commit comments

Comments
 (0)