[Python-modules-commits] [fake-factory] 11/13: Include the python major version in the console script name
Christopher Baines
cbaines-guest at moszumanska.debian.org
Sun Feb 7 21:14:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
cbaines-guest pushed a commit to branch master
in repository fake-factory.
commit fbeba5d84ae427cdeb25ce833b08a5d15a6d7cda
Author: Christopher Baines <mail at cbaines.net>
Date: Sun Feb 7 20:48:34 2016 +0000
Include the python major version in the console script name
To avoid a conflict between the binary packages.
---
setup.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index d89f76f..ae671f7 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,7 @@
import os
import io
+import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
@@ -28,7 +29,7 @@ setup(
description="Faker is a Python package that generates fake data for you.",
long_description=README + '\n\n' + NEWS,
entry_points={
- 'console_scripts': ['faker=faker.cli:execute_from_command_line'],
+ 'console_scripts': ['faker%d=faker.cli:execute_from_command_line' % sys.version_info[:1]],
},
classifiers=[
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/fake-factory.git
More information about the Python-modules-commits
mailing list