mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Initial setup script.
This commit is contained in:
parent
932b1ed620
commit
75ea4a1cda
9
MANIFEST.in
Normal file
9
MANIFEST.in
Normal file
@ -0,0 +1,9 @@
|
||||
recursive-include lib *.py
|
||||
recursive-include lib/static *.ico
|
||||
recursive-include lib/templates *.html
|
||||
recursive-exclude lib/settings local_settings.py
|
||||
include *.py *.txt *.md
|
||||
include MANIFEST.in
|
||||
include COPYING
|
||||
prune lib/public
|
||||
prune lib/project
|
||||
@ -14,3 +14,18 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible Commander. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
__version__ = '1.2-b1'
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
__all__ = ['__version__']
|
||||
|
||||
def manage():
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lib.settings')
|
||||
from django.core.management import execute_from_command_line
|
||||
if len(sys.argv) >= 2 and sys.argv[1] in ('version', '--version'):
|
||||
sys.stdout.write('acom-%s\n' % __version__)
|
||||
else:
|
||||
execute_from_command_line(sys.argv)
|
||||
|
||||
@ -1,9 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lib.settings')
|
||||
from django.core.management import execute_from_command_line
|
||||
execute_from_command_line(sys.argv)
|
||||
from lib import manage
|
||||
manage()
|
||||
|
||||
79
setup.py
Executable file
79
setup.py
Executable file
@ -0,0 +1,79 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
#from distutils.core import setup
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
from lib import __version__
|
||||
|
||||
setup(
|
||||
name='ansible-commander',
|
||||
version=__version__,
|
||||
author='AnsibleWorks, Inc.',
|
||||
author_email='support@ansibleworks.com',
|
||||
description='Ansible REST API and background job execution.',
|
||||
long_description=file('README.md', 'rb').read(),
|
||||
license='Proprietary',
|
||||
keywords='ansible',
|
||||
url='http://github.com/ansible/ansible-commander',
|
||||
packages=['lib'], # FIXME: Rename to acom?
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
install_requires=[
|
||||
'Django>=1.5',
|
||||
'django-celery',
|
||||
'django-devserver',
|
||||
'django-extensions',
|
||||
'django-filter',
|
||||
'django-jsonfield',
|
||||
'djangorestframework',
|
||||
'pexpect',
|
||||
'python-dateutil',
|
||||
'PyYAML',
|
||||
'South',
|
||||
],
|
||||
setup_requires=[],
|
||||
#tests_require=[
|
||||
# 'Django>=1.5',
|
||||
# 'django-celery',
|
||||
# 'django-devserver',
|
||||
# 'django-extensions',
|
||||
# 'django-filter',
|
||||
# 'django-jsonfield',
|
||||
# 'django-setuptest',
|
||||
# 'djangorestframework',
|
||||
# 'pexpect',
|
||||
# 'python-dateutil',
|
||||
# 'PyYAML',
|
||||
# 'South',
|
||||
#],
|
||||
#test_suite='test_suite.TestSuite',
|
||||
classifiers=[
|
||||
'Development Status :: 4 - Beta',
|
||||
'Environment :: Web Environment',
|
||||
'Framework :: Django',
|
||||
'Intended Audience :: Developers',
|
||||
'Intended Audience :: Information Technology',
|
||||
'Intended Audience :: System Administrators'
|
||||
'License :: Other/Proprietary License',
|
||||
'Natural Language :: English',
|
||||
'Operating System :: OS Independent',
|
||||
'Operating System :: POSIX',
|
||||
'Programming Language :: Python',
|
||||
'Topic :: System :: Installation/Setup',
|
||||
'Topic :: System :: Systems Administration',
|
||||
],
|
||||
entry_points = {
|
||||
'console_scripts': [
|
||||
'acom-manage = lib:manage',
|
||||
],
|
||||
},
|
||||
options={
|
||||
'egg_info': {
|
||||
'tag_build': '-dev',
|
||||
},
|
||||
'aliases': {
|
||||
'dev_build': 'clean --all egg_info sdist',
|
||||
'release_build': 'clean --all egg_info -b "" sdist',
|
||||
},
|
||||
},
|
||||
)
|
||||
Loading…
x
Reference in New Issue
Block a user