1
|
|
|
"""A setuptools based setup module. |
2
|
|
|
|
3
|
|
|
See: |
4
|
|
|
https://packaging.python.org/en/latest/distributing.html |
5
|
|
|
https://github.com/pypa/sampleproject |
6
|
|
|
""" |
7
|
|
|
|
8
|
|
|
# Always prefer setuptools over distutils |
9
|
|
|
from setuptools import setup, find_packages |
10
|
|
|
from snakelet import __version__ |
11
|
|
|
|
12
|
|
|
# To use a consistent encoding |
13
|
|
|
from codecs import open |
14
|
|
|
from os import path |
15
|
|
|
|
16
|
|
|
here = path.abspath(path.dirname(__file__)) |
17
|
|
|
|
18
|
|
|
# Get the long description from the README file |
19
|
|
|
with open(path.join(here, 'README.rst'), encoding='utf-8') as f: |
20
|
|
|
long_description = f.read() |
21
|
|
|
|
22
|
|
|
setup( |
23
|
|
|
name='snakelet', |
24
|
|
|
|
25
|
|
|
# Versions should comply with PEP440. For a discussion on single-sourcing |
26
|
|
|
# the version across setup.py and the project code, see |
27
|
|
|
# https://packaging.python.org/en/latest/single_source_version.html |
28
|
|
|
version=__version__, |
29
|
|
|
description='Mongo ORM', |
30
|
|
|
long_description=long_description, |
31
|
|
|
|
32
|
|
|
# The project's main homepage. |
33
|
|
|
url='https://github.com/alexgurrola/snakelet', |
34
|
|
|
|
35
|
|
|
# Author details |
36
|
|
|
author='Alex Gurrola', |
37
|
|
|
author_email='[email protected]', |
38
|
|
|
|
39
|
|
|
# Choose your license |
40
|
|
|
license='MIT', |
41
|
|
|
|
42
|
|
|
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers |
43
|
|
|
classifiers=[ |
44
|
|
|
# How mature is this project? Common values are |
45
|
|
|
# 3 - Alpha |
46
|
|
|
# 4 - Beta |
47
|
|
|
# 5 - Production/Stable |
48
|
|
|
'Development Status :: 3 - Alpha', |
49
|
|
|
|
50
|
|
|
# Indicate who your project is intended for |
51
|
|
|
'Intended Audience :: Developers', |
52
|
|
|
'Topic :: Database :: Front-Ends', |
53
|
|
|
|
54
|
|
|
# Pick your license as you wish (should match "license" above) |
55
|
|
|
'License :: OSI Approved :: MIT License', |
56
|
|
|
|
57
|
|
|
# Specify the Python versions you support here. In particular, ensure |
58
|
|
|
# that you indicate whether you support Python 2, Python 3 or both. |
59
|
|
|
'Programming Language :: Python :: 3', |
60
|
|
|
'Programming Language :: Python :: 3.5', |
61
|
|
|
'Programming Language :: Python :: 3.6', |
62
|
|
|
'Programming Language :: Python :: 3.7' |
63
|
|
|
], |
64
|
|
|
|
65
|
|
|
# What does your project relate to? |
66
|
|
|
keywords='data mongo orm', |
67
|
|
|
|
68
|
|
|
# You can just specify the packages manually here if your project is |
69
|
|
|
# simple. Or you can use find_packages(). |
70
|
|
|
packages=find_packages(exclude=['contrib', 'docs', 'tests']), |
71
|
|
|
|
72
|
|
|
# Alternatively, if you want to distribute just a my_module.py, uncomment |
73
|
|
|
# this: |
74
|
|
|
# py_modules=["my_module"], |
75
|
|
|
|
76
|
|
|
# List run-time dependencies here. These will be installed by pip when |
77
|
|
|
# your project is installed. For an analysis of "install_requires" vs pip's |
78
|
|
|
# requirements files see: |
79
|
|
|
# https://packaging.python.org/en/latest/requirements.html |
80
|
|
|
install_requires=['pymongo'], |
81
|
|
|
|
82
|
|
|
# List additional groups of dependencies here (e.g. development |
83
|
|
|
# dependencies). You can install these using the following syntax, |
84
|
|
|
# for example: |
85
|
|
|
# $ pip install -e .[dev,test] |
86
|
|
|
extras_require={ |
87
|
|
|
'dev': ['check-manifest'], |
88
|
|
|
'test': ['coverage'], |
89
|
|
|
}, |
90
|
|
|
|
91
|
|
|
# If there are data files included in your packages that need to be |
92
|
|
|
# installed, specify them here. If using Python 2.6 or less, then these |
93
|
|
|
# have to be included in MANIFEST.in as well. |
94
|
|
|
# package_data={ |
95
|
|
|
# 'sample': ['package_data.dat'], |
96
|
|
|
# }, |
97
|
|
|
|
98
|
|
|
# Although 'package_data' is the preferred approach, in some case you may |
99
|
|
|
# need to place data files outside of your packages. See: |
100
|
|
|
# http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa |
101
|
|
|
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data' |
102
|
|
|
# data_files=[ |
103
|
|
|
# ('my_data', [ |
104
|
|
|
# 'data/dseeds_dataset.cv' |
105
|
|
|
# ]) |
106
|
|
|
# ], |
107
|
|
|
|
108
|
|
|
# To provide executable scripts, use entry points in preference to the |
109
|
|
|
# "scripts" keyword. Entry points provide cross-platform support and allow |
110
|
|
|
# pip to create the appropriate form of executable for the target platform. |
111
|
|
|
# entry_points={ |
112
|
|
|
# 'console_scripts': [ |
113
|
|
|
# 'sample=sample:main', |
114
|
|
|
# ], |
115
|
|
|
# }, |
116
|
|
|
) |
117
|
|
|
|