-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Rename openedx_events to openedx_hooks
- Loading branch information
Showing
21 changed files
with
62 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[run] | ||
branch = True | ||
data_file = .coverage | ||
source=openedx_events | ||
source=openedx_hooks | ||
omit = | ||
tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
openedx-events | ||
openedx-hooks | ||
============================= | ||
|
||
|pypi-badge| |ci-badge| |codecov-badge| |doc-badge| |pyversions-badge| | ||
|pypi-badge| |ci-badge| |codecov-badge| |pyversions-badge| | ||
|license-badge| | ||
|
||
The ``README.rst`` file should start with a brief description of the repository, | ||
which sets it in the context of other repositories under the ``edx`` | ||
organization. It should make clear where this fits in to the overall edX | ||
codebase. | ||
openedx-hooks is a python library that contains the common definitions (django signals) and utilities for the Open edX hooks framework. | ||
|
||
What is this project? | ||
|
||
Overview (please modify) | ||
------------------------ | ||
|
||
The ``README.rst`` file should then provide an overview of the code in this | ||
repository, including the main components and useful entry points for starting | ||
to understand the code in more detail. | ||
|
||
Documentation | ||
------------- | ||
|
@@ -31,19 +20,19 @@ One Time Setup | |
.. code-block:: | ||
# Clone the repository | ||
git clone [email protected]:edx/openedx-events.git | ||
cd openedx-events | ||
git clone [email protected]:edx/openedx-hooks.git | ||
cd openedx-hooks | ||
# Set up a virtualenv using virtualenvwrapper with the same name as the repo and activate it | ||
mkvirtualenv -p python3.8 openedx-events | ||
mkvirtualenv -p python3.8 openedx-hooks | ||
Every time you develop something in this repo | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. code-block:: | ||
# Activate the virtualenv | ||
workon openedx-events | ||
workon openedx-hooks | ||
# Grab the latest code | ||
git checkout master | ||
|
@@ -113,26 +102,26 @@ For more information about these options, see the `Getting Help`_ page. | |
.. _community Slack workspace: https://openedx.slack.com/ | ||
.. _Getting Help: https://openedx.org/getting-help | ||
|
||
.. |pypi-badge| image:: https://img.shields.io/pypi/v/openedx-events.svg | ||
:target: https://pypi.python.org/pypi/openedx-events/ | ||
.. |pypi-badge| image:: https://img.shields.io/pypi/v/openedx-hooks.svg | ||
:target: https://pypi.python.org/pypi/openedx-hooks/ | ||
:alt: PyPI | ||
|
||
.. |ci-badge| image:: https://github.com/edx/openedx-events/workflows/Python%20CI/badge.svg?branch=master | ||
:target: https://github.com/edx/openedx-events/actions | ||
.. |ci-badge| image:: https://github.com/edunext/openedx-hooks/workflows/Python%20CI/badge.svg?branch=main | ||
:target: https://github.com/edunext/openedx-hooks/actions | ||
:alt: CI | ||
|
||
.. |codecov-badge| image:: https://codecov.io/github/edx/openedx-events/coverage.svg?branch=master | ||
:target: https://codecov.io/github/edx/openedx-events?branch=master | ||
.. |codecov-badge| image:: https://codecov.io/github/edunext/openedx-hooks/coverage.svg?branch=master | ||
:target: https://codecov.io/github/edunext/openedx-hooks?branch=main | ||
:alt: Codecov | ||
|
||
.. |doc-badge| image:: https://readthedocs.org/projects/openedx-events/badge/?version=latest | ||
:target: https://openedx-events.readthedocs.io/en/latest/ | ||
.. |doc-badge| image:: https://readthedocs.org/projects/openedx-hooks/badge/?version=latest | ||
:target: https://openedx-hooks.readthedocs.io/en/latest/ | ||
:alt: Documentation | ||
|
||
.. |pyversions-badge| image:: https://img.shields.io/pypi/pyversions/openedx-events.svg | ||
:target: https://pypi.python.org/pypi/openedx-events/ | ||
.. |pyversions-badge| image:: https://img.shields.io/pypi/pyversions/openedx-hooks.svg | ||
:target: https://pypi.python.org/pypi/openedx-hooks/ | ||
:alt: Supported Python versions | ||
|
||
.. |license-badge| image:: https://img.shields.io/github/license/edx/openedx-events.svg | ||
:target: https://github.com/edx/openedx-events/blob/master/LICENSE.txt | ||
.. |license-badge| image:: https://img.shields.io/github/license/edx/openedx-hooks.svg | ||
:target: https://github.com/edunext/openedx-hooks/blob/main/LICENSE.txt | ||
:alt: License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
""" | ||
Hooks library for the openedx platform. | ||
""" | ||
|
||
__version__ = "0.1.0" |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
openedx_events/signals/auth/v1/__init__.py → openedx_hooks/signals/auth/v1/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
..._events/signals/enrollment/v1/__init__.py → ...x_hooks/signals/enrollment/v1/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env python | ||
""" | ||
Package metadata for openedx_events. | ||
Package metadata for openedx_hooks. | ||
""" | ||
import os | ||
import re | ||
|
@@ -53,7 +53,7 @@ def is_requirement(line): | |
return line and not line.startswith(('-r', '#', '-e', 'git+', '-c')) | ||
|
||
|
||
VERSION = get_version('openedx_events', '__init__.py') | ||
VERSION = get_version('openedx_hooks', '__init__.py') | ||
|
||
if sys.argv[-1] == 'tag': | ||
print("Tagging the version on github:") | ||
|
@@ -65,15 +65,15 @@ def is_requirement(line): | |
CHANGELOG = open(os.path.join(os.path.dirname(__file__), 'CHANGELOG.rst')).read() | ||
|
||
setup( | ||
name='openedx-events', | ||
name='openedx-hooks', | ||
version=VERSION, | ||
description="""What is this project?""", | ||
description="""Open edX hooks definitions and utilities.""", | ||
long_description=README + '\n\n' + CHANGELOG, | ||
author='edX', | ||
author_email='[email protected]', | ||
url='https://github.com/edx/openedx-events', | ||
url='https://github.com/edx/openedx-hooks', | ||
packages=[ | ||
'openedx_events', | ||
'openedx_hooks', | ||
], | ||
include_package_data=True, | ||
install_requires=load_requirements('requirements/base.in'), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters