No Description

setup.py 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. Setup for piwigotools
  5. """
  6. import os
  7. from setuptools import setup, find_packages
  8. import piwigotools
  9. NAME = "piwigotools"
  10. VERSION = piwigotools.__version__
  11. DESC = "mange your piwigo gallery by command piwigo"
  12. URLPKG = "https://github.com/fraoustin/piwigotools"
  13. HERE = os.path.abspath(os.path.dirname(__file__))
  14. # README AND CHANGES
  15. with open(os.path.join(HERE, 'README.rst')) as readme:
  16. with open(os.path.join(HERE, 'CHANGES.rst')) as changelog:
  17. LONG_DESC = readme.read() + '\n\n' + changelog.read()
  18. # REQUIREMENTS
  19. with open('REQUIREMENTS.txt') as f:
  20. REQUIRED = f.read().splitlines()
  21. # CLASSIFIERS
  22. with open('CLASSIFIERS.txt') as f:
  23. CLASSIFIED = f.read().splitlines()
  24. # AUTHORS
  25. with open('AUTHORS.txt') as f:
  26. DATA = f.read().splitlines()
  27. AUTHORS = ','.join([i.split('::')[0] for i in DATA])
  28. AUTHORS_EMAIL = ','.join([i.split('::')[1] for i in DATA])
  29. setup(
  30. name=NAME,
  31. version=VERSION,
  32. packages=find_packages(),
  33. author=AUTHORS,
  34. author_email=AUTHORS_EMAIL,
  35. description=DESC,
  36. long_description=LONG_DESC,
  37. include_package_data=True,
  38. install_requires=REQUIRED,
  39. url=URLPKG,
  40. classifiers=CLASSIFIED,
  41. entry_points = {
  42. 'console_scripts': [
  43. 'piwigo = piwigotools.main:main',
  44. ],
  45. },
  46. )