Stubs flag package name mapping
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Start by reading circup/command_utils.py, especially the package mapping linked in the issue, and trace how the stubs flag uses it. Done means the stubs flag maps adafruit_button and adafruit_bus_device to their PyPI package names.
Written by the indexing model from the issue text.
Description
I'm setting up a devcontainer with vscode and using circup to allow some local dev and noticed the stubs flag but it fails on a couple packages.
If your project uses adafruit_button or adafruit_bus_device they won't remap to the package in PyPi.
Could a reverse of https://github.com/adafruit/circup/blob/53ac85b2c3e1271d0ff50bdbd317ead14afe5432/circup/command_utils.py#L64 be added?
I'm happy to do a PR, still pretty new to Python so not sure on preferred way but had a couple ideas.
- Add flag to existing function to do inverse map.
- Add new function that does inverse mapping.
- Move the package map dict to a const which can be used by two functions.
- Dominant language
- Python
- Stars
- 172
- Forks
- 41
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from adafruit/circup
-
Difficulty 3/5 1-2 days Newbie friendliness 75/100
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100