You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #! /usr/bin/env python
  2. from os import path
  3. import os
  4. from setuptools import setup, find_packages
  5. install_requires = [
  6. 'argcomplete'
  7. ]
  8. here = path.abspath(path.dirname(__file__))
  9. def package_files(directory):
  10. paths = []
  11. for (path, directories, filenames) in os.walk(directory):
  12. for filename in filenames:
  13. paths.append(os.path.join(path, filename))
  14. return paths
  15. setup(
  16. name='sitegencli',
  17. version="1.0.0",
  18. description="CLI tool to build web site configuration",
  19. long_description="""\
  20. CLI tool to build web site configuration and obtain SSL certificates from letsencrypt using certbot.
  21. Also provide a simpler way to request SSL certificate over certbot""",
  22. url='https://git.rthoni.com/robin.thoni/sitegen',
  23. author="Robin Thoni",
  24. author_email='robin@rthoni.com',
  25. license='MIT',
  26. classifiers=[
  27. # How mature is this project? Common values are
  28. # 3 - Alpha
  29. # 4 - Beta
  30. # 5 - Production/Stable
  31. 'Development Status :: 5 - Production/Stable',
  32. # Indicate who your project is intended for
  33. 'Intended Audience :: System Administrators',
  34. 'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
  35. # Pick your license as you wish (should match "license" above)
  36. 'License :: OSI Approved :: MIT License',
  37. # Specify the Python versions you support here. In particular, ensure
  38. # that you indicate whether you support Python 2, Python 3 or both.
  39. 'Programming Language :: Python :: 3',
  40. 'Programming Language :: Python :: 3.3',
  41. 'Programming Language :: Python :: 3.4',
  42. 'Programming Language :: Python :: 3.5',
  43. ],
  44. keywords="certbot apache ssl",
  45. packages=find_packages(),
  46. install_requires=install_requires,
  47. extras_require={
  48. 'dev': [],
  49. 'test': [],
  50. },
  51. package_data={
  52. },
  53. data_files=[
  54. ('/etc/bash_completion.d/', ['extra/bash/sitegen']),
  55. ('share/sitegen/', ['extra/apache/sitegen.conf']),
  56. ('etc/sitegen/', ['extra/sitegen/sitegen.json']),
  57. ('etc/sitegen/hooks-available/cert/', package_files('extra/sitegen/hooks-available/cert/')),
  58. ('etc/sitegen/hooks-available/site/', package_files('extra/sitegen/hooks-available/site/')),
  59. ('etc/sitegen/templates/', package_files('extra/sitegen/templates/'))
  60. ],
  61. entry_points={
  62. 'console_scripts': [
  63. 'sitegen=sitegencli.sitegen:main',
  64. ],
  65. },
  66. cmdclass={
  67. # 'install': PostInstallCommand,
  68. }
  69. )