8000 receptor/receptorctl at devel · thom-at-redhat/receptor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"receptorctl","repo":{"id":621795228,"defaultBranch":"devel","name":"receptor","ownerLogin":"thom-at-redhat","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-03-31T12:02:25.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/2972286?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"devel","listCacheKey":"v0:1730718919.0","canEdit":false,"refType":"branch","currentOid":"0d359e533531895e2295325cd2c306199a27acb5"},"tree":{"items":[{"name":"receptorctl","path":"receptorctl/receptorctl","contentType":"directory"},{"name":"requirements","path":"receptorctl/requirements","contentType":"directory"},{"name":"tests","path":"receptorctl/tests","contentType":"directory"},{"name":".coveragerc","path":"receptorctl/.coveragerc","contentType":"file"},{"name":".gitignore","path":"receptorctl/.gitignore","contentType":"file"},{"name":".pip-tools.toml","path":"receptorctl/.pip-tools.toml","contentType":"file"},{"name":"MANIFEST.in","path":"receptorctl/MANIFEST.in","contentType":"file"},{"name":"README.md","path":"receptorctl/README.md","contentType":"file"},{"name":"noxfile.py","path":"receptorctl/noxfile.py","contentType":"file"},{"name":"pyproject.toml","path":"receptorctl/pyproject.toml","contentType":"file"},{"name":"setup.cfg","path":"receptorctl/setup.cfg","contentType":"file"},{"name":"setup.py","path":"receptorctl/setup.py","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eReceptorctl\u003c/h1\u003e\u003ca id=\"user-content-receptorctl\" class=\"anchor\" aria-label=\"Permalink: Receptorctl\" href=\"#receptorctl\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eReceptorctl is a front-end CLI and importable Python library that interacts with Receptor over its control socket interface.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSetting up nox\u003c/h2\u003e\u003ca id=\"user-content-setting-up-nox\" class=\"anchor\" aria-label=\"Permalink: Setting up nox\" href=\"#setting-up-nox\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThis project includes a \u003ccode\u003enox\u003c/code\u003e configuration to automate tests, checks, and other functions in a reproducible way using isolated environments.\nBefore you submit a PR, you should install \u003ccode\u003enox\u003c/code\u003e and verify your changes.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eTo run \u003ccode\u003emake receptorctl-lint\u003c/code\u003e and \u003ccode\u003ereceptorctl-test\u003c/code\u003e from the repository root, you must first install \u003ccode\u003enox\u003c/code\u003e.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003eInstall \u003ccode\u003enox\u003c/code\u003e using \u003ccode\u003epython3 -m pip install nox\u003c/code\u003e or your distribution's package manager.\u003c/li\u003e\n\u003cli\u003eRun \u003ccode\u003enox --list\u003c/code\u003e from the \u003ccode\u003ereceptorctl\u003c/code\u003e directory to view available sessions.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp dir=\"auto\"\u003eYou can run \u003ccode\u003enox\u003c/code\u003e with no arguments to execute all checks and tests.\nAlternatively, you can run only certain tasks as outlined in the following sections.\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eBy default nox sessions install pinned dependencies from the \u003ccode\u003erequirements\u003c/code\u003e directory.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp dir=\"auto\"\u003eYou can use unpinned dependencies as follows:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"PINNED=false nox -s lint\"\u003e\u003cpre\u003ePINNED=false nox -s lint\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eChecking changes to Receptorctl\u003c/h2\u003e\u003ca id=\"user-content-checking-changes-to-receptorctl\" class=\"anchor\" aria-label=\"Permalink: Checking changes to Receptorctl\" href=\"#checking-changes-to-receptorctl\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eRun the following \u003ccode\u003enox\u003c/code\u003e sessions to check for code style and formatting issues:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eRun all checks.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nox -s lint\"\u003e\u003cpre\u003enox -s lint\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eCheck code style.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nox -s check_style\"\u003e\u003cpre\u003enox -s check_style\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eCheck formatting.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nox -s check_format\"\u003e\u003cpre\u003enox -s check_format\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eFormat code if the check fails.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nox -s format\"\u003e\u003cpre\u003enox -s format\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRunning Receptorctl tests\u003c/h2\u003e\u003ca id=\"user-content-running-receptorctl-tests\" class=\"anchor\" aria-label=\"Permalink: Running Receptorctl tests\" href=\"#running-receptorctl-tests\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eRun the following \u003ccode\u003enox\u003c/code\u003e sessions to test Receptorctl changes:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eRun tests against the complete matrix of Python versions.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nox -s tests\"\u003e\u003cpre\u003enox -s tests\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eRun tests against a specific Python version.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# For example, this command tests Receptorctl against Python 3.12.\nnox -s tests-3.12\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c\"\u003e\u003cspan class=\"pl-c\"\u003e#\u003c/span\u003e For example, this command tests Receptorctl against Python 3.12.\u003c/span\u003e\nnox -s tests-3.12\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eUpdating dependencies\u003c/h2\u003e\u003ca id=\"user-content-updating-dependencies\" class=\"anchor\" aria-label=\"Permalink: Updating dependencies\" href=\"#updating-dependencies\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eUpdate dependencies in the \u003ccode\u003erequirements\u003c/code\u003e directory as follows:\u003c/p\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003eAdd any packages or pins to the \u003ccode\u003e*.in\u003c/code\u003e file.\u003c/li\u003e\n\u003cli\u003eDo one of the following from the \u003ccode\u003ereceptorctl\u003c/code\u003e directory:\u003c/li\u003e\n\u003c/ol\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eUpdate all dependencies.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nox -s pip-compile\"\u003e\u003cpre\u003enox -s pip-compile\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eGenerate the full dependency tree for a single set of dependencies, for example:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nox -s \u0026quot;pip-compile-3.12(tests)\u0026quot;\"\u003e\u003cpre\u003enox -s \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003epip-compile-3.12(tests)\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cblockquote\u003e\n\u003cp dir=\"auto\"\u003eYou can also pass the \u003ccode\u003e--no-upgrade\u003c/code\u003e flag when adding a new package.\nThis avoids bumping transitive dependencies for other packages in the \u003ccode\u003e*.in\u003c/code\u003e file.\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"nox -s pip-compile -- --no-upgrade\"\u003e\u003cpre\u003enox -s pip-compile -- --no-upgrade\u003c/pre\u003e\u003c/div\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Receptorctl","anchor":"receptorctl","htmlText":"Receptorctl"},{"level":2,"text":"Setting up nox","anchor":"setting-up-nox","htmlText":"Setting up nox"},{"level":2,"text":"Checking changes to Receptorctl","anchor":"checking-changes-to-receptorctl","htmlText":"Checking changes to Receptorctl"},{"level":2,"text":"Running Receptorctl tests","anchor":"running-receptorctl-tests","htmlText":"Running Receptorctl tests"},{"level":2,"text":"Updating dependencies","anchor":"updating-dependencies","htmlText":"Updating dependencies"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fthom-at-redhat%2Freceptor%2Ftree%2Fdevel%2Freceptorctl"}},"totalCount":12,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"cmd","path":"cmd","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"example","path":"example","contentType":"directory"},{"name":"internal","path":"internal","contentType":"directory"},{"name":"packaging","path":"packaging","contentType":"directory"},{"name":"pkg","path":"pkg","contentType":"directory"},{"name":"receptor-python-worker","path":"receptor-python-worker","contentType":"directory"},{"name":"receptorctl","path":"receptorctl","contentType":"directory"},{"name":"tests","path":"tests","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":".dockerignore","path":".dockerignore","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".gitleaks.toml","path":".gitleaks.toml","contentType":"file"},{"name":".golangci.yml","path":".golangci.yml","contentType":"file"},{"name":".readthedocs.yaml","path":".readthedocs.yaml","contentType":"file"},{"name":".sonarcloud.properties","path":".sonarcloud.properties","contentType":"file"},{"name":"LICENSE.md","path":"LICENSE.md","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"go.mod","path":"go.mod","contentType":"file"},{"name":"go.sum","path":"go.sum","contentType":"file"},{"name":"setup.cfg","path":"setup.cfg","contentType":"symlink_file"}],"totalCount":23}},"fileTreeProcessingTime":3.540294,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/thom-at-redhat/receptor/branches":{"post":"aJlTRjedVNhie2mlUoQXGtrBQpZ-kLIlb981MF3Yc9omJsD_BruYiax52WwxkP0riV6iYPGcGbRxylIzqMyEvA"},"/thom-at-redhat/receptor/branches/fetch_and_merge/devel":{"post":"e_BYUVWm44plAZiEw-vAjkqnrgqmwI5DFJdefge1MYO1a3NRrQ4MjSmcLQmhgq9NRPErZRkaSEDQtDZKTgmJJQ"},"/thom-at-redhat/receptor/branches/fetch_and_merge/devel?discard_changes=true":{"post":"RuzurhxPTDqN-FCaTdd4wKC7NzLJLptuqLy7UA91sDaId8Wu5OejPcFl5RcvvhcDru2yXXb0XW1sn9NkRskIkA"}}},"title":"receptor/receptorctl at devel · thom-at-redhat/receptor","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0