Skip to content

Commit 23f6e4d

Browse files
authored
Rename package to repobee-plug (#10)
1 parent a05f95e commit 23f6e4d

File tree

20 files changed

+138
-138
lines changed

20 files changed

+138
-138
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: python
22
branches:
33
only:
44
- master
5-
- /^v\d+\.\d+\.\d+$/
5+
- "/^v\\d+\\.\\d+\\.\\d+$/"
66
matrix:
77
include:
88
- os: linux
@@ -34,15 +34,15 @@ notifications:
3434
slack:
3535
on_success: change
3636
on_failure: always
37-
secure: Cq4Y2dwkNNE7hIZSEtmvNHI/2TZYzKpAJqbb6QPKG0hilx3PGetbs7fWy+ru6gRVW7A494Yk/4+ZO/9A92Pn0QHbbWtJZuU61pC2zxtkH2VKAzMVFly4gkL7L5Q9B8drAoer1usI4OtlN7eyqegTGAT8NEbhaynsJweEDZbWCWoXdQkl4tX6pYyDX/6HAWkfsQLaLPczLACyKYl812qAt7u6fFD+hcjdVrs/LfM9Cdt1gW3t9cVNm/Lqmla+I5OYjRRgbHm4XgsTrhNR0IoAxbktcxSwemnjTzwTsn7VQ9y4t8NlBRB5LUfw/0ihehKl7O4QS2c1G1uLhKHZZSfU8Di/qGGSvj/QBFvyZPDA8a/fmMBrNIHwy4k46l1ZfdDnX65oDbncHuXcFOVlTx85C5Zpy86tQDVktXf3kDlzsUtLgKtAY5dvLMDAwTvkX5M05DMwC51A+b2wsM1zs14CkeTFjHfsBIhDek91YfUEx6dRmnhg1KXVA+q02DKNoI0D5sNkOcgBnVATQOo29zcRKnyit93LBG3EiQYiIhubtwMkveXlEE3Qd5bUSdVuTMObN2nhm1bmYGrJ68dR+zKbsBZ51fcar6YeecmLCF6epBcZI++3AEH5/gu4qXb7A2pbxtiARJtxliI83d6CwEycPWhpjQ4p5UnByMhvKnKv14w=
37+
secure: tBJhjtY/29jPzwQAO30aT7mdEHfW+eW1CEhMaOqJ2yp+rRVOXazdgEz2+yTkN1FID/dlTcsadQQ7pjG1kswcRNqncqkz4i95zxyyE8lL7NnYW5fV6TeRjPD4ddPVR8mGdQj2fvl4YRQgpLqlucfUantjairv6ztKD7pQILNcU9JRoz87MkI++PA6ZZ4Y5J0lKTSqNBrAY6Lx7KM1R1r87UQcF8LV6JTbVUrUVC+mfeR+EO8RpX5jezjNNktR4H1Eob/8lXFHC3lXJwRd7wwK1mK+Z+5oAI5bgs5wprQyqZ5FddQGabMkr5+FaU5j94zyMlCiyX7RglMGGSYAnC0093EX2qLz/sKbz9fPBuBXTBYtdgOIp5u4DDF6nFZKN7M3NyZ0eZc/UJfgOSuA4N1GsCgU3uRyNit5OHvEUC+fDhve8U8CzOjefbtoYS0JYyM+um4gejkzZFw/RDbyx0J7VswP4IsJT6LEfZeBFVmUKAFbioY6jQK4QGSsYsW+YnjQsY6f/Ui3PszuNRJqm36kTbLrZ/x8JuEr9jbp82vZR1G1Yt6XCmsWDR2BAIHaRxsg4hxziNPEbrbVUy+l0T3oWWmSVmfyYLQHX+i+k2itfaXoXpbAsYDpkukfh8MIL9jlIkJ/wYHZBEO4Zp/t/4a3jcrXfnEhk6cesHP+k4kVb9A=
3838
deploy:
3939
provider: pypi
4040
user: slarse
4141
on:
4242
tags: true
4343
condition: $TRAVIS_OS_NAME = "linux"
4444
password:
45-
secure: ngvAvxQN8RFQJYFi9wNFnYXJqQsqelfCoujkmY0+Vx9FLH9+KCbIj43gPC4wfRHYFW5qZlTdmnMG0vDcGV1zE+DFOEk6GNvf2mX3onUZMcpR0+GbNTAw/MqbJnmIgf2B7eaIBbpraZvFwHAsCi79Nq6/w26bozfV1jyxFCtw/Z0KNdHPxvncAvtVOyjc65mo/+4eDsIvza3c+uzi96O5dWrpbt1klI5bkC4oSZtiF3UJ1wPeaXXAO4TyCNSBze1cP5VnCtz9N44lxrxZBDb56fujT/RKzXpeQjHkmJ1nS6K7D86/sLuV4l9905+1OniBlrhyOu6RCKoIc3xpDmsxWTLpP4bafcJO/1TMAyWofnAn/tumlles0U0CRKwIaMpbSv5lwDDcbVBaJnKe08dH/7R/OKQhXSXMH3psGUOmHuVBnR5hNgarr9MqCZr2gPQtoCwU3And6AnBEH16f1OV+kxCYEhaPH9lToHIRWPJ8sIcTMkouiG0AX6oQOGVYV0F/lqCaJGcZqvqEwglmn42xPCoDM2pM5flsaZ1th6qkXj17sBl7MZLVCj7fiIJBK+rLLuJpZWSBEsBKhjQ2UAcg7G9wYhVcF7dLhQUrgt6DrqnebC+q6Ln80E7NNFXhmxmxTQi5taZ2r/7DzCw/I1T5EGjZyi0T4Innngg1Io/O74=
45+
secure: ibuuOvtIkokpbIQy2Jle5U/lnndzH/DxNAPcuXZktYN4koUTLZkBU34aaG//1mJv1NFhp4me/IQ3DAY+dB6LPb+vTNqCDrkItvGUWEXbhPKgxwX3UgeKl05sK2sgd9ZssmR+aBWz/nojmks05KsvtM6UWCCEJzIFwkWjZYeKJtRevhGwDj7nVrwVQ7DT1wvhb3J1lxduwTpxUzEeWSAMpYrg79pdhXkjk7AHoFpqql2Ylw8OOejSwQebWXYETkBpzqPJ7YqoqISNB9/u+2A+jZ5jiB+d/hHV9Hmmcw4xckOUvO4uPAWsr+eBOSF/aPt+ca6GYfoqPNpimlfcCsr1iCmTI9oB1wuXAqAZ0zO9JvWTo/GeVroga0xqcgsf6vOEotXU+un1WAyZq3+6ZCYErRDeNW6XOQ3unb4qR1NcuozQTNJNfOySu/1YfJkuDUHMXrZJKXqmb33HFnwxH5kOF6WNNcsReFF45HVRx/cuPf0jzvk1/wjDUl9UK6FCAzSsAs/5Fcp3E3BdHmiBkN/Mw2BkUqm5PbUyTg13oVLhbQYCTjWt5M//TR+gaS4xz7jkVTBPr+/l1kniwxVEdzt+uP1vd25KyY+bLZ8h0OsRNTkLUei41kao5Ge5Im4ZSAXUwoR9c7Fh+AtGFe0IyxqsYluZPjha1AQkAhFwQc8kHlA=
4646
distributions: sdist bdist_wheel
47-
repo: slarse/repomate-plug
47+
repo: repobee/repobee-plug
4848
skip_existing: true

.travis/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
55
eval "$(pyenv init -)"
66
pyenv global "$PYTHON"
77
python --version
8-
python -m pytest tests --cov=repomate_plug
8+
python -m pytest tests --cov=repobee_plug
99
else
10-
pytest tests --cov=repomate_plug
10+
pytest tests --cov=repobee_plug
1111
fi

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
[![Build Status](https://travis-ci.com/slarse/repomate-plug.svg?token=1VKcbDz66bMbTdt1ebsN&branch=master)](https://travis-ci.com/slarse/repomate-plug)
2-
[![Code Coverage](https://codecov.io/gh/slarse/repomate-plug/branch/master/graph/badge.svg)](https://codecov.io/gh/slarse/repomate-plug)
3-
[![Documentation Status](https://readthedocs.org/projects/repomate-plug/badge/?version=latest)](http://repomate-plug.readthedocs.io/en/latest/)
4-
[![PyPi Version](https://badge.fury.io/py/repomate-plug.svg)](https://badge.fury.io/py/repomate-plug)
1+
[![Build Status](https://travis-ci.com/repobee/repobee-plug.svg?branch=master)](https://travis-ci.com/repobee/repobee-plug)
2+
[![Code Coverage](https://codecov.io/gh/repobee/repobee-plug/branch/master/graph/badge.svg)](https://codecov.io/gh/repobee/repobee-plug)
3+
[![Documentation Status](https://readthedocs.org/projects/repobee-plug/badge/?version=latest)](http://repobee-plug.readthedocs.io/en/latest/)
4+
[![PyPi Version](https://badge.fury.io/py/repobee-plug.svg)](https://badge.fury.io/py/repobee-plug)
55
![Supported Python Versions](https://img.shields.io/badge/python-3.5%2C%203.6%2C%203.7-blue.svg)
66
![Supported Platforms](https://img.shields.io/badge/platforms-Linux%2C%20macOS-blue.svg)
77
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
88

9-
# Plugin extension for `repomate`
10-
`repomate-plug` is a plugin package that contains all of the parts required to
11-
create plugins for `repomate`. Head over to the
12-
[Docs](http://repomate-plug.readthedocs.io/en/latest/) for more info!
9+
# Plugin extension for [Repobee](https://github.com/repobee/repobee)
10+
`repobee-plug` is a plugin package that contains all of the parts required to
11+
create plugins for Repobee. Head over to the
12+
[Docs](http://repobee-plug.readthedocs.io/en/latest/) for more info!
1313

1414
### License
1515
This software is licensed under the MIT License. See the [LICENSE](LICENSE)

docs/code.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
.. _modref:
22

3-
``repomate_plug`` Module Reference
3+
``repobee_plug`` Module Reference
44
**********************************
55

66
API
77
===
88

9-
.. automodule:: repomate_plug
9+
.. automodule:: repobee_plug
1010
:members:
1111

1212
pluginmeta
1313
==========
1414

15-
.. automodule:: repomate_plug.pluginmeta
15+
.. automodule:: repobee_plug.pluginmeta
1616
:members:
1717

1818

1919
corehooks
2020
=========
2121

22-
.. automodule:: repomate_plug.corehooks
22+
.. automodule:: repobee_plug.corehooks
2323
:members:
2424

2525
exthooks
2626
========
2727

28-
.. automodule:: repomate_plug.exthooks
28+
.. automodule:: repobee_plug.exthooks
2929
:members:
3030

3131
exception
3232
=========
3333

34-
.. automodule:: repomate_plug.exception
34+
.. automodule:: repobee_plug.exception
3535
:members:

docs/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
#
4-
# repomate-plug documentation build configuration file, created by
4+
# repobee-plug documentation build configuration file, created by
55
# sphinx-quickstart on Thu Jun 29 18:11:20 2017.
66
#
77
# This file is execfile()d with the current directory set to its
@@ -59,7 +59,7 @@
5959
master_doc = 'index'
6060

6161
# General information about the project.
62-
project = 'repomate-plug'
62+
project = 'repobee-plug'
6363
copyright = '2018, Simon Larsén'
6464
author = 'Simon Larsén'
6565

@@ -111,7 +111,7 @@
111111
# -- Options for HTMLHelp output ------------------------------------------
112112

113113
# Output file base name for HTML help builder.
114-
htmlhelp_basename = 'repomate_plug_namedoc'
114+
htmlhelp_basename = 'repobee_plug_namedoc'
115115

116116
# -- Options for LaTeX output ---------------------------------------------
117117

@@ -137,7 +137,7 @@
137137
# (source start file, target name, title,
138138
# author, documentclass [howto, manual, or own class]).
139139
latex_documents = [
140-
(master_doc, 'repomate_plug_name.tex',
140+
(master_doc, 'repobee_plug_name.tex',
141141
'\\{cookiecutter.app\\_name\\} Documentation',
142142
'\\{cookiecutter.author\\_name\\}', 'manual'),
143143
]
@@ -146,7 +146,7 @@
146146

147147
# One entry per manual page. List of tuples
148148
# (source start file, name, description, authors, manual section).
149-
man_pages = [(master_doc, 'repomate_plug_name', 'repomate-plug Documentation', [author],
149+
man_pages = [(master_doc, 'repobee_plug_name', 'repobee-plug Documentation', [author],
150150
1)]
151151

152152
# -- Options for Texinfo output -------------------------------------------
@@ -155,8 +155,8 @@
155155
# (source start file, target name, title, author,
156156
# dir menu entry, description, category)
157157
texinfo_documents = [
158-
(master_doc, 'repomate_plug_name', 'repomate-plug Documentation', author,
159-
'repomate_plug_name', 'One line description of project.', 'Miscellaneous'),
158+
(master_doc, 'repobee_plug_name', 'repobee-plug Documentation', author,
159+
'repobee_plug_name', 'One line description of project.', 'Miscellaneous'),
160160
]
161161

162162
# Example configuration for intersphinx: refer to the Python standard library.

docs/external.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
Writing external plugins (recommended and easy!)
22
************************************************
33
Writing an external plugin is really easy using the
4-
repomate-plugin-cookiecutter_ template. First of all, you need to install
5-
cookiecutter_. It's on PyPi and installs just the same as ``repomate`` with
4+
repobee-plugin-cookiecutter_ template. First of all, you need to install
5+
cookiecutter_. It's on PyPi and installs just the same as ``repobee`` with
66
``pip install cookiecutter`` (with whatever flags you like to use). Now,
7-
running ``python3 -m cookiecutter gh:slarse/repomate-plugin-cookiecutter``
7+
running ``python3 -m cookiecutter gh:repobee/repobee-plugin-cookiecutter``
88
will give you some prompts to answer. If you want to create a plugin called
99
``exampleplug``, it looks something like this:
1010

1111
.. code-block:: bash
1212
13-
$ python3 -m cookiecutter gh:slarse/repomate-plugin-cookiecutter
13+
$ python3 -m cookiecutter gh:repobee/repobee-plugin-cookiecutter
1414
author []: Your Name
1515
email []: email@address.com
1616
github_username []: your_github_username
1717
plugin_name []: exampleplug
1818
short_description []: An example plugin!
1919
20-
This will result in a directory called ``repomate-exampleplug``, containing a
20+
This will result in a directory called ``repobee-exampleplug``, containing a
2121
fully functioning (albeit quite useless) external plugin. If you do ``cd
2222
exampleplug`` and then run ``pip install -e .``, you will install the plugin
2323
locally. You can then use it like any of the built-in plugins, as described in
2424
`Using Existing Plugins`_. To actually implement the behavior that you want,
25-
edit the file ``repomate-exampleplug/repomate_exampleplug/exampleplug.py`` to
25+
edit the file ``repobee-exampleplug/repobee_exampleplug/exampleplug.py`` to
2626
implement the hooks you want.
2727

28-
.. _repomate-plugin-cookiecutter: https://github.com/slarse/repomate-plugin-cookiecutter
28+
.. _repobee-plugin-cookiecutter: https://github.com/repobee/repobee-plugin-cookiecutter
2929
.. _cookiecutter: https://github.com/audreyr/cookiecutter-pypackage
30-
.. _Using Existing Plugins: https://repomate.readthedocs.io/en/latest/plugins.html#using-existing-plugins
30+
.. _Using Existing Plugins: https://repobee.readthedocs.io/en/latest/plugins.html#using-existing-plugins

docs/implementing.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ Implementing hooks and writing internal plugins
22
***********************************************
33
Implementing a hook is fairly simple, and works the same way regardless of what
44
type of hook it is (core or extension). If you are working with your own fork
5-
of ``repomate``, all you have to do is write a small module implementing some hooks,
6-
and drop it into the ``repomate.ext`` sub-package (i.e. the in directory
7-
``repomate/ext`` in the ``repomate`` repo).
5+
of ``repobee``, all you have to do is write a small module implementing some hooks,
6+
and drop it into the ``repobee.ext`` sub-package (i.e. the in directory
7+
``repobee/ext`` in the ``repobee`` repo).
88

99
There are two ways to implement hooks: as standalone functions or wrapped in a
1010
class. In the following two sections, we'll implement the
11-
:py:func:`~repomate_plug.exthooks.CloneHook.act_on_cloned_repo` extension hook
11+
:py:func:`~repobee_plug.exthooks.CloneHook.act_on_cloned_repo` extension hook
1212
using both techniques. Let's call the plugin ``exampleplug`` and make sure it
1313
adheres to the plugin conventions.
1414

1515
Hook functions in a plugin class
1616
================================
1717
Wrapping hook implementations in a class inheriting from
18-
:py:class:`~repomate_plug.pluginmeta.Plugin` is the recommended way to write
19-
plugins for ``repomate``. The class does some checks to make sure that all
18+
:py:class:`~repobee_plug.pluginmeta.Plugin` is the recommended way to write
19+
plugins for ``repobee``. The class does some checks to make sure that all
2020
public functions have hook function names, which comes in handy if you are
2121
in the habit of misspelling stuff (aren't we all?). Doing it this way,
2222
``exampleplug.py`` would look like this:
@@ -28,7 +28,7 @@ in the habit of misspelling stuff (aren't we all?). Doing it this way,
2828
import os
2929
from typing import Union
3030
31-
import repomate_plug as plug
31+
import repobee_plug as plug
3232
3333
PLUGIN_NAME = 'exampleplug'
3434
@@ -47,30 +47,30 @@ in the habit of misspelling stuff (aren't we all?). Doing it this way,
4747
return plug.HookResult(
4848
hook=PLUGIN_NAME, status=plug.Status.WARNING, msg="This isn't quite done")
4949
50-
Dropping ``exampleplug.py`` into the ``repomate.ext`` package and running
51-
``repomate -p exampleplug clone [ADDITIONAL ARGS]`` should give some
50+
Dropping ``exampleplug.py`` into the ``repobee.ext`` package and running
51+
``repobee -p exampleplug clone [ADDITIONAL ARGS]`` should give some
5252
not-so-interesting output from the plugin.
5353

5454
The name of the class really doesn't matter, it just needs to inherit from
55-
:py:class:`~repomate_plug.pluginmeta.Plugin`. The name of the module and hook
55+
:py:class:`~repobee_plug.pluginmeta.Plugin`. The name of the module and hook
5656
functions matter, though. The name of the module must be the plugin name, and
5757
the hook functions must have the precise names of the hooks they implement. In
5858
fact, all public methods in a class deriving from
59-
:py:class:`~repomate_plug.pluginmeta.Plugin` must have names of hook functions,
59+
:py:class:`~repobee_plug.pluginmeta.Plugin` must have names of hook functions,
6060
or the class will fail to be created. You can see that the hook returns a
61-
:py:class:`~repomate_plug.util.HookResult`. This is used for reporting the
62-
results in ``repomate``, and is entirely optional (not all hooks support it,
63-
though). Do note that if ``None`` is returned instead, ``repomate`` will not
61+
:py:class:`~repobee_plug.util.HookResult`. This is used for reporting the
62+
results in ``repobee``, and is entirely optional (not all hooks support it,
63+
though). Do note that if ``None`` is returned instead, ``repobee`` will not
6464
report anything for the hook. It is recommended that hooks that can return
6565
``HookResult`` do. For a comprehensive example of an internal plugin
6666
implemented with a class, see the built-in `javac plugin`_.
6767

6868
Standalone hook functions
6969
=========================
7070
Using standalone hook functions is recommended only if you don't want the
71-
safety net provided by the :py:class:`~repomate_plug.pluginmeta.Plugin`
71+
safety net provided by the :py:class:`~repobee_plug.pluginmeta.Plugin`
7272
metaclass. It is fairly straightforward: simply mark a function with the
73-
:py:const:`repomate_plug.repomate_hook` decorator. With this approach,
73+
:py:const:`repobee_plug.repobee_hook` decorator. With this approach,
7474
``exampleplug.py`` would look like this:
7575

7676
.. code-block:: python
@@ -80,11 +80,11 @@ metaclass. It is fairly straightforward: simply mark a function with the
8080
import os
8181
from typing import Union
8282
83-
import repomate_plug as plug
83+
import repobee_plug as plug
8484
8585
PLUGIN_NAME = 'exampleplug'
8686
87-
@plug.repomate_hook
87+
@plug.repobee_hook
8888
def act_on_cloned_repo(path: Union[str, pathlib.Path]) -> plug.HookResult:
8989
"""Do something with a cloned repo.
9090
@@ -96,12 +96,12 @@ metaclass. It is fairly straightforward: simply mark a function with the
9696
return plug.HookResult(
9797
hook=PLUGIN_NAME, status=plug.Status.WARNING, msg="This isn't quite done")
9898
99-
Again, dropping ``exampleplug.py`` into the ``repomate.ext`` package and running
100-
``repomate -p exampleplug clone [ADDITIONAL ARGS]`` should give some
99+
Again, dropping ``exampleplug.py`` into the ``repobee.ext`` package and running
100+
``repobee -p exampleplug clone [ADDITIONAL ARGS]`` should give some
101101
not-so-interesting output from the plugin. For a more practical example of a
102102
plugin implemented using only a hook function, see the built-in `pylint
103103
plugin`_.
104104

105-
.. _repomate-junit4: https://github.com/slarse/repomate-junit4
106-
.. _javac plugin: https://github.com/slarse/repomate/blob/master/repomate/ext/javac.py
107-
.. _pylint plugin: https://github.com/slarse/repomate/blob/master/repomate/ext/pylint.py
105+
.. _repobee-junit4: https://github.com/repobee/repobee-junit4
106+
.. _javac plugin: https://github.com/repobee/repobee/blob/master/repobee/ext/javac.py
107+
.. _pylint plugin: https://github.com/repobee/repobee/blob/master/repobee/ext/pylint.py

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
.. repomate documentation master file, created by
1+
.. repobee documentation master file, created by
22
sphinx-quickstart on Thu Jun 29 18:11:20 2017.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to repomate-plug's documentation!
6+
Welcome to repobee-plug's documentation!
77
==================================================
88

99
.. toctree::

0 commit comments

Comments
 (0)