Fixes readline support on windows

Closes #60
This commit is contained in:
Manuel Ebert 2013-04-17 10:50:03 +02:00
parent c92339e4e2
commit 65aff0d75e
3 changed files with 10 additions and 4 deletions

View file

@ -6,6 +6,8 @@ Changelog
* [Improved] Installs pycrypto by default
* [Improved] Removed clint in favour of colorama
* [Fixed] Fixed a bug where showing tags failed when no tags are defined.
* [Fixed] Improvements to config parsing (Thanks [alapolloni](https://github.com/alapolloni))
* [Fixed] Fixes readline support on Windows
* [Fixed] Smaller fixes and typos
### 1.0.1 (March 12, 2013)

View file

@ -16,6 +16,10 @@ try:
from Crypto.Random import random, atfork
except ImportError:
pass
try:
import pyreadline as readline
except ImportError:
import readline
import hashlib
import getpass
try:

View file

@ -43,15 +43,15 @@ except ImportError:
from distutils.core import setup
import os
import sys
import re
if sys.argv[-1] == 'publish':
os.system("python setup.py bdist-egg upload")
os.system("python setup.py sdist upload")
sys.exit()
base_dir = os.path.dirname(os.path.abspath(__file__))
def get_version(filename="kerouac/__init__.py"):
def get_version(filename="jrnl/__init__.py"):
with open(os.path.join(base_dir, filename)) as initfile:
for line in initfile.readlines():
m = re.match("__version__ *= *['\"](.*)['\"]", line)
@ -67,7 +67,7 @@ setup(
"parsedatetime >= 1.1.2",
"colorama >= 0.2.5",
"pycrypto >= 2.6"
],
] + ["pyreadline >= 2.0"] if "win" in sys.platform else [],
long_description=__doc__,
entry_points={
'console_scripts': [
@ -88,7 +88,7 @@ setup(
],
# metadata for upload to PyPI
author = "Manuel Ebert",
author_email = "manuel@herelabs.com",
author_email = "manuel@hey.com",
license = "MIT License",
keywords = "journal todo todo.txt jrnl".split(),
url = "http://maebert.github.com/jrnl",