Skip to content

Commit

Permalink
deprecation notice
Browse files Browse the repository at this point in the history
please use SublimeLinter-contrib-yamllint
  • Loading branch information
braver committed Dec 23, 2017
1 parent e59904f commit 2b0c1aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 79 deletions.
74 changes: 3 additions & 71 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,74 +1,6 @@
SublimeLinter-pyyaml
=========================
SublimeLinter-pyyaml DEPRECATED
===============================

[![Build Status](https://travis-ci.org/SublimeLinter/SublimeLinter-pyyaml.svg?branch=master)](https://travis-ci.org/SublimeLinter/SublimeLinter-pyyaml)

This linter plugin for [SublimeLinter][docs] provides an interface to [pyyaml](http://pyyaml.org/). It will be used with files that have the “YAML” syntax.

## Installation
SublimeLinter 3 must be installed in order to use this plugin. If SublimeLinter 3 is not installed, please follow the instructions [here][installation].

### Linter installation
Before using this plugin, you must ensure that `pyyaml` is installed for **Python 3** on your system, and **available for direct import in Sublime Text 3**.

Package Control should take care of the dependencies for you, but if not, you can do the following:

1. Install [Python 3](http://python.org/download/) and [pip](http://www.pip-installer.org/en/latest/installing.html) for this Python 3 version.

1. Install `pyyaml` by typing the following in a terminal:
```bash
# X is the minor version of python 3 you installed pip with.
[sudo] pip-3.X install pyyaml

# or on Windows:
C:\Python3X\Scripts\pip.exe install pyyaml
```

For Windows, a PyYAML installer is also available from [PyYAML on Pypi](https://pypi.python.org/pypi/PyYAML). Make sure to use a Python 3.X version.

For Debian(Linux), you can just use "apt-get install python3-yaml" (Since you might run into difficulties with pip3).

Once `pyyaml` is installed, you can proceed to install the SublimeLinter-pyyaml plugin if it is not yet installed.

### Plugin installation
Please use [Package Control][pc] to install the linter plugin. This will ensure that the plugin will be updated when new versions are available. If you want to install from source so you can modify the source code, you probably know what you are doing so we won’t cover that here.

To install via Package Control, do the following:

1. Within Sublime Text, bring up the [Command Palette][cmd] and type `install`. Among the commands you should see `Package Control: Install Package`. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins.

1. When the plugin list appears, type `pyyaml`. Among the entries you should see `SublimeLinter-pyyaml`. If that entry is not highlighted, use the keyboard or mouse to select it.

1. When the module is installed and you open a “YAML” file, you should see a message stating ``SublimeLinter: pyyaml activated: <builtin>`` or similar in the console. The message should be similar to ``SublimeLinter: yaml imported <module 'yaml' from '/usr/local/lib/python3.3/dist-packages/yaml/__init__.py'>`` if debug mode is on.

1. If you see ``SublimeLinter: WARNING: import of yaml module in pyyaml failed`` instead, try running ``import yaml`` in the SublimeText console. If it fails, the module could not be located, please see [Troubleshooting](https://github.com/SublimeLinter/SublimeLinter.github.io/wiki/Troubleshooting), or use the [SublimeLinter google group](https://groups.google.com/forum/#!forum/sublimelinter) to report installation and configuration problems.

## Settings
For general information on how SublimeLinter works with settings, please see [Settings][settings]. For information on generic linter settings, please see [Linter Settings][linter-settings].

## Contributing
If you would like to contribute enhancements or fixes, please do the following:

1. Fork the plugin repository.
1. Hack on a separate topic branch created from the latest `master`.
1. Commit and push the topic branch.
1. Make a pull request.
1. Be patient. ;-)

Please note that modications should follow these coding guidelines:

- Indent is 4 spaces.
- Code should pass flake8 and pep257 linters.
- Vertical whitespace helps readability, don’t be afraid to use it.
- Please use descriptive variable names, no abbrevations unless they are very well known.

Thank you for helping out!

[docs]: http://sublimelinter.readthedocs.org
[installation]: http://sublimelinter.readthedocs.org/en/latest/installation.html
[locating-executables]: http://sublimelinter.readthedocs.org/en/latest/usage.html#how-linter-executables-are-located
[pc]: https://sublime.wbond.net/installation
[cmd]: http://docs.sublimetext.info/en/sublime-text-3/extensibility/command_palette.html
[settings]: http://sublimelinter.readthedocs.org/en/latest/settings.html
[linter-settings]: http://sublimelinter.readthedocs.org/en/latest/linter_settings.html
[inline-settings]: http://sublimelinter.readthedocs.org/en/latest/settings.html#inline-settings
This package has been deprecated. [SublimeLinter-contrib-yamllint](https://packagecontrol.io/packages/SublimeLinter-contrib-yamllint) provides a smarter and more modern approach to linting yaml, please upgrade to that. SublimeLinter 4 will drop support for SL-pyyaml.
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"install": "messages/install.txt"
"install": "messages/install.txt",
"1.2.1": "messages/install.txt"
}
13 changes: 6 additions & 7 deletions messages/install.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
SublimeLinter-pyyaml
SublimeLinter-pyyaml DEPRECATED
-------------------------------
This linter plugin for SublimeLinter provides an interface to pyyaml.

** IMPORTANT! **
This package has been deprecated.
SublimeLinter-contrib-yamllint provides a smarter and more modern approach to
linting yaml, please upgrade to that.
https://packagecontrol.io/packages/SublimeLinter-contrib-yamllint

Before this plugin will activate, you *must*
follow the installation instructions here:

https://github.com/SublimeLinter/SublimeLinter-pyyaml
SublimeLinter 4 will drop support for SublimeLinter-pyyaml.

0 comments on commit 2b0c1aa

Please sign in to comment.