-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·83 lines (68 loc) · 1.74 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python
#
# setup.py
#
"""Aberdeen Setup Script"""
from setuptools import setup, find_packages
from importlib.machinery import SourceFileLoader
desc = "Conversion from markdown files to database entries to use as the backend of a blog"
NAME = "aberdeen"
CONSOLE_SCRIPTS = [
'aberdeen-init = aberdeen.cli.init:main',
'aberdeen-update-hook = aberdeen.cli.update_hook:main'
]
REQUIRES = [
'emoji',
'termcolor2',
'python-dateutil',
]
OPTIONAL_REQUIRES = {
'markdown': ['Markdown'],
'mongodb': ['pymongo','asyncio_mongo']
}
KEYWORDS = [
'markdown',
'blog',
'publishing',
'nosql',
'mongodb',
]
CLASSIFIERS = [
"Development Status :: 2 - Pre-Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Topic :: Utilities",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"License :: OSI Approved :: Apache Software License"
]
TESTS_REQUIRE = [
'pytest',
'pytest-asyncio',
]
SETUP_REQUIRES = [
'pytest-runner',
]
meta = SourceFileLoader("meta", "aberdeen/__meta__.py").load_module()
tar_url = 'https://github.com/akubera/aberdeen/archive/v%s.tar.gz' % (meta.version)
setup(
name=NAME,
packages=find_packages(exclude=['test']),
version=meta.version,
description=desc,
url=meta.url,
download_url=tar_url,
author=meta.author,
author_email=meta.author_email,
keywords=KEYWORDS,
license=meta.license,
classifiers=CLASSIFIERS,
platforms='any',
install_requires=REQUIRES,
extras_require=OPTIONAL_REQUIRES,
tests_require=TESTS_REQUIRE,
setup_requires=SETUP_REQUIRES,
entry_points={
'console_scripts': CONSOLE_SCRIPTS,
},
package_data={'aberdeen': ['git_hooks/*']}
)