Skip to content

Commit

Permalink
Bundle grapefruit
Browse files Browse the repository at this point in the history
Grapefruit is a stable tiny library. We're bundling it temporarily
because it currently can't be installed with pip: xav/Grapefruit#15
  • Loading branch information
jart committed Jul 3, 2016
1 parent ab94f22 commit 699f6ae
Show file tree
Hide file tree
Showing 8 changed files with 2,053 additions and 24 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ python:
- 2.7
- pypy

install:
- pip install grapefruit==0.1a3

script:
- python -m doctest -v fabulous/*.py

Expand Down
7 changes: 1 addition & 6 deletions ez_setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!python
#!/usr/bin/python
"""Bootstrap setuptools installation
If you want to use setuptools in your package's setup.py, just include this
Expand Down Expand Up @@ -276,8 +276,3 @@ def update_md5(filenames):
update_md5(sys.argv[2:])
else:
main(sys.argv[1:])





6 changes: 2 additions & 4 deletions fabulous/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
import sys
import functools

from fabulous import utils, xterm256

import grapefruit
from fabulous import utils, xterm256, grapefruit


OVERLINE = u'\u203e'
Expand Down Expand Up @@ -209,7 +207,7 @@ def parse_color(color):
(255, 0, 0)
>>> parse_color((255, 0, 0))
(255, 0, 0)
>>> import grapefruit
>>> from fabulous import grapefruit
>>> parse_color(grapefruit.Color((0.0, 1.0, 0.0)))
(0, 255, 0)
"""
Expand Down
Loading

0 comments on commit 699f6ae

Please sign in to comment.