-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (51 loc) · 1.79 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
#
# This file is subject to the terms and conditions defined in the
# file 'LICENSE', which is part of this source code package.
#
# Copyright (c) 2018 Robert Abram - All Rights Reserved.
#
import os
from distutils.core import setup
from setuptools import find_packages
__VERSION__ = "0.2.10"
def find_package_data_files(dirs):
paths = []
for directory in dirs:
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths
def setup_package():
# Recursively gather all non-python module directories to be included in packaging.
core_files = find_package_data_files([], )
setup(name='salty_orm',
version=__VERSION__,
description='A Python 3.x ORM implementing a Django ORM object model features.',
author='Robert Abram',
author_email='rabram991@gmail.com',
url='https://github.com/robabram/salty_orm',
download_url='https://github.com/robabram/salty_orm',
packages=find_packages(exclude=['tests']),
package_data={
'salty_orm': core_files,
},
keywords=['orm', 'database'], # arbitrary keywords
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Environment :: Console',
'License :: MIT',
'Operating System :: POSIX :: Linux',
],
# Do not add additional requirements here, add them to requirements.in.
install_requires=[
'dateparser',
'python-dateutil',
'mysqlclient',
],
entry_points={
'console_scripts': [], },
tests_require=[],
)
if __name__ == "__main__":
setup_package()