Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (51 loc) · 1.58 KB
/
Copy pathsetup.py
File metadata and controls
54 lines (51 loc) · 1.58 KB
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
# coding=utf-8
from setuptools import setup, find_packages
from os.path import realpath, dirname
from os import listdir
root_dir = dirname(realpath(__file__))
templates_dir = root_dir+'/flaskipy/flaskipy_templates'
# read readme file
with open('README.rst', encoding='utf-8') as f:
long_description = f.read()
# package data file
data_files = ['flaskipy/flaskipy_templates/'+file for file in listdir(templates_dir) if file.endswith(".txt")]
setup(
name='flaskipy',
version='0.1.1',
python_requires='>3.0.0',
packages = find_packages(
include=['flaskipy'],
exclude='tests'),
include_package_data=True,
data_files=[("flaskipy_templates", data_files)], # package data files
url='https://github.com/osmangoninahid/flaskipy',
license='MIT License',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Framework :: Flask'
],
author=[
'Osman Goni Nahid',
'Porimol Chandro'
],
author_email=[
'nirobshitol@gmail.com',
'porimolchandroroy@gmail.com'
],
description='Flaskipy is a cli tool for building RESTFul API with Python-Flask',
long_description=long_description,
keywords = ['Flask-RESTFul API', 'Generator', 'CLI','Flaskipy'],
install_requires=[
'Click',
'flask',
'inquirer',
'inflect',
],
entry_points='''
[console_scripts]
flaskipy=flaskipy.commands:cli
''',
)