setup.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # -*- coding: utf-8 -*-
  2. # Copyright (c) 2009-2017 Michael Howitz
  3. # See also LICENSE.txt
  4. from setuptools import setup, find_packages
  5. import os.path
  6. version = '1.2.dev0'
  7. def read(*path):
  8. """Read a file from a path."""
  9. return open(os.path.join(*path)).read()
  10. setup(
  11. name='icemac.truncatetext',
  12. version=version,
  13. description='Nice, intelligent truncation of text.',
  14. long_description="\n\n".join([
  15. read("README.rst"),
  16. ".. contents::",
  17. read("icemac", "truncatetext", "README.rst"),
  18. read("CHANGES.rst"),
  19. read("HACKING.rst"),
  20. ]),
  21. classifiers=[
  22. "Programming Language :: Python :: 2",
  23. "Programming Language :: Python :: 2.7",
  24. "Programming Language :: Python :: 3",
  25. "Programming Language :: Python :: 3.4",
  26. "Programming Language :: Python :: 3.5",
  27. "Programming Language :: Python :: 3.6",
  28. "Programming Language :: Python :: 3.7",
  29. "Programming Language :: Python :: Implementation :: CPython",
  30. "Programming Language :: Python :: Implementation :: PyPy",
  31. "Development Status :: 5 - Production/Stable",
  32. "Intended Audience :: Developers",
  33. "License :: OSI Approved :: MIT License",
  34. "Natural Language :: English",
  35. "Natural Language :: German",
  36. "Operating System :: OS Independent",
  37. "Topic :: Utilities",
  38. "Topic :: Software Development :: Libraries :: Python Modules",
  39. ],
  40. keywords='text truncate string intelligent',
  41. author='Michael Howitz',
  42. author_email='icemac@gmx.net',
  43. url='https://github.com/icemac/icemac.truncatetext',
  44. license='MIT',
  45. packages=find_packages(),
  46. namespace_packages=['icemac'],
  47. include_package_data=True,
  48. zip_safe=True,
  49. install_requires=[
  50. 'setuptools',
  51. ],
  52. test_suite="icemac.truncatetext.tests.test_all",
  53. )