ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

requirementstxt

by wuub ALL

requirements.txt support for Python

Details

  • 0.3.1
    0.3.0
  • github.​com
  • github.​com
  • 5 years ago
  • 2 hours ago
  • 8 years ago

Installs

  • Total 57K
  • Win 25K
  • Mac 16K
  • Linux 16K
Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1
Windows 8 7 5 11 8 3 6 5 8 8 7 8 9 7 8 9 10 10 10 8 6 11 13 7 9 8 11 12 11 7 13 16 13 7 7 13 7 12 5 14 6 7 9 3 10 9
Mac 3 2 5 1 2 3 4 4 1 2 7 4 4 2 5 4 5 0 2 3 5 1 7 3 4 2 2 5 2 2 4 2 4 4 3 3 5 6 0 2 4 2 1 6 0 6
Linux 4 2 5 6 6 1 4 1 5 8 1 6 0 5 4 3 5 3 2 3 3 6 6 7 7 3 7 3 6 2 2 5 11 8 4 5 6 2 6 3 4 6 4 5 1 3

Readme

Source
raw.​githubusercontent.​com

requirements.txt

Plugin for Sublime Text 2/3 providing autocompletion, syntax highlight and easy version management in requirements.txt files.

Installation

Install using Package Control or clone this repository into Packages/requirementstxt folder (WARNING: previously we used a dot in the package name here, but SublimeText3 changed the way it imports packages, and we need to fall back to ascii name)

Usage

  • Open any requirements.txt file or Set syntax: requirements.txt of newly created file.
  • Start typing package name -> autocompletion should trigger automatically.
  • When cursor is placed on a single line, press Alt+, to pin package to the most recent version but still in the current major line. For example, if the current version of xyz is 1.2.3, requirements.txt will generate following version line: xyz>=1.2.3,<2.0.0 following http://semver.org/.
  • If you wish to hard pin most recent versions, use Alt+Shift+, -> line will be replaced with xyz==1.2.3
  • If you wish to pin a specific version, press Alt+. (soft) or Alt+Shift+. (hard) and pick a version from a quick panel.
  • Commands with , support mutliline and multicursor selections. If you wish to bring requirements.txt file up to date, just Ctrl+A & Alt+Shift+.
  • Using requirements.txt also normalizes package names, so mysql-python becomes MySQL-python.

Screenshots

  • Autocomplete
  • Completed
  • Select exact version for soft pin Alt+.
  • Select exact version for hard pin Alt+Shift+.
  • Automatically soft pin most recent version Alt+,
  • Automatically hard pin most recent version Alt+Shift+,
  • Multi-line selection
  • Multi-line selection & Alt+,
  • Multiple cursors
  • Multiple cursor & Alt+Shift+,