0x48piraj / 0x48piraj/rqmts

Fails to detect on some modules

Ouverte Adaptée aux débutants
#4 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Python
Étoiles
6
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

#### Current behavior :

`rqmts.py` fails to detect packages which have different names.

#### Expected behavior :

Successfully detects and parses out the dependency _(package version)_

#### Logcat

```
C:\Users\rqmts>py -3 rqmts.py
Enter path of the python script : C:\tests\run.py
[!] System package: `re`
[!] System package: `time`
[!] System package: `string`
[!] System package: `strgen` <---- NOT A SYSTEM PACKAGE
[!] System package: `random`
[!] System package: `os`
[!] System package: `time`
[+] Success: Parsed the dependencies correctly
[*] Saving generated requirements.txt
[+] Success: requirements.txt saved
[+] Path where it can be found: C:\tests\requirements.txt
```

#### References :

1. **[pypi-strgen](https://pypi.org/project/StringGenerator/)**
2. `pip install StringGenerator`

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Look at rqmts.py to understand how it detects system packages versus external dependencies. The issue is that 'strgen' (from pypi package StringGenerator) is incorrectly flagged as a system package. Check the logic for distinguishing built-in modules from PyPI packages, possibly by comparing against a list of standard library modules. Test by running the script on a file that imports strgen to verify the fix.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
cli, tooling
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
65/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.