2024-12-10 21:05:37 +03:00
|
|
|
import os
|
2016-04-02 00:42:22 +03:00
|
|
|
from setuptools import setup
|
|
|
|
|
2024-12-10 21:05:37 +03:00
|
|
|
with open('requirements.txt') as f:
|
|
|
|
required = f.read().splitlines()
|
|
|
|
|
2016-04-02 00:42:22 +03:00
|
|
|
setup(
|
|
|
|
name='SWSCloudCore',
|
2016-12-07 02:20:26 +03:00
|
|
|
version='2.7.10',
|
2016-04-02 03:07:08 +03:00
|
|
|
author='Vyacheslav Anzhiganov',
|
|
|
|
author_email='hello@anzhiganov.com',
|
|
|
|
packages=[
|
2016-06-11 14:20:56 +03:00
|
|
|
# API
|
2016-06-09 03:09:58 +03:00
|
|
|
'SWSCloudAPI',
|
|
|
|
'SWSCloudAPI.API',
|
2016-06-12 02:54:08 +03:00
|
|
|
'SWSCloudServerAPI',
|
|
|
|
'SWSCloudServerAPI.ServerAPI',
|
2016-06-11 14:20:56 +03:00
|
|
|
# Core
|
2016-04-02 03:07:08 +03:00
|
|
|
'SWSCloudCore',
|
|
|
|
'SWSCloudCore.controllers',
|
2016-04-02 03:13:48 +03:00
|
|
|
'SWSCloudCore.controllers.administrators',
|
2016-04-02 03:07:08 +03:00
|
|
|
'SWSCloudCore.controllers.billing',
|
|
|
|
'SWSCloudCore.controllers.common',
|
|
|
|
'SWSCloudCore.controllers.containers',
|
|
|
|
'SWSCloudCore.controllers.datacenters',
|
|
|
|
'SWSCloudCore.controllers.ips',
|
|
|
|
'SWSCloudCore.controllers.kb',
|
|
|
|
'SWSCloudCore.controllers.payments',
|
2016-05-27 09:46:22 +03:00
|
|
|
'SWSCloudCore.controllers.plans',
|
2016-04-02 03:07:08 +03:00
|
|
|
'SWSCloudCore.controllers.servers',
|
|
|
|
'SWSCloudCore.controllers.settings',
|
|
|
|
'SWSCloudCore.controllers.tasks',
|
|
|
|
'SWSCloudCore.controllers.teams',
|
|
|
|
'SWSCloudCore.controllers.user_settings',
|
|
|
|
'SWSCloudCore.controllers.users',
|
2016-05-22 13:05:21 +03:00
|
|
|
'SWSCloudCore.controllers.vms',
|
2016-06-11 14:20:56 +03:00
|
|
|
# Web
|
2016-06-14 08:20:26 +03:00
|
|
|
'SWSCloudWeb',
|
2016-06-12 02:54:08 +03:00
|
|
|
'SWSCloudWeb.views',
|
|
|
|
'SWSCloudWeb.views.account',
|
2016-10-17 03:35:52 +03:00
|
|
|
'SWSCloudWeb.views.bills',
|
2016-10-17 03:57:18 +03:00
|
|
|
'SWSCloudWeb.views.compute',
|
2016-10-17 03:35:52 +03:00
|
|
|
'SWSCloudWeb.views.compute.containers',
|
|
|
|
'SWSCloudWeb.views.compute.vms',
|
2016-06-12 02:54:08 +03:00
|
|
|
'SWSCloudWeb.views.payments',
|
|
|
|
'SWSCloudWeb.views.settings',
|
|
|
|
'SWSCloudWeb.views.support',
|
2016-06-14 08:12:52 +03:00
|
|
|
'SWSCloudWeb.views.tasks',
|
|
|
|
# Administrator
|
2016-06-14 08:24:39 +03:00
|
|
|
'SWSCloudAdministrator',
|
2016-06-14 08:12:52 +03:00
|
|
|
'SWSCloudAdministrator.Administrator',
|
2016-10-17 03:52:10 +03:00
|
|
|
'SWSCloudAdministrator.Administrator.compute',
|
2016-10-17 03:35:52 +03:00
|
|
|
# StatisticsClient
|
|
|
|
'SWSStatisticsClient',
|
2016-04-02 03:07:08 +03:00
|
|
|
],
|
|
|
|
package_data={
|
2016-06-12 02:54:08 +03:00
|
|
|
'SWSCloudWeb': [
|
2016-05-22 13:05:21 +03:00
|
|
|
# Static files
|
2016-04-02 03:07:08 +03:00
|
|
|
'static/css/*.css',
|
|
|
|
'static/images/*.png',
|
|
|
|
'static/images/cloudns/*.png',
|
|
|
|
'static/images/control/*.png',
|
|
|
|
'static/images/payment/*.png',
|
|
|
|
'static/images/social/*.png',
|
|
|
|
'static/images/promo/*.png',
|
|
|
|
'static/js/*.js',
|
|
|
|
'static/js/foundation/*.js',
|
|
|
|
'static/js/vendor/*.js',
|
2016-10-17 03:35:52 +03:00
|
|
|
# New homepage
|
|
|
|
'static/assets/css/*.css',
|
|
|
|
'static/assets/img/*.png',
|
2016-10-20 05:07:21 +03:00
|
|
|
'static/assets/img/testimonials/*.png',
|
|
|
|
'static/assets/img/testimonials/*.jpg',
|
2016-10-17 03:35:52 +03:00
|
|
|
'static/assets/js/*.js',
|
2016-05-22 13:05:21 +03:00
|
|
|
# Templates
|
2016-04-02 03:07:08 +03:00
|
|
|
'templates/*.html',
|
2016-06-14 08:05:05 +03:00
|
|
|
'templates/default/*.html',
|
2016-10-17 03:35:52 +03:00
|
|
|
'templates/default/billing/*.html',
|
|
|
|
'templates/default/compute/containers/*.html',
|
|
|
|
'templates/default/compute/vms/*.html',
|
2016-06-14 08:05:05 +03:00
|
|
|
'templates/default/documents/*.html',
|
|
|
|
'templates/default/homepage/*.html',
|
|
|
|
'templates/default/id/*.html',
|
|
|
|
'templates/default/payment/*.html',
|
|
|
|
'templates/default/payment/robokassa/*.html',
|
|
|
|
'templates/default/support/*.html',
|
|
|
|
'templates/default/tasks/*.html',
|
|
|
|
'templates/email/simple/*.html',
|
|
|
|
'templates/email/simple/*.css',
|
2016-10-17 03:35:52 +03:00
|
|
|
# GoCloud2016
|
|
|
|
'templates/gocloud2016/layouts/*.html',
|
|
|
|
'templates/gocloud2016/macros/*.html',
|
|
|
|
'templates/gocloud2016/pages/*.html',
|
2016-12-07 02:20:26 +03:00
|
|
|
'templates/gocloud2016/pages/*/*.html',
|
2016-06-15 02:29:43 +03:00
|
|
|
# Errors
|
2016-06-14 08:05:05 +03:00
|
|
|
'templates/errors/*.html',
|
|
|
|
],
|
|
|
|
'SWSCloudAdministrator': [
|
|
|
|
# Static files
|
|
|
|
'static/css/*.css',
|
|
|
|
'static/images/*.png',
|
|
|
|
'static/images/cloudns/*.png',
|
|
|
|
'static/images/control/*.png',
|
|
|
|
'static/images/payment/*.png',
|
|
|
|
'static/images/social/*.png',
|
|
|
|
'static/images/promo/*.png',
|
|
|
|
'static/js/*.js',
|
|
|
|
'static/js/foundation/*.js',
|
|
|
|
'static/js/vendor/*.js',
|
|
|
|
#
|
2016-04-02 03:07:08 +03:00
|
|
|
'templates/administrator/*.html',
|
2016-11-07 09:28:03 +03:00
|
|
|
'templates/administrator/compute/containers/*.html',
|
|
|
|
'templates/administrator/compute/vms/*.html',
|
2016-04-03 19:10:18 +03:00
|
|
|
'templates/administrator/datacenters/*.html',
|
2016-05-22 13:05:21 +03:00
|
|
|
'templates/administrator/email/*.html',
|
2016-04-03 19:10:18 +03:00
|
|
|
'templates/administrator/ips/*.html',
|
2016-05-22 13:05:21 +03:00
|
|
|
'templates/administrator/plans/*.html',
|
2016-04-03 19:10:18 +03:00
|
|
|
'templates/administrator/servers/*.html',
|
2016-04-02 03:07:08 +03:00
|
|
|
'templates/administrator/settings/*.html',
|
2016-04-03 19:10:18 +03:00
|
|
|
'templates/administrator/settings/messages/*.html',
|
2016-06-01 22:33:18 +03:00
|
|
|
'templates/administrator/tasks/*.html',
|
2016-04-02 03:07:08 +03:00
|
|
|
'templates/administrator/users/*.html',
|
2016-04-03 19:10:18 +03:00
|
|
|
'templates/administrator/wiki/*.html',
|
|
|
|
'templates/administrator/wiki/article/*.html',
|
|
|
|
'templates/administrator/wiki/category/*.html',
|
2016-06-14 08:05:05 +03:00
|
|
|
# Errors
|
2016-04-03 19:10:18 +03:00
|
|
|
'templates/errors/*.html',
|
2016-06-14 08:05:05 +03:00
|
|
|
],
|
2016-04-02 03:07:08 +03:00
|
|
|
},
|
|
|
|
scripts=[
|
2016-05-10 02:42:07 +03:00
|
|
|
'cloud-db-init.py',
|
|
|
|
'cloud-settings.py',
|
2016-05-10 02:44:22 +03:00
|
|
|
'cloud-settings-init.py',
|
|
|
|
'cloud-runserver.py',
|
2016-06-15 02:29:43 +03:00
|
|
|
'cloud-runserver-admin.py',
|
2016-04-03 19:10:18 +03:00
|
|
|
# accounts
|
2016-05-10 02:44:22 +03:00
|
|
|
'cloud-admin-add.py',
|
|
|
|
# 'swscloud-admin-delete.py',
|
|
|
|
'cloud-admin-ls.py',
|
|
|
|
'cloud-admin-password.py',
|
2016-04-03 19:10:18 +03:00
|
|
|
# datacenters
|
2016-05-10 02:42:07 +03:00
|
|
|
'cloud-dc-add.py',
|
2016-05-10 02:44:22 +03:00
|
|
|
'cloud-dc-ls.py',
|
2016-04-03 19:10:18 +03:00
|
|
|
# servers
|
2016-05-10 02:44:22 +03:00
|
|
|
'cloud-server-add.py',
|
|
|
|
'cloud-server-ls.py',
|
2016-05-27 09:06:17 +03:00
|
|
|
# billing
|
|
|
|
'cloud-cron-balance.py',
|
2016-04-02 03:07:08 +03:00
|
|
|
],
|
2024-12-10 21:05:37 +03:00
|
|
|
install_requires=required
|
2016-04-02 00:42:22 +03:00
|
|
|
)
|