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
  • 3 years ago
  • 34 minutes ago
  • 7 years ago

Installs

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

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+,