setup.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import re
  2. import sys
  3. from distutils.core import setup
  4. PY2 = sys.version_info[0] == 2
  5. requirements = ['requests',
  6. ]
  7. if PY2:
  8. requirements.append('configparser >= 3.3.0r2')
  9. with open('README.rst', 'r') as f:
  10. readme=f.read()
  11. # We used to just import the version number here. But you can't import the
  12. # package without its dependencies installed, and the dependencies are
  13. # specified in this file. distutils, a curse on your family even unto the
  14. # seventh generation. Setuptools, that goes for you too - you had a chance to
  15. # make this better, and you only made it worse.
  16. with open('nsist/__init__.py', 'r') as f:
  17. for line in f:
  18. m = re.match(r"__version__ = (.+)$", line)
  19. if m:
  20. __version__ = eval(m.group(1))
  21. break
  22. setup(name='pynsist',
  23. version=__version__,
  24. description='Build Windows installers for Python apps',
  25. long_description=readme,
  26. author='Thomas Kluyver',
  27. author_email='thomas@kluyver.me.uk',
  28. url='https://github.com/takluyver/pynsist',
  29. packages=['nsist'],
  30. package_data={'nsist': ['template.nsi',
  31. 'glossyorb.ico',
  32. ]
  33. },
  34. scripts=['scripts/pynsist'],
  35. classifiers=[
  36. 'Intended Audience :: Developers',
  37. 'License :: OSI Approved :: MIT License',
  38. 'Environment :: Win32 (MS Windows)',
  39. 'Programming Language :: Python :: 3',
  40. 'Programming Language :: Python :: 2.7',
  41. 'Topic :: Software Development',
  42. 'Topic :: System :: Installation/Setup',
  43. 'Topic :: System :: Software Distribution',
  44. ],
  45. install_requires=requirements
  46. )