-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.1.1 — Rename to "in_place"
I could have sworn I had already checked PyPI for name conflicts...
- Loading branch information
Showing
11 changed files
with
42 additions
and
42 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,15 +1,15 @@ | ||
""" | ||
In-place file processing | ||
The ``inplace`` module provides Python classes for reading & writing a file | ||
The ``in_place`` module provides Python classes for reading & writing a file | ||
"in-place": data that you write ends up at the same filepath that you read | ||
from, and ``inplace`` takes care of all the necessary mucking about with | ||
from, and ``in_place`` takes care of all the necessary mucking about with | ||
temporary files for you. | ||
Visit <https://github.com/jwodder/inplace> for more information. | ||
""" | ||
|
||
__version__ = '0.1.0' | ||
__version__ = '0.1.1' | ||
__author__ = 'John Thorvald Wodder II' | ||
__author_email__ = '[email protected]' | ||
__license__ = 'MIT' | ||
|
@@ -123,7 +123,7 @@ def _mktemp(self, filepath): | |
""" | ||
fd, tmppath = tempfile.mkstemp( | ||
dir=os.path.dirname(filepath), | ||
prefix='._inplace-', | ||
prefix='._in_place-', | ||
) | ||
os.close(fd) | ||
return tmppath | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
import re | ||
from setuptools import setup | ||
|
||
with open(join(dirname(__file__), 'inplace.py')) as fp: | ||
with open(join(dirname(__file__), 'in_place.py')) as fp: | ||
for line in fp: | ||
m = re.search(r'^\s*__version__\s*=\s*([\'"])([^\'"]+)\1\s*$', line) | ||
if m: | ||
|
@@ -15,9 +15,9 @@ | |
long_desc = fp.read() | ||
|
||
setup( | ||
name='inplace', | ||
name='in_place', | ||
version=version, | ||
py_modules=['inplace'], | ||
py_modules=['in_place'], | ||
license='MIT', | ||
author='John Thorvald Wodder II', | ||
author_email='[email protected]', | ||
|
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
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