12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #! /usr/bin/env python
- from os import path
- import os
- from setuptools import setup, find_packages
-
- install_requires = [
- 'argcomplete'
- ]
-
- here = path.abspath(path.dirname(__file__))
-
-
- def package_files(directory):
- paths = []
- for (path, directories, filenames) in os.walk(directory):
- for filename in filenames:
- paths.append(os.path.join(path, filename))
- return paths
-
- setup(
- name='sitegencli',
- version="1.0.0",
-
- description="CLI tool to build web site configuration",
- long_description="""\
- CLI tool to build web site configuration and obtain SSL certificates from letsencrypt using certbot.
- Also provide a simpler way to request SSL certificate over certbot""",
-
- url='https://git.rthoni.com/robin.thoni/sitegen',
- author="Robin Thoni",
- author_email='robin@rthoni.com',
-
- license='MIT',
-
- classifiers=[
- # How mature is this project? Common values are
- # 3 - Alpha
- # 4 - Beta
- # 5 - Production/Stable
- 'Development Status :: 5 - Production/Stable',
-
- # Indicate who your project is intended for
- 'Intended Audience :: System Administrators',
- 'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
-
- # Pick your license as you wish (should match "license" above)
- 'License :: OSI Approved :: MIT License',
-
- # Specify the Python versions you support here. In particular, ensure
- # that you indicate whether you support Python 2, Python 3 or both.
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.3',
- 'Programming Language :: Python :: 3.4',
- 'Programming Language :: Python :: 3.5',
- ],
-
- keywords="certbot apache ssl",
-
- packages=find_packages(),
- install_requires=install_requires,
-
- extras_require={
- 'dev': [],
- 'test': [],
- },
-
- package_data={
- },
-
- data_files=[
- ('/etc/bash_completion.d/', ['extra/bash/sitegen']),
- ('share/sitegen/', ['extra/apache/sitegen.conf']),
- ('etc/sitegen/', ['extra/sitegen/sitegen.json']),
- ('etc/sitegen/hooks-available/cert/', package_files('extra/sitegen/hooks-available/cert/')),
- ('etc/sitegen/hooks-available/site/', package_files('extra/sitegen/hooks-available/site/')),
- ('etc/sitegen/templates/', package_files('extra/sitegen/templates/'))
- ],
-
- entry_points={
- 'console_scripts': [
- 'sitegen=sitegencli.sitegen:main',
- ],
- },
-
- cmdclass={
- # 'install': PostInstallCommand,
- }
- )
|