-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (51 loc) · 1.89 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python
# coding: utf-8
import os
from setuptools import setup, find_packages as _find_packages
from xsnippet.web_backend import __version__ as version
from xsnippet.web_backend import __license__ as license
here = os.path.dirname(__file__)
with open(os.path.join(here, 'README.rst'), 'r', encoding='utf-8') as f:
long_description = f.read()
# Unfortunately setuptools.find_packages() doesn't support PEP-420 namespace
# packages so we need our own implementation that does. All this shit happened
# due to desperate @ikalnytskyi's desire to use namespace packages.
def find_packages(namespace):
return ['%s.%s' % (namespace, pkg) for pkg in _find_packages(namespace)]
setup(
name='xsnippet-web-backend',
version=version,
description=(
'XSnippet is a simple web-service for sharing code snippets on the '
'Internet. Written for fun using bleeding edge technologies.'),
long_description=long_description,
license=license,
url='https://github.com/xsnippet/xsnippet-web-backend/',
keywords='web-service restful-api snippet storage',
author='The XSnippet Team',
author_email='[email protected]',
packages=find_packages('xsnippet'),
zip_safe=False,
setup_requires=[
'pytest-runner',
],
install_requires=[
'aiohttp >= 2.3.5',
],
tests_require=[
'pytest >= 2.8.7',
'pytest-aiohttp >= 0.3.0',
],
classifiers=[
'Environment :: Web Environment',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Information Technology',
'Topic :: Internet :: WWW/HTTP',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)