Skip to content

Commit

Permalink
Release version 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
qazbnm456 committed Jan 20, 2017
1 parent e25c8bc commit aa2a937
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 12 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ include requirements.txt
include README.md
include README.rst
include LICENSE
include completion/*
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
- 0.6 -- Fix format problems within lots of commands
- 0.7 -- Code cleanup and move root commands into their command groups (such as container, image, network, and etc)
- 0.8 -- Addon feature works, but is still under heavy development.
- 0.8.1 -- Change name from 'Dokcer' to 'Tsaotun'.
- 0.8.2 -- Addon feature is close to stable.
- 0.8.3 -- Nevermind, just a typo fixed.
- 0.8.4 -- Nevermind, just a typo fixed.
- 0.9.0 -- Change name from 'Dokcer' to 'Tsaotun', and Addon feature is closer to stable (We have a sample [here](https://github.com/qazbnm456/toolbox)).

<a name="status"></a>
## Status quo
Expand All @@ -49,8 +46,6 @@ $HOME

- We now have a sample addon called [toolbox](https://github.com/qazbnm456/toolbox), and you can check it out to see how to write an addon on your own.

- **If you want auto-complete feature, you could use [bash completion for tsaotun](completion/tsaotun), taken and modified from docker one, or configure [argcomplete](https://github.com/kislyuk/argcomplete).**

<a name="feature"></a>
## Feature

Expand Down
37 changes: 32 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,34 @@
import codecs
import os
import re
import shutil
import platform

from setuptools import setup, find_packages
from setuptools import (setup, find_packages)
from setuptools.command.install import install

ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)


class PostInstallCommand(install):
"""Post-installation for installation mode"""

def run(self):
install.run(self)
print "Installing auto completion of tsaotun to",
sys = platform.system()
if sys == 'Darwin':
dest = os.path.join(
os.popen('brew --prefix').read()[:-1], 'etc', 'bash_completion.d', 'tsaotun')
print dest
shutil.copy(os.path.join(ROOT_DIR, 'completion', 'tsaotun'), dest)
elif sys == 'Linux':
dest = os.path.join(
'etc', 'bash_completion.d', 'tsaotun')
print dest
shutil.copy(os.path.join(ROOT_DIR, 'completion', 'tsaotun'), dest)
else: # Windows, etc.
print "... \n Warning: {} is currently not supported. Skipped.".format(sys)


def find_version(*file_paths):
Expand All @@ -28,6 +51,7 @@ def find_version(*file_paths):
return version_match.group(1)
raise RuntimeError('Unable to find version string')


def read_requirements(requirements):
"""Read the requirements from a requirements txt file"""
try:
Expand All @@ -47,8 +71,8 @@ def read_requirements(requirements):
author='Boik Su',
author_email='[email protected]',
url='https://github.com/qazbnm456/tsaotun',
download_url='https://codeload.github.com/qazbnm456/tsaotun/tar.gz/0.8.4',
keywords=['0.8.4'],
download_url='https://codeload.github.com/qazbnm456/tsaotun/tar.gz/0.9.0',
keywords=['0.9.0'],
packages=find_packages(),
install_requires=read_requirements('requirements.txt'),
entry_points="""
Expand All @@ -68,5 +92,8 @@ def read_requirements(requirements):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7'
]
],
cmdclass={
'install': PostInstallCommand,
}
)
2 changes: 1 addition & 1 deletion tsaotun/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""tsaotun version"""

__version__ = '0.8.4'
__version__ = '0.9.0'

0 comments on commit aa2a937

Please sign in to comment.