diff --git a/contexts/installed/.coveragerc b/contexts/installed/.coveragerc deleted file mode 100644 index 335a156755..0000000000 --- a/contexts/installed/.coveragerc +++ /dev/null @@ -1,13 +0,0 @@ -[run] -source = - dffml_contexts_installed - tests -branch = True - -[report] -exclude_lines = - no cov - no qa - noqa - pragma: no cover - if __name__ == .__main__.: diff --git a/contexts/installed/.gitignore b/contexts/installed/.gitignore deleted file mode 100644 index 3af0b3e081..0000000000 --- a/contexts/installed/.gitignore +++ /dev/null @@ -1,21 +0,0 @@ -*.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/ diff --git a/contexts/installed/LICENSE b/contexts/installed/LICENSE deleted file mode 100644 index 26902189c2..0000000000 --- a/contexts/installed/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -Copyright (c) 2021 pdxjohnny - -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. diff --git a/contexts/installed/MANIFEST.in b/contexts/installed/MANIFEST.in deleted file mode 100644 index dac1426fc1..0000000000 --- a/contexts/installed/MANIFEST.in +++ /dev/null @@ -1,3 +0,0 @@ -include README.rst -include LICENSE -recursive-include dffml_contexts_installed * diff --git a/contexts/installed/README.rst b/contexts/installed/README.rst deleted file mode 100644 index f687c62017..0000000000 --- a/contexts/installed/README.rst +++ /dev/null @@ -1,10 +0,0 @@ -Package Name -============ - -Package description - -Install from pip - -.. code-block:: console - - $ pip install package diff --git a/contexts/installed/dffml_contexts_installed/__init__.py b/contexts/installed/dffml_contexts_installed/__init__.py deleted file mode 100644 index 5f7cf45a59..0000000000 --- a/contexts/installed/dffml_contexts_installed/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from .generate_namespace import * diff --git a/contexts/installed/dffml_contexts_installed/generate_namespace.py b/contexts/installed/dffml_contexts_installed/generate_namespace.py deleted file mode 100644 index 6fae220e21..0000000000 --- a/contexts/installed/dffml_contexts_installed/generate_namespace.py +++ /dev/null @@ -1,46 +0,0 @@ -import sys - -import dffml - -DEFAULT_DEPLOYMENT: str = "python.native" - -for sysctx in dffml.SystemContext.load(): - # Ideally we would have load not setting propreties on the loaded classes. - # TODO for name, sysctx in SystemContext.load_dict().items(): - setattr( - sys.modules[__name__], - sysctx.ENTRY_POINT_LABEL, - # TODO(alice) Should probably set origin / use origin as python.caller - # or something like that. - sysctx.deployment(deployment_environment=DEFAULT_DEPLOYMENT), - ) - -delattr(sys.modules[__name__], "dffml") -delattr(sys.modules[__name__], "sys") - -# **system_contexts/__init__.py** -# **wonderland/async.py** - -# from wonderland import Alice, alice -# from wonderland.async import Alice - -# async with AliceSystemContext() as alice: -# async with alice() as alice_ctx: -# async for thought in alice_ctx.thoughts(): -# # async for thought in alice_ctx(): # .thoughts is the default - -# async with Alice() as alice: -# async for thought in alice: - -# for thought in alice: -# print(thought) - -# TODO Pick this work back up later when we have more of an idea about how the -# CLI is working and how we do overlays on an entity to create a different -# version / evolution of that entity. - -# alice = Alice() -# print(alice) -# breakpoint() -# for thought in alice: -# print(thought) diff --git a/contexts/installed/dffml_contexts_installed/version.py b/contexts/installed/dffml_contexts_installed/version.py deleted file mode 100644 index 901e5110b2..0000000000 --- a/contexts/installed/dffml_contexts_installed/version.py +++ /dev/null @@ -1 +0,0 @@ -VERSION = "0.0.1" diff --git a/contexts/installed/pyproject.toml b/contexts/installed/pyproject.toml deleted file mode 100644 index f68b321a55..0000000000 --- a/contexts/installed/pyproject.toml +++ /dev/null @@ -1,22 +0,0 @@ -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 - ) -) -''' diff --git a/contexts/installed/setup.cfg b/contexts/installed/setup.cfg deleted file mode 100644 index b3791da12e..0000000000 --- a/contexts/installed/setup.cfg +++ /dev/null @@ -1,40 +0,0 @@ -[metadata] -name = dffml-contexts-installed -version = attr: dffml_contexts_installed.version.VERSION -description = dffml.sysctx entrypoints within the global namespace as Python objects via deployment python.native -long_description = file: README.rst -author = John Andersen -author_email = johnandersenpdx@gmail.com -maintainer = John Andersen -maintainer_email = johnandersenpdx@gmail.com -url = https://github.com/dffml/dffml-contexts-installed -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] -packages = find: -entry_points = file: entry_points.txt -setup_requires = - setuptools_scm[toml]>=3.4.3 -install_requires = - dffml>=0.4.0 - -[options.extras_require] -dev = - coverage - codecov - sphinx - twine - setuptools_scm[toml]>=3.4.3 - black==19.10b0 - importlib_metadata>=4.8.1;python_version<"3.8" diff --git a/contexts/installed/setup.py b/contexts/installed/setup.py deleted file mode 100644 index 17542f4d0e..0000000000 --- a/contexts/installed/setup.py +++ /dev/null @@ -1,8 +0,0 @@ -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() diff --git a/contexts/installed/tests/__init__.py b/contexts/installed/tests/__init__.py deleted file mode 100644 index e69de29bb2..0000000000