pulp / pulp/plugin_template

bootstrapped AppConfig name is hyphenated

Open Beginner friendly
#724 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10
Forks
40
Avg merge
21h 24m
Merged PRs (30d)
8

Description

I got the following error the first time I tried to generate migrations from a bootstrapped plugin. The hyphen should be removed.

  File "/src/pulp-replica/pulp_replica/app/__init__.py", line 4
    class Pulp-ReplicaPluginAppConfig(PulpPluginAppConfig):
              ^
SyntaxError: invalid syntax

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the bootstrap flow and inspect the generated pulp_replica/app/__init__.py, where the invalid Pulp-ReplicaPluginAppConfig declaration appears. Trace that output back to the plugin template, remove the hyphen in the generated class name, and rerun migration generation to confirm the bootstrapped plugin is valid Python.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.