-
Notifications
You must be signed in to change notification settings - Fork 30
/
setup.py
76 lines (66 loc) · 2.03 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
# -*- coding: utf-8 -*-
"""flaskcode module setup"""
import os
from setuptools import setup
BASEDIR = os.path.dirname(__file__)
def readme():
with open(os.path.join(BASEDIR, 'README.md'), 'r') as f:
return f.read()
def get_pkginfo():
with open(os.path.join(BASEDIR, 'flaskcode', '__pkginfo__.py'), 'r') as f:
context = {}
exec(f.read(), context)
if 'version' in context:
return context
raise RuntimeError('No package info found.')
pkginfo = get_pkginfo()
setup(
name=pkginfo['title'],
version=pkginfo['version'],
license=pkginfo['license'],
author=pkginfo['author'],
author_email=pkginfo['email'],
url=pkginfo['uri'],
description=pkginfo['description'],
long_description=readme(),
long_description_content_type='text/markdown',
keywords='flaskcode code editor code-editor',
packages=['flaskcode'],
include_package_data=True,
zip_safe=False,
platforms='any',
entry_points={
'console_scripts': [
'flaskcode = flaskcode.cli:main',
]
},
python_requires='>=3.6',
install_requires=[
'flask',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'flask',
'pytest>=4.5.0',
],
classifiers=[
# 'Development Status :: 1 - Planning',
# 'Development Status :: 2 - Pre-Alpha',
'Development Status :: 3 - Alpha',
# 'Development Status :: 4 - Beta',
# 'Development Status :: 5 - Production/Stable',
# 'Development Status :: 6 - Mature',
# 'Development Status :: 7 - Inactive',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Text Editors :: Text Processing',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
)