https://github.com/robotframework/RIDE
Tip revision: 93b5102ac6b6129e5cea278dc9dafbc63942d542 authored by HelioGuilherme66 on 25 February 2016, 19:28:37 UTC
Merge branch 'wxPython3-compatibility2' of github.com:HelioGuilherme66/RIDE into wx3_master
Merge branch 'wxPython3-compatibility2' of github.com:HelioGuilherme66/RIDE into wx3_master
Tip revision: 93b5102
setup.py
#!/usr/bin/env python
import sys
from os.path import abspath, join, dirname
sys.path.append(join(dirname(__file__), 'src'))
from setuptools import setup, find_packages
ROOT_DIR = dirname(abspath(__file__))
SOURCE_DIR = 'src'
version_file = join(ROOT_DIR, 'src', 'robotide', 'version.py')
exec(compile(open(version_file).read(), version_file, 'exec'))
package_data = {
'robotide.preferences': ['settings.cfg'],
'robotide.widgets': ['*.png', '*.ico'],
'robotide.messages': ['*.html'],
'robotide.publish.html': ['no_robot.html']
}
long_description = """
Robot Framework is a generic test automation framework for acceptance
level testing. RIDE is a lightweight and intuitive editor for Robot
Framework test data.
""".strip()
classifiers = """
Development Status :: 5 - Production/Stable
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Topic :: Software Development :: Testing
""".strip().splitlines()
# This solution is found at http://stackoverflow.com/a/26490820/5889853
from setuptools.command.install import install
import os
class CustomInstallCommand(install):
"""Customized setuptools install command - prints a friendly greeting."""
def run(self):
install.run(self)
_ = sys.stderr.write("Creating Desktop Shortcut to RIDE...\n")
os.system("ride_postinstall.py -install")
setup(
name='robotframework-ride',
version=VERSION,
description='RIDE :: Robot Framework Test Data Editor',
long_description=long_description,
license='Apache License 2.0',
keywords='robotframework testing testautomation',
platforms='any',
classifiers=classifiers,
author='Robot Framework Developers',
author_email='robotframework@gmail.com',
url='https://github.com/robotframework/RIDE/',
download_url='https://pypi.python.org/pypi/robotframework-ride',
package_dir={'': SOURCE_DIR},
packages=find_packages(SOURCE_DIR),
package_data=package_data,
# Robot Framework package data is not included, but RIDE does not need it.
# Always install everything, since we may be switching between versions
options={'install': {'force': True}},
scripts=['src/bin/ride.py', 'src/bin/ride_postinstall.py'],
cmdclass={'install': CustomInstallCommand},
requires=['Pygments']
)