09c219550617763ec4181592ee2e09f3334e701c
[pixelated-user-agent.git] / service / setup.py
1 #!/usr/bin/env python
2 #
3 # Copyright (c) 2014-2017 ThoughtWorks, Inc.
4 # Copyright (c) 2017 LEAP Encryption Access Project
5 #
6 # Pixelated is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU Affero General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # Pixelated is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU Affero General Public License for more details.
15 #
16 # You should have received a copy of the GNU Affero General Public License
17 # along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
18
19 import datetime
20 import os
21 from setuptools import setup
22 import time
23
24 now = datetime.datetime.now()
25 timestamp = time.strftime('%Y%m%d', now.timetuple())
26
27
28 def read(fname):
29     return open(os.path.join(os.path.dirname(__file__), fname)).read()
30
31
32 setup(name='leap.pixelated',
33       version='1,0beta2.%s' % timestamp,
34       description='Twisted API with a RESTful service for the Pixelated front-end.',
35       long_description=read('README.md'),
36       author='LEAP Encryption Access Project',
37       author_email='info@leap.se',
38       url='https://github.com/leapcode/pixelated-user-agent',
39       packages=[
40           'pixelated',
41           'pixelated.adapter',
42           'pixelated.adapter.listeners',
43           'pixelated.adapter.model',
44           'pixelated.adapter.search',
45           'pixelated.adapter.services',
46           'pixelated.adapter.mailstore',
47           'pixelated.adapter.mailstore.maintenance',
48           'pixelated.bitmask_libraries',
49           'pixelated.config',
50           'pixelated.assets',
51           'pixelated.certificates',
52           'pixelated.support',
53           'pixelated.resources',
54           'pixelated.extensions'
55       ],
56       install_requires=[],
57       entry_points={
58           'console_scripts': [
59               'pixelated-user-agent = pixelated.application:initialize',
60               'pixelated-maintenance = pixelated.maintenance:initialize',
61               'pixelated-register = pixelated.register:initialize'
62           ]
63       },
64       include_package_data=True)