Skip to content

Commit 8a17e05

Browse files
committed
Merge branch 'release/2.2.0'
Conflicts: textile/core.py textile/tests/__init__.py
2 parents cb33419 + 80afe66 commit 8a17e05

11 files changed

Lines changed: 387 additions & 281 deletions

File tree

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: python
2+
python:
3+
- "2.6"
4+
- "2.7"
5+
- "3.2"
6+
- "3.3"
7+
- "3.4"
8+
# command to install dependencies
9+
install:
10+
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]] ; then pip install ordereddict; fi
11+
- pip install -r requirements.txt
12+
# command to run tests
13+
script: nosetests

CONTRIBUTORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Dennis Burke
2+
Radek Czajka
23
Roberto A. F. De Almeida
34
Matt Layman
45
Mark Pilgrim

requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
nose==1.3.4
2+
coverage==3.7.1
3+
html5lib==0.999
4+
regex==2014.10.07
5+
Pillow==2.6.0

setup.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from setuptools import setup, find_packages
2+
import os
23
import sys
34

4-
from textile import __version__
5-
6-
install_requires = []
5+
install_requires = ['regex']
76

87
try:
98
from collections import OrderedDict
@@ -15,9 +14,17 @@
1514
'tox',
1615
])
1716

17+
def get_version():
18+
basedir = os.path.dirname(__file__)
19+
with open(os.path.join(basedir, 'textile/version.py')) as f:
20+
variables = {}
21+
exec(f.read(), variables)
22+
return variables.get('VERSION')
23+
raise RuntimeError('No version info found.')
24+
1825
setup(
1926
name='textile',
20-
version=__version__,
27+
version=get_version(),
2128
description='Textile processing for python.',
2229
url='http://github.com/ikirudennis/python-textile',
2330
packages=find_packages(),

textile/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
from .functions import textile, textile_restricted, Textile
1+
from __future__ import unicode_literals
2+
3+
from .core import textile, textile_restricted, Textile
4+
from .version import VERSION
25

36
__all__ = ['textile', 'textile_restricted']
47

5-
__version__ = '2.1.8'
8+
__version__ = VERSION

0 commit comments

Comments
 (0)