Last active
August 29, 2015 14:04
-
-
Save GaretJax/03f0caad9eca351191f4 to your computer and use it in GitHub Desktop.
pm
This file contains hidden or 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
| #======================================================================= | |
| # Copyright (c) 2014 Baptiste Wicht | |
| # Distributed under the terms of the MIT License. | |
| # (See accompanying file LICENSE or copy at | |
| # http://opensource.org/licenses/MIT) | |
| #======================================================================= | |
| import os | |
| from setuptools import setup, find_packages | |
| from setuptools.command.install import install | |
| from setuptools.command.develop import develop | |
| class Friendly(object): | |
| def run(self): | |
| super(Friendly, self).run() | |
| print("") | |
| print("=======================================================") | |
| print("To use the pcd command, you should add the" | |
| "following function in your shell (bash or zsh):") | |
| print("function pcd { dir=`pcdi $1` ; if (( $? == 0 )) ; " | |
| "then cd $dir; fi ; }") | |
| print("=======================================================") | |
| print("") | |
| class DevelopCommand(Friendly, develop): | |
| pass | |
| class InstallCommand(Friendly, install): | |
| pass | |
| setup( | |
| name='pm', | |
| version='0.1.1', | |
| description='Command-line utility to manage development projects', | |
| author='Baptiste Wicht', | |
| author_email='baptiste.wicht@gmail.com', | |
| url='https://github.com/wichtounet/pm', | |
| download_url='https://github.com/wichtounet/pm/tarball/0.1.1', | |
| license='MIT', | |
| packages=find_packages(), | |
| package_dir = {'pm': 'pm'}, | |
| entry_points = { | |
| 'console_scripts': [ | |
| 'pcdi = pm.scripts.pcd:main', | |
| 'pm = pm.scripts.base:main', | |
| ] | |
| }, | |
| cmdclass={ | |
| 'install': InstallCommand, | |
| 'develop': DevelopCommand, | |
| }, | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment