Skip to content

Commit a1b9e75

Browse files
committed
More on packaging
1 parent 1e4e835 commit a1b9e75

File tree

3 files changed

+47
-4
lines changed

3 files changed

+47
-4
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
recursive-include examples *.py
2+
recursive-include tests *.py

README

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,48 @@
1-
====
2-
pyth
3-
====
1+
========================================
2+
pyth - Python text markup and conversion
3+
========================================
44

5+
Pyth is intended to make it easy to convert marked-up text between different common formats.
56

6-
unit tests
7+
*Marked-up text* means text which has:
8+
9+
* Paragraphs
10+
* Headings
11+
* Bold, italic, and underlined text
12+
* Hyperlinks
13+
* Bullet lists
14+
* Simple tables
15+
* Very little else
16+
17+
18+
Formats I initially want to support are:
19+
20+
* xhtml
21+
* rtf
22+
* pdf (output)
23+
24+
25+
These three formats cover web, Word / OpenOffice, and print.
26+
27+
28+
Design principles
29+
=================
30+
31+
* Ignore unsupported information in input formats (e.g. page layout)
32+
* Ignore font issues -- output in a single font.
33+
* Ignore specific text sizes -- support relative sizes (bigger, littler) only. Output in a single base size.
34+
* Have no dependencies unless they are written in Python, and work
35+
* Make it easy to add support for new formats, by using an architecture based on *plugins* and *adapters*.
36+
37+
38+
39+
Examples
40+
========
41+
42+
See `http://github.com/brendonh/pyth/tree/master/examples/`
43+
44+
45+
Unit tests
746
==========
847

948
The sources contains some unit tests (written using python unittest

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
setup(name="pyth",
44
version="0.5",
55
packages = find_packages(),
6+
zip_safe = False,
67

78
description="Python text markup conversion",
89
author="Brendon Hogger",
910
author_email="brendonh@taizilla.com",
1011
url="http://wiki.github.com/brendonh/pyth",
12+
long_description=open('README').read(),
1113
)

0 commit comments

Comments
 (0)