Ver código fonte

setup.py

tags/v1.0.0
Robin Thoni 7 anos atrás
pai
commit
6e0bd75be1
2 arquivos alterados com 93 adições e 0 exclusões
  1. 5
    0
      setup.cfg
  2. 88
    0
      setup.py

+ 5
- 0
setup.cfg Ver arquivo

@@ -0,0 +1,5 @@
1
+[bdist_wheel]
2
+# This flag says that the code is written to work on both Python 2 and Python
3
+# 3. If at all possible, it is good practice to do this. If you cannot, you
4
+# will need to generate wheels for each Python version that you support.
5
+universal=1

+ 88
- 0
setup.py Ver arquivo

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

Carregando…
Cancelar
Salvar