-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
45 lines (37 loc) · 1.41 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import re
from pathlib import Path
from setuptools import find_packages
from setuptools import setup
client_package = 'opwen_email_client'
server_package = 'opwen_email_server'
here = Path(__file__).parent
def requirements_for(name):
with (here / name).open(encoding='utf-8') as req:
return [line.strip() for line in req]
with (here / 'README.rst').open(encoding='utf-8') as fobj:
long_description = fobj.read()
with (here / client_package / '__init__.py').open(encoding='utf-8') as fobj:
version = re.search(r"^__version__ = '([^']*)'",
fobj.read(), re.MULTILINE).group(1)
setup(
name=client_package,
version=version,
author='Ascoderu',
author_email='[email protected]',
packages=find_packages(exclude=['tests*']),
url='https://github.com/ascoderu/lokole',
license='Apache Software License',
description='Email client for the Lokole project: https://ascoderu.ca',
long_description=long_description,
include_package_data=True,
install_requires=requirements_for('requirements-webapp.txt'),
extras_require={
server_package: requirements_for('requirements.txt'),
},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Email',
])