setup.py 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. import os
  2. import sys
  3. from distutils.core import setup
  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=['adventure', 'adventure/tests'],
  19. package_data={'adventure': ['README.txt', '*.dat', 'tests/*.txt']},
  20. classifiers=[
  21. 'Development Status :: 6 - Mature',
  22. 'Environment :: Console',
  23. 'Intended Audience :: End Users/Desktop',
  24. 'License :: OSI Approved :: Apache Software License',
  25. 'Programming Language :: Python :: 3',
  26. 'Programming Language :: Python :: 3.2',
  27. 'Topic :: Games/Entertainment',
  28. ],
  29. )