forked from RedHat-Israel/ROSE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
30 lines (25 loc) · 1009 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
import subprocess
from distutils.core import setup
from distutils.command import sdist
class rose_sdist(sdist.sdist):
def run(self):
self.generate_files()
sdist.sdist.run(self)
def generate_files(self):
with open('requirements.txt', 'w') as f:
f.write("# Generated automatically from Pipfile - do not edit!\n")
f.flush()
subprocess.check_call(['pipenv', 'lock', '--requirements'],
stdout=f)
setup(name='rose-project',
version='0.1',
license="GNU GPLv2+",
description="game",
packages=['rose', 'rose.server', 'rose.client', 'rose.common'],
package_data={'rose': ['res/*/*.png']},
author='Yaniv Bronhaim',
author_email='ybronhei@redhat.com',
url="https://github.com/emesika/RaananaTiraProject",
scripts=["rose-client", "rose-server", "rose-admin"],
data_files=[('requirements.txt', ['requirements.txt'])],
cmdclass={'sdist': rose_sdist})