Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: PyPI package missing requirements.txt #45

Open
noUsernamesLef7 opened this issue Oct 11, 2024 · 3 comments
Open

[Bug]: PyPI package missing requirements.txt #45

noUsernamesLef7 opened this issue Oct 11, 2024 · 3 comments
Labels
bug issues that report a bug

Comments

@noUsernamesLef7
Copy link

Expected Behavior

Downloading the package from PyPI should include the requirements.txt file as the included setup.py references this file and crashes without it.

Actual Behavior

When downloading the latest version (0.0.17) of the package from PyPI, there is no requirements.txt file included. I also checked 0.0.16 and found it missing from that package.

Steps to Reproduce

  1. Download 0.0.17 package from PyPI
  2. Extract using method of choice
  3. Observe that the requirements.txt file is absent

Error Output

Traceback (most recent call last):
  File "/home/.../src/ansible_specdoc-0.0.17/setup.py", line 31, in <module>
    install_requires=requirements_path.read_text().splitlines(),
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/pathlib.py", line 1027, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/pathlib.py", line 1013, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/.../src/ansible_specdoc-0.0.17/requirements.txt'
@noUsernamesLef7 noUsernamesLef7 added the bug issues that report a bug label Oct 11, 2024
@AryanK1511
Copy link

I believe I know how to fix this. @noUsernamesLef7, are you able to assign this issue to me?

@AryanK1511
Copy link

AryanK1511 commented Oct 13, 2024

@noUsernamesLef7 Also could you let me know what command you are running so that I can reproduce the error on my end too. I have a way of seeing that the requirements file does not exist but I am curious about the command that you are using

@ezilber-akamai
Copy link

Hello. Thank you for reporting this issue! I have created a ticket to fix this and we will tag this issue in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues that report a bug
Projects
None yet
Development

No branches or pull requests

3 participants