-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename files so the extension matches the content.
- Loading branch information
Michael Howitz
committed
Jun 15, 2018
1 parent
7253bd6
commit 93f34df
Showing
12 changed files
with
29 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
include *.py | ||
include *.txt | ||
include *.rst | ||
include buildout.cfg | ||
recursive-include src *.py | ||
recursive-include src *.txt | ||
recursive-include src *.rst |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ def text(*args, **kwargs): | |
# http://docs.python.org/dist/meta-data.html | ||
tmp = [] | ||
for a in args: | ||
if a.endswith('.txt'): | ||
if a.endswith('.rst'): | ||
f = open(os.path.join(*a.split('/'))) | ||
tmp.append(f.read()) | ||
f.close() | ||
|
@@ -66,7 +66,7 @@ def text(*args, **kwargs): | |
res = ''.join(tmp) | ||
out = kwargs.get('out') | ||
if out is True: | ||
out = 'TEST_THIS_REST_BEFORE_REGISTERING.txt' | ||
out = 'TEST_THIS_REST_BEFORE_REGISTERING.rst' | ||
if out: | ||
f = open(out, 'w') | ||
f.write(res) | ||
|
@@ -89,12 +89,12 @@ def text(*args, **kwargs): | |
zip_safe=False, | ||
author='Gary Poster', | ||
author_email='[email protected]', | ||
description=text("README.txt"), | ||
long_description=text('src/zc/relation/README.txt', | ||
'src/zc/relation/tokens.txt', | ||
'src/zc/relation/searchindex.txt', | ||
'src/zc/relation/optimization.txt', | ||
'src/zc/relation/CHANGES.txt'), | ||
description=text("README.rst"), | ||
long_description=text('src/zc/relation/README.rst', | ||
'src/zc/relation/tokens.rst', | ||
'src/zc/relation/searchindex.rst', | ||
'src/zc/relation/optimization.rst', | ||
'src/zc/relation/CHANGES.rst'), | ||
classifiers=[ | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters