Skip to content

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

@noUsernamesLef7

Description

@noUsernamesLef7

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissues that report a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions