Permalink
Browse files

uploaded to PyPI

  • Loading branch information...
1 parent da862b2 commit 296094ef6d7f0e444e3bc24a729f1052722fea45 @tevino committed Jun 4, 2012
Showing with 24 additions and 20 deletions.
  1. +3 −1 .gitignore
  2. +1 −2 README.rst → README
  3. 0 cloudi/__init__.py
  4. +2 −4 { → cloudi}/cache.py
  5. { → cloudi}/color.py
  6. +2 −2 cloudi.py → cloudi/d
  7. +0 −9 install.sh
  8. +14 −0 setup.py
View
@@ -1,2 +1,4 @@
+build/
+dist/
+MANIFEST
*.pyc
-.cache.db
View
@@ -23,9 +23,8 @@ Dependencies
Installation Instructions
-------------------------
-if you use bash::
- $ sh install.sh
+ $ pip install cloudi
or you should know what to do with ``install.sh``
View
No changes.
@@ -1,12 +1,10 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-import sys
+import os
import shelve
-import os.path
-currentdir = sys.path[0]
-cache_file = os.path.join(currentdir, '.cache.db')
+cache_file = os.path.join(os.getenv('HOME'), '.cloudi_cache.db')
class Cache:
@@ -1,13 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-ed = u'\033[0m'
-
red_s = u'\033[0;31m'
lgreen_s = u'\033[1;32m'
dgreen_s = u'\033[0;32m'
white_s = u'\033[1m'
+ed = u'\033[0m'
+
def rig(st, s):
return u'%s%s%s' % (st, s, ed)
View
@@ -4,11 +4,11 @@
import urllib2
import sys
import os
-from cache import Cache
import platform
from HTMLParser import HTMLParser
import json
-from color import lgreen, dgreen, white, lgreen_s, ed, red
+from cloudi.cache import Cache
+from cloudi.color import lgreen, dgreen, white, lgreen_s, ed, red
def get_clip():
View
@@ -1,9 +0,0 @@
-#!/usr/bin/env bash
-
-CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
-chmod +x ${CWD}/cloudi.py
-echo \#Start alias for Cloudi >>~/.bashrc
-echo alias\ d\="$CWD/cloudi.py" >>~/.bashrc
-echo \#End alias for Cloudi >>~/.bashrc
-echo Installation finished.
View
@@ -0,0 +1,14 @@
+from distutils.core import setup
+
+setup(
+ name='cloudi',
+ version='0.4.0',
+ author='Tevin Zhang',
+ author_email='mail2tevin@gmail.com',
+ packages=['cloudi', ],
+ scripts=['cloudi/d', ],
+ url='https://github.com/Tevino/cloudi',
+ license='MIT',
+ description='Convenient online dictionary for command line users.',
+ long_description=open('README').read(),
+)

0 comments on commit 296094e

Please sign in to comment.