Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
125 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
*.un~ | ||
*.swp | ||
*.pyc | ||
dist | ||
pyshanb.egg-info |
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,9 @@ | ||
# PyShanb changelog | ||
|
||
## 2013-05-21 0.5.2 | ||
|
||
* 发布到 PyPI | ||
|
||
## 2013-03-16 0.5.1 | ||
|
||
* 新增加几个命令行参数([-i | -I] [-a | -A]) | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
include README.md LICENSE.txt ChangeLog.md requirements.txt pyshanb/pyshanb.conf |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env python | ||
"""The main entry point. Invoke as `shanbay' or `python -m pyshanb'. | ||
""" | ||
import sys | ||
from .pyshanb import main | ||
|
||
|
||
if __name__ == '__main__': | ||
sys.exit(main()) |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import os | ||
import sys | ||
|
||
import pyshanb | ||
|
||
try: | ||
from setuptools import setup | ||
except ImportError: | ||
from distutils.core import setup | ||
|
||
if sys.argv[-1] == 'publish': | ||
os.system('python setup.py sdist upload') | ||
sys.exit() | ||
|
||
requirements = [ | ||
'requests>=1.1.0' | ||
] | ||
|
||
packages = [ | ||
'pyshanb', | ||
] | ||
|
||
def long_description(): | ||
md =open('README.md').read() + '\n\n' + open('ChangeLog.md').read() | ||
return md | ||
|
||
setup( | ||
name='pyshanb', | ||
version=pyshanb.__version__, | ||
description=pyshanb.__doc__.strip(), | ||
long_description=long_description(), | ||
url='https://github.com/mozillazg/PyShanb', | ||
download_url='https://github.com/mozillazg/PyShanb', | ||
author=pyshanb.__author__, | ||
author_email='mozillazg101@gmail.com', | ||
license=pyshanb.__license__, | ||
packages=packages, | ||
package_data={'': ['LICENSE.txt'], 'pyshanb': ['*.conf']}, | ||
package_dir={'pyshanb': 'pyshanb'}, | ||
include_package_data=True, | ||
install_requires=requirements, | ||
# setup_requires=['sphinx'], | ||
zip_safe=False, | ||
entry_points={ | ||
'console_scripts': [ | ||
'shanbay = pyshanb.__main__:main', | ||
], | ||
}, | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.6', | ||
'Programming Language :: Python :: 2.7', | ||
'Environment :: Console', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Education', | ||
'License :: OSI Approved :: MIT License', | ||
], | ||
) |