Commit Graph

43 Commits

Author SHA1 Message Date
Foo 9021b18940 Update base version 2015-06-27 01:51:29 +03:00
Foo 20868f7a0d Update base version 2015-05-10 23:18:10 +03:00
Foo 7b6986022e Update base version 2015-05-10 22:31:06 +03:00
Foo 6e0951d403 Update base version 2015-05-10 22:16:32 +03:00
Foo af9515f889 Update base version 2015-05-10 17:54:13 +03:00
ZyX ceb0487fe0 Update base version 2015-02-19 02:56:44 +03:00
ZyX e233ca7a54 Fix compiling C client when using Python-2.6
`shlex.split` is inadequate when it receives Unicode strings: `u'-O3'` is split 
into a single argument that looks like `'-\x00O\x003\x00'`.
2015-02-15 01:19:06 +03:00
ZyX 99830bad49 Use PEP440-compatible versions
Fixes #1310
2015-02-15 01:04:58 +03:00
Andreas Schneider e373b36d00 setup: Honor CFLAGS set as environment variable
Distributions normally have their preferred set of CFLAGS so the
binaries are optimized and include debug symbols to create a debuginfo
package. For this we need to be able to set the CFLAGS via the
commandline and the setup.py should forward them to the compiler.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2014-12-10 16:16:46 +01:00
ZyX db5d87f9e3 Update various URLs: powerline has moved to github.com/powerline 2014-12-07 16:08:24 +03:00
ZyX eb0b1986d1 Fix location of the which function 2014-10-27 08:11:07 +03:00
ZyX 4a689ad648 Strip trailing newline returned by rev-parse 2014-10-25 13:06:46 +04:00
ZyX 2106be4066 Save git hex revision in powerline version string if possible
Only useful for `pip install git+git://` or `pip install /some/directory` 
installations (note: commands come without `--editable`/`-e`).
2014-10-19 00:05:51 +04:00
ZyX 77b0695caf Replace all ASCII ' with Unicode ’ in comments and docstrings 2014-09-20 17:48:15 +04:00
ZyX c0459dbebe Rename `beta` version to `dev` 2014-09-05 20:27:52 +04:00
ZyX 2a515b7849 Use PyPI name in setup.py 2014-09-04 08:46:29 +04:00
ZyX 2a73f031a0 Add download_url, license and classifiers to setup.py 2014-09-04 08:46:03 +04:00
ZyX 06211cbe63 Unify imports
Now imports follow the following structure:

1. __future__ line: exactly one line allowed:

        from __future__ import (unicode_literals, division, absolute_import, print_function)

   (powerline.shell is the only exception due to problems with argparse).
2. Standard python library imports in a form `import X`.
3. Standard python library imports in a form `from X import Y`.
4. and 5. 2. and 3. for third-party (non-python and non-powerline imports).
6. 3. for powerline non-test imports.
7. and 8. 2. and 3. for powerline testing module imports.

Each list entry is separated by exactly one newline from another import. If
there is module docstring it goes between `# vim:` comment and `__future__`
import. So the structure containing all items is the following:

    #!/usr/bin/env python
    # vim:fileencoding=utf-8:noet

    '''Powerline super module'''

    import sys

    from argparse import ArgumentParser

    import psutil

    from colormath.color_diff import delta_e_cie2000

    from powerline.lib.unicode import u

    import tests.vim as vim_module

    from tests import TestCase

.
2014-09-01 00:25:24 +04:00
Kim Silkebækken 151b3f1117 Use readthedocs theme for docs 2014-08-02 22:46:37 +04:00
ZyX 925d3eb0e4 Show exception in setup.py and try to fall back to powerline.sh 2014-08-02 21:31:00 +04:00
ZyX 21ee641a02 Do not use scripts=[] to install powerline at all. 2014-08-02 18:53:24 +04:00
ZyX c1d290b570 Use data_files on python-3 2014-08-02 18:45:43 +04:00
Kim Silkebækken a122e73b9b Add files from @kovidgoyal's powerline-daemon repo
Minor changes have been applied:

- Removed copyright info and GPL 3 license since Powerline is MIT (needs
  confirmation from kovidgoyal before merge)
- The `powerline-client` script is renamed to `powerline`, and calls the
  daemon or `powerline-render` (the previous `powerline`) to render
  a statusline
- Minor coding style corrections to match the rest of the project
- Python 3 support is removed for now due to setuptools failing with
  binary scripts

Todo:

- Automatically attempt to launch powerline-daemon the first time
  powerline is run if the daemon isn't already running?
- pip install -e fails with binary files (it appears that pip recodes
  the powerline binary to ASCII, the compiled powerline script must be
  copied manually to ~/.local/bin after pip install -e has been run)
2014-08-02 18:45:18 +04:00
ZyX 7b1d7bbb9e Use scripts/powerline-config to source tmux configuration
Ref #872
2014-05-24 13:45:21 +04:00
Kim Silkebækken f107494d84 Make author name ASCII 2013-08-20 13:07:56 +02:00
Kovid Goyal d1cdf860d1 Fix #604 2013-07-20 18:44:18 +05:30
ZyX 27c9a05782 Change indentation of closing }, ], ) and combinations of them 2013-03-25 19:04:18 +04:00
ZyX d27f7a0411 Add most configuration checks
Changes:

- Add main configuration, colors.json, almost full themes and colorschemes
  checks
- Make powerline.lint.check return whether it had problems
- Make powerline-lint fail if .check reported problems
- Make tests run powerline-lint
- Add the script to the list of the installed scripts

Fixes #278
2013-03-11 19:17:18 +04:00
ZyX a6d48232b0 Add python_test, more exclusions
Fixes #289
2013-03-11 15:53:32 +01:00
Kim Silkebækken 111eaa27e8 Combine vim modelines and Python encoding declarations
Ref #314
2013-03-11 10:40:09 +01:00
Kim Silkebækken 6748701fcb Add vim modelines to all Python files
Added with `sed -i '2i# vim:fenc=utf-8:noet' `find -name '*.py'`` and
fixed in a couple of files without the UTF-8 encoding on top.

Ref #314
2013-03-11 08:11:25 +01:00
ZyX aa0a8bf76d Make tests support python2.6
Old unittest is not working for unknown reason, using unittest2 instead
2013-03-03 21:03:40 +01:00
ZyX 584755765b Start adding tests
Tests are temporary disabled on all branches except tests (does not really work
though, needs travis.yml in all branches).
2013-03-03 21:03:19 +01:00
Kim Silkebækken 282cb43eef Fix various minor formatting issues
Closes #242.
2013-02-20 13:47:54 +01:00
Kim Silkebækken b99e9cb074 Revert "Make 'powerline' a namespace package"
This reverts commit 57bd0af272.
2013-02-04 13:04:17 +01:00
Kim Silkebækken 57bd0af272 Make 'powerline' a namespace package
This will allow third-party plugins to use the 'powerline' namespace for
contributed segments.

Refs #3.
2013-02-03 16:27:30 +01:00
Kim Silkebækken 091400c84f Join tmux/prompt shell scripts into one common script 2013-01-28 07:16:55 +01:00
Kim Silkebækken 85331710bf Remove unneeded extras dependency 2013-01-21 21:02:36 +01:00
Kim Silkebækken bee427eb42 Add Python 3.3 support
Support for unicode literals was reintroduced in Python 3.3 which makes
supporting both Python 2 and Python 3 much easier, so this will be the
minimum supported Python 3 version.

Closes #8.
2013-01-21 20:42:57 +01:00
Kim Silkebækken fd94c7c0ba Install tmux/prompt files as scripts 2013-01-17 09:25:56 +01:00
Kim Silkebækken 6d3dea1f0b Cleanup Python files to comply better with PEP 8
Removed excessive newlines and comments, and fixed whitespace issues.
2013-01-15 08:57:38 +01:00
Kim Silkebækken 9ba8570bf7 Update documentation and version 2012-12-17 15:24:42 +01:00
Kim Silkebækken 82b52094a3 Add setup.py 2012-12-13 15:43:38 +01:00