diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-21 15:30:02 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-21 15:30:02 -0400 |
commit | a57e66382d1e831ddc552c26632f03ef2d250b93 (patch) | |
tree | b87744eaa8634ac7feca277f722d75f955c062de | |
parent | 2147523a89156236a3f70c2ac70e2c8304e295f3 (diff) | |
download | purge_path-a57e66382d1e831ddc552c26632f03ef2d250b93.tar.gz |
Add versioning, fix setup
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | purge_path/__init__.py | 1 | ||||
-rwxr-xr-x | purge_path/purge_path.py | 7 | ||||
-rw-r--r-- | purge_path/version.py | 1 | ||||
-rw-r--r-- | setup.py | 3 |
5 files changed, 12 insertions, 3 deletions
@@ -1,2 +1,5 @@ *__pycache__* *.swp +dist/ +build/ +RELEASE-VERSION diff --git a/purge_path/__init__.py b/purge_path/__init__.py index e69de29..a3f7a23 100644 --- a/purge_path/__init__.py +++ b/purge_path/__init__.py @@ -0,0 +1 @@ +from . import purge_path diff --git a/purge_path/purge_path.py b/purge_path/purge_path.py index b752da4..322925b 100755 --- a/purge_path/purge_path.py +++ b/purge_path/purge_path.py @@ -2,7 +2,8 @@ import os import sys -if __name__ in '__main__': + +def main(): ARGS = sys.argv[1:] PATH = os.environ['PATH'] PATH_NEW = [] @@ -14,3 +15,7 @@ if __name__ in '__main__': PATH_NEW.append(path) print("{0}".format(":".join(PATH_NEW))) + + +if __name__ in '__main__': + main() diff --git a/purge_path/version.py b/purge_path/version.py new file mode 100644 index 0000000..5becc17 --- /dev/null +++ b/purge_path/version.py @@ -0,0 +1 @@ +__version__ = "1.0.0" @@ -6,7 +6,7 @@ entry_points = {} package_data = {} entry_points['console_scripts'] = [ - 'purge_path = purge_path:main', + 'purge_path = purge_path.purge_path:main', ] package_data[''] = ['*.txt', '*.md'] @@ -28,7 +28,6 @@ setup( name=NAME, version=VERSION, description='A small PATH manipulator', - requires=[''], provides=[NAME], author='Joseph Hunkeler', author_email='jhunk@stsci.edu', |