-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (31 loc) · 1.43 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import re
import os
from setuptools import setup, find_packages
def get_version(package):
"""Return package version as listed in `__version__` in `init.py`."""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
setup(
name='sample-python',
version=get_version('sample'),
description='A Sample project for Python',
url='https://github.com/NaveenBellary/sample-python.git',
# Entry points provide cross-platform support and allow pip to create the appropriate form of executable for
# the target platform.
# http://python-packaging.readthedocs.io/en/latest/command-line-scripts.html#the-console-scripts-entry-point
entry_points={
'console_scripts': ['greet=sample.command_line:main']
},
# If there are any packages in the project that need to be installed, specify them here or use find_packages
# module to let it do for you
# http://setuptools.readthedocs.io/en/latest/setuptools.html#using-find-packages
packages=find_packages(exclude=["sample.tests"]),
# List all the dependencies here. These will be installed by pip when the project is being installed
# https://packaging.python.org/discussions/install-requires-vs-requirements/#install-requires
install_requires=['pytest',
'mock',
'pep8',
'flake8',
'coverage',
'pylint==1.7.2']
)