From 2e0c2bfd9aa76c298487d751ead310dfb7d50cc3 Mon Sep 17 00:00:00 2001 From: bcasadei Date: Wed, 7 Jan 2026 17:34:10 -0700 Subject: [PATCH] Updated publish_action --- .github/workflows/publish_action.yml | 18 ++----- pyproject.toml | 76 ++-------------------------- 2 files changed, 8 insertions(+), 86 deletions(-) diff --git a/.github/workflows/publish_action.yml b/.github/workflows/publish_action.yml index c701d39..6c9b34c 100644 --- a/.github/workflows/publish_action.yml +++ b/.github/workflows/publish_action.yml @@ -9,22 +9,12 @@ on: jobs: publish-node: + name: Publish Custom Node to registry runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 + - name: Publish Custom Node + uses: Comfy-Org/publish-node-action@master with: - python-version: "3.10" - - - name: Install comfy-cli - run: pip install comfy-cli - - - name: Publish to Comfy Registry - env: - COMFY_API_KEY: ${{ secrets.REGISTRY_ACCESS_TOKEN }} - COMFY_TRACKING: "false" - run: | - echo "n" | comfy node publish --path . + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} ## Add your own personal access token to your Github Repository secrets and reference it here. diff --git a/pyproject.toml b/pyproject.toml index 50dceac..05b04ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,86 +1,18 @@ -[build-system] -requires = ["setuptools>=70.0"] -build-backend = "setuptools.build_meta" - +# pyproject.toml [project] -name = "comfyui_prompt_camera_assistant" -version = "0.0.1" +name = "comfyui_prompt_camera_assistant" # Unique identifier for your node. Immutable after creation. description = "Prompt camera assistant for adding camera details to prompts." -authors = [ - {name = "Bill Casadei"} -] -readme = "README.md" +version = "1.0.0" # Custom Node version. Must be semantically versioned. license = {text = "MIT license"} -requires-python = ">=3.10" -classifiers = [] -dependencies = [ - -] - - -[project.optional-dependencies] -dev = [ - "bump-my-version", - "coverage", # testing - "mypy", # linting - "pre-commit", # runs linting on commit - "pytest", # testing - "ruff", # linting -] +dependencies = [] # Filled in from requirements.txt [project.urls] Repository = "https://github.com/bcasadei/ComfyUI-Prompt-Camera-Assistant" -BugTracker = "https://github.com/bcasadei/ComfyUI-Prompt-Camera-Assistant/issues" -Documentation = "https://github.com/bcasadei/ComfyUI-Prompt-Camera-Assistant/wiki" [tool.comfy] PublisherId = "bcasadei" DisplayName = "Prompt Camera Assistant" -Icon = "" -Tags = [] -Repository = "https://github.com/bcasadei/ComfyUI-Prompt-Camera-Assistant" - -includes = [] -[tool.setuptools.package-data] -"*" = ["*.*"] -[tool.pytest.ini_options] -minversion = "8.0" -testpaths = [ - "tests", -] -[tool.mypy] -files = "." - -# Use strict defaults -strict = true -warn_unreachable = true -warn_no_return = true - -[[tool.mypy.overrides]] -# Don't require test functions to include types -module = "tests.*" -allow_untyped_defs = true -disable_error_code = "attr-defined" - -[tool.ruff] -# extend-exclude = ["static", "ci/templates"] -line-length = 140 -src = ["src", "tests"] -target-version = "py39" - -# Add rules to ban exec/eval -[tool.ruff.lint] -select = [ - "S102", # exec-builtin - "S307", # eval-used - "W293", - "F", # The "F" series in Ruff stands for "Pyflakes" rules, which catch various Python syntax errors and undefined names. - # See all rules here: https://docs.astral.sh/ruff/rules/#pyflakes-f -] - -[tool.ruff.lint.flake8-quotes] -inline-quotes = "double"