setup.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import os
  2. import sys
  3. from setuptools import (setup, find_packages)
  4. if sys.version_info < (3,):
  5. print('\nSorry, but Adventure can only be installed under Python 3.\n')
  6. sys.exit(1)
  7. README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt')
  8. with open(README_PATH, encoding="utf-8") as f:
  9. README_TEXT = f.read()
  10. setup(
  11. name='adventure',
  12. version='1.4',
  13. description='Colossal Cave adventure game at the Python prompt',
  14. long_description=README_TEXT,
  15. author='Brandon Craig Rhodes',
  16. author_email='brandon@rhodesmill.org',
  17. url='https://github.com/brandon-rhodes/python-adventure',
  18. packages=find_packages(),
  19. package_data={'adventure': ['README.txt', '*.dat', 'tests/*.txt']},
  20. entry_points={
  21. 'console_scripts': [
  22. 'colossal-cave-adventure = adventure.__main__:main',
  23. ],
  24. },
  25. classifiers=[
  26. 'Development Status :: 6 - Mature',
  27. 'Environment :: Console',
  28. 'Intended Audience :: End Users/Desktop',
  29. 'License :: OSI Approved :: Apache Software License',
  30. 'Programming Language :: Python :: 3',
  31. 'Programming Language :: Python :: 3.2',
  32. 'Topic :: Games/Entertainment',
  33. ],
  34. )