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
  • 4 years ago
  • 45 minutes ago
  • 8 years ago

Installs

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

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