-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·34 lines (29 loc) · 962 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
33
34
#!/usr/bin/env python
import setuptools
try:
from setupext_janitor import janitor
CleanCommand = janitor.CleanCommand
except ImportError:
CleanCommand = None
cmd_classes = {}
if CleanCommand is not None:
cmd_classes['clean'] = CleanCommand
def find_subpackages(package):
packages = [package]
for subpackage in setuptools.find_packages(package):
packages.append("{0}.{1}".format(package, subpackage))
return packages
setuptools.setup(name="azure_web_img_dwnszr",
version="0.1",
description="Azure Function image downsizer with metadata file creation for web images",
url="",
author="Mikael Weaver",
packages=find_subpackages("azure_web_img_dwnszr"),
license='MIT',
setup_requires=['setupext_janitor'],
cmdclass=cmd_classes,
entry_points={
# normal parameters, ie. console_scripts[]
'distutils.commands': [
' clean = setupext_janitor.janitor:CleanCommand']
})