Skip to content

Commit 51dad3e

Browse files
committed
update README/setup
1 parent 6582874 commit 51dad3e

File tree

2 files changed

+31
-28
lines changed

2 files changed

+31
-28
lines changed

README.rst

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
What The Patch!?
22
================
33

4-
What The Patch!? is a Python 2 library for parsing patch files.
5-
It's only purpose is to read a patch file and get it into some
6-
usable form by other programs.
4+
What The Patch!? is a library for parsing patch files. It's only purpose is to
5+
read a patch file and get it into some usable form by other programs.
76

87
Features
98
---------
@@ -63,7 +62,8 @@ Let us say we have a patch file containing some changes, aptly named
6362
Parsing
6463
-------
6564

66-
Here is how we would use What The Patch!? in Python to get the changeset for each diff in the patch:
65+
Here is how we would use What The Patch!? in Python to get the changeset for
66+
each diff in the patch:
6767

6868
.. code-block:: python
6969
@@ -74,29 +74,30 @@ Here is how we would use What The Patch!? in Python to get the changeset for eac
7474
>>> for diff in whatthepatch.parse_patch(text):
7575
... print(diff)
7676
...
77-
diff(header=header(index_path=None,
78-
old_path='lao',
79-
old_version='2012-12-26 23:16:54.000000000 -0600',
80-
new_path='tzu',
81-
new_version='2012-12-26 23:16:50.000000000 -0600'
82-
),
77+
diff(header=header(
78+
index_path=None,
79+
old_path='lao',
80+
old_version='2012-12-26 23:16:54.000000000 -0600',
81+
new_path='tzu',
82+
new_version='2012-12-26 23:16:50.000000000 -0600'
83+
),
8384
changes=[
84-
(1, None, 'The Way that can be told of is not the eternal Way;'),
85-
(2, None, 'The name that can be named is not the eternal name.'),
86-
(3, 1, 'The Nameless is the origin of Heaven and Earth;'),
87-
(4, None, 'The Named is the mother of all things.'),
88-
(None, 2, 'The named is the mother of all things.'),
89-
(None, 3, ''),
90-
(5, 4, 'Therefore let there always be non-being,'),
91-
(6, 5, ' so we may see their subtlety,'),
92-
(7, 6, 'And let there always be being,'),
93-
(9, 8, 'The two are the same,'),
94-
(10, 9, 'But after they are produced,'),
95-
(11, 10, ' they have different names.'),
96-
(None, 11, 'They both may be called deep and profound.'),
97-
(None, 12, 'Deeper and more profound,'),
98-
(None, 13, 'The door of all subtleties!')
99-
]
85+
(1, None, 'The Way that can be told of is not the eternal Way;'),
86+
(2, None, 'The name that can be named is not the eternal name.'),
87+
(3, 1, 'The Nameless is the origin of Heaven and Earth;'),
88+
(4, None, 'The Named is the mother of all things.'),
89+
(None, 2, 'The named is the mother of all things.'),
90+
(None, 3, ''),
91+
(5, 4, 'Therefore let there always be non-being,'),
92+
(6, 5, ' so we may see their subtlety,'),
93+
(7, 6, 'And let there always be being,'),
94+
(9, 8, 'The two are the same,'),
95+
(10, 9, 'But after they are produced,'),
96+
(11, 10, ' they have different names.'),
97+
(None, 11, 'They both may be called deep and profound.'),
98+
(None, 12, 'Deeper and more profound,'),
99+
(None, 13, 'The door of all subtleties!')
100+
]
100101
)
101102
102103
*Edited to show structure of the results*

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
classifiers=[
2424
"Programming Language :: Python",
2525
"Programming Language :: Python :: 2",
26+
"Programming Language :: Python :: 3",
2627
"Operating System :: OS Independent",
27-
"License :: OSI Approved :: BSD License",
28-
"Development Status :: 2 - Pre-Alpha",
28+
"License :: OSI Approved :: MIT License",
29+
"Development Status :: 3 - Alpha",
30+
"Intended Audience :: Developers",
2931
"Intended Audience :: Science/Research",
3032
"Topic :: Software Development",
3133
"Topic :: Software Development :: Libraries :: Python Modules",

0 commit comments

Comments
 (0)