-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·84 lines (74 loc) · 2.65 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import subprocess
from setuptools import find_packages, setup
from setuptools.command.install import install
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
class CustomInstall(install):
def run(self):
os.environ['HOME'] = '/tmp'
subprocess.check_call(['npm', 'install'])
subprocess.check_call([
'./node_modules/bower/bin/bower',
'install',
'--allow-root',
'--config.interactive=false'
])
subprocess.check_call(
['./node_modules/gulp/bin/gulp.js', 'build_static']
)
install.run(self)
setup(
name='python-django-ci_status',
version='0.0.1',
packages=find_packages(exclude=['ci_dashboard.tests', 'ci_dashboard.tests.*']),
package_data={
'ci_dashboard': [
'schema.json',
'templates/*.html',
'templates/ci_dashboard/*.html',
'static/ci_dashboard/javascripts/*.min.js',
'static/ci_dashboard/stylesheets/*.min.css',
]
},
data_files=[
('/etc/ci-status', ['config/settings.yaml']),
('/usr/share/ci-status/static/javascripts', [
'ci_dashboard/static/ci_dashboard/javascripts/application.min.js',
'ci_dashboard/static/ci_dashboard/javascripts/bootstrap.min.js',
]),
('/usr/share/ci-status/static/stylesheets', [
'ci_dashboard/static/ci_dashboard/stylesheets/application.min.css',
]),
('/usr/share/ci-status', [
'ci_dashboard/schema.json'
]),
],
entry_points={
'console_scripts': [
'ci-status=ci_dashboard.management.cli:main'
]
},
cmdclass={'install': CustomInstall},
license='Apache License 2.0',
description='Web application for CI system health and status tracking.',
long_description=README,
url='https://review.fuel-infra.org/#/admin/projects/fuel-infra/packages/python-django-ci-status', # noqa
author='Aliaksandr Buhayeu',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Utilities',
'Framework :: Django',
],
)