-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
32 lines (25 loc) · 781 Bytes
/
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
"""Setup file for application."""
from setuptools import find_packages, setup
from setuptools import Command
from version import __version__
class VersionCommand(Command):
"""Custom command to print the version."""
description = 'print the version'
user_options = []
def initialize_options(self):
"""Override default one if needed"""
def finalize_options(self):
"""Override default one if needed"""
def run(self):
"""Custom function to print the version"""
print(__version__)
setup(
name='hello_world',
version=__version__,
cmdclass={'version': VersionCommand},
long_description=__doc__,
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=['Flask']
)