-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
33 lines (28 loc) · 1.11 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
# Copyright (c) 2022, Michael McFadden & Radio Free Asia
# GNU GENERAL PUBLIC LICENSE Version 2
# See file LICENCE or visit https://github.com/flipmcf/CasterPak/blob/master/LICENSE
from distutils.core import setup
from setuptools import setup
from setuptools.command.egg_info import egg_info
class egg_info_ex(egg_info):
"""Includes license file into `.egg-info` folder."""
def run(self):
# don't duplicate license into `.egg-info` when building a distribution
if not self.distribution.have_run.get('install', True):
# `install` command is in progress, copy license
self.mkpath(self.egg_info)
self.copy_file('LICENSE', self.egg_info)
egg_info.run(self)
setup(name='CasterPak',
version='0.8',
author="Michael McFadden (flipmcf)",
author_email="[email protected]",
py_modules=['casterpak'],
license_files = ('LICENSE',),
cmdclass = {'egg_info': egg_info_ex},
install_requires=['flask',
'',
'requests',
'gunicorn',
]
)