-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
97 lines (73 loc) · 2.97 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the
# Ajiaco Project (https://github.com/quatrope/ajiaco/).
# Copyright (c) 2018-2019, Juan B Cabral
# License: BSD-3-Clause
# Full Text: https://github.com/quatrope/ajiaco/blob/master/LICENSE
# =============================================================================
# DOCS
# =============================================================================
"""This file is for distribute ajiaco
"""
# =============================================================================
# IMPORTS
# =============================================================================
import os
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
os.environ["__AJIACO_SETUP__"] = "True"
import ajiaco as ajc
# =============================================================================
# CONSTANTS
# =============================================================================
REQUIREMENTS = [
# "tornado", # the webserver and dispatcher
"attrs", # for create API classes
"sqlalchemy", # the database
"sqlalchemy-utils", # utilities for manipulate the database
# "wtforms-tornado", # using forms with the request data of tornado
# "jinja2", # the templates engine
# "tzlocal", # date time and time zone manipulations
# "passlib", # for password encription
"shortuuid", # short random unique id
# "tabulate", # helpful tabular formated for cli
"colored-traceback", "colorama", # add colors to the console
# "wtforms", # form manage user input
# "pip", # this is for acces information about the installed packages
]
# =============================================================================
# FUNCTIONS
# =============================================================================
def do_setup():
setup(
name=ajc.NAME,
version=ajc.VERSION,
description=ajc.DOC,
author=ajc.AUTHORS,
author_email=ajc.EMAIL,
url=ajc.URL,
license=ajc.LICENSE,
keywords=ajc.KEYWORDS,
classifiers=(
"Development Status :: 4 - Beta",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content"
"Topic :: Scientific/Engineering"),
packages=[
pkg for pkg in find_packages() if pkg.startswith("ajiaco")],
py_modules=["ez_setup"],
# entry_points = {
# 'console_scripts': ['mkajc=ajiaco.create:mkajc'],
# },
install_requires=REQUIREMENTS)
if __name__ == "__main__":
do_setup()