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

Commit

Permalink
service: activitypub-webhook-relay: Initial commit
Browse files Browse the repository at this point in the history
Related: #1315
Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
pdxjohnny committed Jul 25, 2023
1 parent 884bf8f commit 06e9fcd
Show file tree
Hide file tree
Showing 10 changed files with 147 additions and 0 deletions.
13 changes: 13 additions & 0 deletions service/activitypub-webhook-relay/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[run]
source =
activitypub_webhook_relay
tests
branch = True

[report]
exclude_lines =
no cov
no qa
noqa
pragma: no cover
if __name__ == .__main__.:
21 changes: 21 additions & 0 deletions service/activitypub-webhook-relay/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*.log
*.pyc
.cache/
.coverage
.idea/
.vscode/
*.egg-info/
build/
dist/
docs/build/
venv/
wheelhouse/
*.egss
.mypy_cache/
*.swp
.venv/
.eggs/
*.modeldir
*.db
htmlcov/
built_html_docs/
21 changes: 21 additions & 0 deletions service/activitypub-webhook-relay/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Copyright (c) 2023 Intel

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions service/activitypub-webhook-relay/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include README.rst
include LICENSE
recursive-include activitypub_webhook_relay *
15 changes: 15 additions & 0 deletions service/activitypub-webhook-relay/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ActivityPub Webhook Relay
=========================

Relays webhooks into the federated event space (ActivityPub).

Install from pip

.. code-block:: console
$ pip install activitypub-webhook-relay
References
**********

- https://github.com/intel/dffml/issues/1315
Empty file.
22 changes: 22 additions & 0 deletions service/activitypub-webhook-relay/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]

[tool.black]
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)
)
'''
44 changes: 44 additions & 0 deletions service/activitypub-webhook-relay/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[metadata]
name = activitypub-webhook-relay
description = DFFML blank activitypub-webhook-relay
long_description = file: README.rst
author = Unknown
author_email = [email protected]
maintainer = Unknown
maintainer_email = [email protected]
url = https://github.com/intel/dffml/tree/main/service/activitypub-webhook-relay
license = MIT
# keywords = dffml
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy

[options]
zip_safe = False
include_package_data = True
packages = find:
# entry_points = file: entry_points.txt
setup_requires =
setuptools_scm[toml]>=3.4.3
install_requires =
quart
tomli_w
bovine
# dffml>=0.4.0

[options.extras_require]
dev =
coverage
codecov
sphinx
twine
setuptools_scm[toml]>=3.4.3
black==23.7.0
importlib_metadata>=4.8.1;python_version<"3.8"
8 changes: 8 additions & 0 deletions service/activitypub-webhook-relay/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sys
import site
import setuptools

# See https://github.com/pypa/pip/issues/7953
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]

setuptools.setup(use_scm_version=True)
Empty file.

0 comments on commit 06e9fcd

Please sign in to comment.