Skip to content

Commit 29b519f

Browse files
author
willmcgugan@gmail.com
committed
version bump, made commands use entry_points
1 parent 01b1818 commit 29b519f

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

fs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
"""
1717

18-
__version__ = "0.5.0"
18+
__version__ = "0.5.1"
1919
__author__ = "Will McGugan (will@willmcgugan.com)"
2020

2121
# provide these by default so people can use 'fs.path.basename' etc.

setup.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
#!/usr/bin/env python
22

3-
#from distribute_setup import use_setuptools
4-
#use_setuptools()
5-
63
from setuptools import setup
74
import sys
85
PY3 = sys.version_info >= (3,)
96

10-
VERSION = "0.5.1-dev"
7+
VERSION = "0.5.1"
118

129
COMMANDS = ['fscat',
13-
'fscp',
1410
'fsinfo',
1511
'fsls',
1612
'fsmv',
@@ -22,6 +18,9 @@
2218
'fsmount']
2319

2420

21+
CONSOLE_SCRIPTS = ['{0} = fs.commands.{0}:run'.format(command)
22+
for command in COMMANDS]
23+
2524
classifiers = [
2625
"Development Status :: 5 - Production/Stable",
2726
'Intended Audience :: Developers',
@@ -50,8 +49,6 @@
5049
license="BSD",
5150
author="Will McGugan",
5251
author_email="will@willmcgugan.com",
53-
#url="http://code.google.com/p/pyfilesystem/",
54-
#download_url="http://code.google.com/p/pyfilesystem/downloads/list",
5552
url="http://pypi.python.org/pypi/fs/",
5653
platforms=['any'],
5754
packages=['fs',
@@ -68,7 +65,7 @@
6865
'fs.contrib.tahoelafs',
6966
'fs.commands'],
7067
package_data={'fs': ['tests/data/*.txt']},
71-
scripts=['fs/commands/%s' % command for command in COMMANDS],
68+
entry_points={"console_scripts": CONSOLE_SCRIPTS},
7269
classifiers=classifiers,
7370
**extra
7471
)

0 commit comments

Comments
 (0)