Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 06e9fcd

Browse files
committed
service: activitypub-webhook-relay: Initial commit
Related: #1315 Signed-off-by: John Andersen <[email protected]>
1 parent 884bf8f commit 06e9fcd

File tree

10 files changed

+147
-0
lines changed

10 files changed

+147
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
source =
3+
activitypub_webhook_relay
4+
tests
5+
branch = True
6+
7+
[report]
8+
exclude_lines =
9+
no cov
10+
no qa
11+
noqa
12+
pragma: no cover
13+
if __name__ == .__main__.:
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*.log
2+
*.pyc
3+
.cache/
4+
.coverage
5+
.idea/
6+
.vscode/
7+
*.egg-info/
8+
build/
9+
dist/
10+
docs/build/
11+
venv/
12+
wheelhouse/
13+
*.egss
14+
.mypy_cache/
15+
*.swp
16+
.venv/
17+
.eggs/
18+
*.modeldir
19+
*.db
20+
htmlcov/
21+
built_html_docs/
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) 2023 Intel
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include README.rst
2+
include LICENSE
3+
recursive-include activitypub_webhook_relay *
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ActivityPub Webhook Relay
2+
=========================
3+
4+
Relays webhooks into the federated event space (ActivityPub).
5+
6+
Install from pip
7+
8+
.. code-block:: console
9+
10+
$ pip install activitypub-webhook-relay
11+
12+
References
13+
**********
14+
15+
- https://github.com/intel/dffml/issues/1315

service/activitypub-webhook-relay/activitypub_webhook_relay/__init__.py

Whitespace-only changes.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
2+
build-backend = "setuptools.build_meta"
3+
4+
[tool.setuptools_scm]
5+
6+
[tool.black]
7+
exclude = '''
8+
(
9+
/(
10+
\.eggs # exclude a few common directories in the
11+
| \.git # root of the project
12+
| \.hg
13+
| \.mypy_cache
14+
| \.tox
15+
| \.venv
16+
| _build
17+
| buck-out
18+
| build
19+
| dist
20+
)
21+
)
22+
'''
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[metadata]
2+
name = activitypub-webhook-relay
3+
description = DFFML blank activitypub-webhook-relay
4+
long_description = file: README.rst
5+
author = Unknown
6+
author_email = [email protected]
7+
maintainer = Unknown
8+
maintainer_email = [email protected]
9+
url = https://github.com/intel/dffml/tree/main/service/activitypub-webhook-relay
10+
license = MIT
11+
# keywords = dffml
12+
classifiers =
13+
Development Status :: 3 - Alpha
14+
Intended Audience :: Developers
15+
License :: OSI Approved :: MIT License
16+
Natural Language :: English
17+
Operating System :: OS Independent
18+
Programming Language :: Python :: 3 :: Only
19+
Programming Language :: Python :: 3.7
20+
Programming Language :: Python :: Implementation :: CPython
21+
Programming Language :: Python :: Implementation :: PyPy
22+
23+
[options]
24+
zip_safe = False
25+
include_package_data = True
26+
packages = find:
27+
# entry_points = file: entry_points.txt
28+
setup_requires =
29+
setuptools_scm[toml]>=3.4.3
30+
install_requires =
31+
quart
32+
tomli_w
33+
bovine
34+
# dffml>=0.4.0
35+
36+
[options.extras_require]
37+
dev =
38+
coverage
39+
codecov
40+
sphinx
41+
twine
42+
setuptools_scm[toml]>=3.4.3
43+
black==23.7.0
44+
importlib_metadata>=4.8.1;python_version<"3.8"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import sys
2+
import site
3+
import setuptools
4+
5+
# See https://github.com/pypa/pip/issues/7953
6+
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
7+
8+
setuptools.setup(use_scm_version=True)

service/activitypub-webhook-relay/tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)