-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (57 loc) · 2.12 KB
/
setup.py
File metadata and controls
66 lines (57 loc) · 2.12 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
55
56
57
58
59
60
61
62
63
64
65
66
#from __future__ import print_function
import ast
import os
import sys
import codecs
import subprocess
from fnmatch import fnmatchcase
from distutils.util import convert_path
from setuptools import setup, find_packages
def find_version(*parts):
try:
version_py = os.path.join(os.path.dirname(__file__), 'fields_bundle/version.py')
version_git = subprocess.check_output(["git", "tag"]).rstrip().splitlines()[-1]
version_msg = "# Do not edit this file, pipeline versioning is governed by git tags" + os.linesep + "# following PEP 386"
open(version_py, 'wb').write(version_msg + os.linesep + '__version__ = "%s"' % version_git)
except:
# NOT RAN LOCALY
pass
from fields_bundle.version import __version__
return "{ver}".format(ver=__version__)
def read(*parts):
filename = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
# Provided as an attribute, so you can append to these instead
# of replicating them:
standard_exclude = ('*.py', '*.pyc', '*$py.class', '*~', '.*', '*.bak')
standard_exclude_directories = ('.*', 'CVS', '_darcs', './build',
'./dist', 'EGG-INFO', '*.egg-info')
setup(
name='django-fields-bundle',
version=find_version(),
description='Django extra fields bundle',
long_description=read('README.rst'),
author='Autrusseau Damien',
author_email='autrusseau.damien@gmail.com',
url='http://github.com/dalou/django-fields-bundle',
packages=find_packages(exclude=('tests*',)),
zip_safe=False,
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
# test_suite='runtests.runtests',
install_requires=[
'django >= 1.8.4, <= 1.9',
"jsonfield == 1.0.3",
"babel == 1.3",
"django-tinymce == 2.0.5"
],
)