Skip to content

Commit 3b46f63

Browse files
committed
Port changes to rst, fix setup.py, add manifest
1 parent ec1e839 commit 3b46f63

File tree

4 files changed

+39
-28
lines changed

4 files changed

+39
-28
lines changed

CHANGES.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

CHANGES.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Changes
2+
=======
3+
4+
1.0 (unreleased)
5+
----------------
6+
7+
* Nothing changed yet.
8+
9+
10+
0.3.1 (2013-12-11)
11+
------------------
12+
13+
* fix relative import in template tags
14+
15+
16+
0.3.0 (2013-12-11)
17+
------------------
18+
19+
* Rename package to django_babel
20+
21+
22+
0.2.3 (2013-12-11)
23+
------------------
24+
25+
* Rename package on PyPI
26+
* Use GitHub as source control

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include CHANGES.rst README.rst COPYGING
2+
recursive-include tests *
3+
recursive-include docs *
4+
global-exclude *.pyc
5+
global-exclode *.pyo
6+
prune docs/_build

setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3+
import os
34
import sys
5+
import codecs
46
from setuptools import setup, find_packages
57
from setuptools.command.test import test as TestCommand
68

79

8-
with open('README.md', 'rb') as fobj:
9-
readme = fobj.read()
10-
11-
12-
with open('CHANGES.md', 'rb') as fobj:
13-
history = fobj.read()
10+
def read(*parts):
11+
filename = os.path.join(os.path.dirname(__file__), *parts)
12+
with codecs.open(filename, encoding='utf-8') as fp:
13+
return fp.read()
1414

1515

1616
test_requires = [
@@ -50,7 +50,7 @@ def run_tests(self):
5050
setup(
5151
name='django-babel',
5252
description='Utilities for using Babel in Django',
53-
long_description=readme + '\n\n' + history,
53+
long_description=read('README.rst') + u'\n\n' + read('CHANGES.rst'),
5454
version='1.0-dev',
5555
license='BSD',
5656
author='Christopher Lenz',

0 commit comments

Comments
 (0)