setup.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import os
  2. import codecs
  3. from setuptools import setup, find_packages
  4. import slackviewer
  5. def read(filename):
  6. """Read and return `filename` in root dir of project and return string"""
  7. here = os.path.abspath(os.path.dirname(__file__))
  8. return codecs.open(os.path.join(here, filename), 'r', encoding='UTF-8').read()
  9. install_requires = read("requirements.txt").split()
  10. long_description = "See README at https://github.com/hfaran/slack-export-viewer"
  11. setup(
  12. name="slack-export-viewer",
  13. version=slackviewer.__version__,
  14. url='https://github.com/hfaran/slack-export-viewer',
  15. license='MIT License',
  16. author='Hamza Faran',
  17. author_email='hamzafaran@outlook.com',
  18. description=('Slack Export Archive Viewer'),
  19. long_description=long_description,
  20. long_description_content_type="text/markdown",
  21. packages=find_packages(),
  22. install_requires=install_requires,
  23. entry_points={'console_scripts': [
  24. 'slack-export-viewer = slackviewer.main:main',
  25. 'slack-export-viewer-cli = slackviewer.cli:cli'
  26. ]},
  27. include_package_data=True,
  28. # https://github.com/mitsuhiko/flask/issues/1562
  29. zip_safe=False,
  30. classifiers=[
  31. 'Development Status :: 3 - Alpha',
  32. 'Environment :: Console',
  33. 'Environment :: Web Environment',
  34. 'License :: OSI Approved :: MIT License',
  35. 'Operating System :: OS Independent',
  36. 'Programming Language :: Python',
  37. 'Programming Language :: Python :: 3',
  38. 'Programming Language :: Python :: 3.5',
  39. 'Programming Language :: Python :: 2',
  40. 'Programming Language :: Python :: 2.7',
  41. ],
  42. )