diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 29183fc46..000000000 --- a/MANIFEST.in +++ /dev/null @@ -1,8 +0,0 @@ -recursive-include galaxy *.py -recursive-include galaxy/static * -recursive-include galaxy/templates * -recursive-include galaxy/lib/site-packages * -recursive-include config * -include galaxy/importer/linters/yamllint.yaml -prune galaxy/static/js -prune galaxy/static/less diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 000000000..6b3913094 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,34 @@ +[metadata] +name = galaxy +author = Ansible, Inc. +author_email = support@ansible.com +description = Galaxy: Find, reuse and share the best Ansible content. +long_description = Galaxy is a web site and command line tool for creating + and sharing Ansible roles. +license = Apache-2.0 +keywords = ansible galaxy +url = http://github.com/ansible/galaxy + +classifiers = + Development Status :: 5 - Production/Stable + Environment :: Web Environment + Framework :: Django + Intended Audience :: Developers + Intended Audience :: Information Technology + Intended Audience :: System Administrators + License :: OSI Approved :: Apache Software License + Natural Language :: English + Operating System :: OS Independent + Operating System :: POSIX + Programming Language :: Python + Topic :: System :: Installation/Setup + Topic :: System :: Systems Administration + +[options] +zip_safe = False +packages = find: + +[options.package_data] +galaxy = + importer/linters/yamllint.yaml + templates/robots.txt diff --git a/setup.py b/setup.py index 40c84bba0..2075e5ccd 100644 --- a/setup.py +++ b/setup.py @@ -16,102 +16,14 @@ # You should have received a copy of the Apache License # along with Galaxy. If not, see . -import glob -import os -import sys - -from setuptools import setup +import setuptools from galaxy.common import version -# Paths we'll use later -etcpath = "/etc/galaxy" -homedir = "/var/lib/galaxy" -if os.path.exists("/etc/debian_version"): - webconfig = "/etc/apache2/conf.d" -else: - webconfig = "/etc/httpd/conf.d" - -if (os.environ.get('USER', '') == 'vagrant' - or os.environ.get('SUDO_USER', '') == 'vagrant'): - del os.link - -##################################################################### -# Helper Functions - - -def explode_glob_path(path): - """Take a glob and hand back the full recursive expansion, - ignoring links. - """ - - result = [] - includes = glob.glob(path) - for item in includes: - if os.path.isdir(item) and not os.path.islink(item): - result.extend(explode_glob_path(os.path.join(item, "*"))) - else: - result.append(item) - return result - - -def proc_data_files(data_files): - """Because data_files doesn't natively support globs... - let's add them. - """ - - result = [] - - # If running in a virtualenv, don't return data files that would install to - # system paths (mainly useful for running tests via tox). - if hasattr(sys, 'real_prefix'): - return result - - for dir, files in data_files: - includes = [] - for item in files: - includes.extend(explode_glob_path(item)) - result.append((dir, includes)) - return result - -##################################################################### - -setup( - name='galaxy', +setuptools.setup( version=version.get_git_version(), - author='Ansible, Inc.', - author_email='support@ansible.com', - description='Galaxy: Find, reuse and share the best Ansible content.', - long_description='Galaxy is a web site and command line tool for ' - 'creating and sharing Ansible roles.', - license='Apache-2.0', - keywords='ansible galaxy', - url='http://github.com/ansible/galaxy', - packages=['galaxy'], - include_package_data=True, - zip_safe=False, - setup_requires=[], - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Web Environment', - 'Framework :: Django', - 'Intended Audience :: Developers', - 'Intended Audience :: Information Technology', - 'Intended Audience :: System Administrators' - 'License :: OSI Approved :: Apache Software 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': ['galaxy-manage = galaxy:manage'], }, - data_files=proc_data_files([ - ("%s" % homedir, ["config/wsgi.py", - "galaxy/static/favicon.ico"])] - ), )