Skip to content

fix and update requirements.txt #841

@netsandbox

Description

@netsandbox

requirements.txtwas associated with binder in ec7beaa,
which I think is wrong, because requirements.txt is primary used for installing packages from pypi:
https://pip.pypa.io/en/latest/user_guide/#requirements-files

There is already a definition for requirements.in:

atom/config.cson

Lines 5313 to 5317 in 27284bb

PyPi:
icon: "pypi"
match: /^requirements\.in$/i
colour: "dark-blue"
priority: 2

["pypi-icon",["dark-blue","dark-blue"],/^requirements\.in$/i,2],

which points to pypi, which should be extended to apply also for other requirements file names.

I have seen the following requirements file names:

  • requirements-dev.txt
  • requirements-doc.txt
  • requirements_docs.txt
  • requirements-test.txt
  • requirements_test.txt

So maybe the match can be adjusted to also catch these file names. Something like:
/^(dev-)?requirements.*\.(in|txt)$/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions