forked from rjmoggach/django-token-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·55 lines (41 loc) · 1.47 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
import os
import sys
from os.path import abspath, dirname, join
from glob import glob
from distutils.command.install import INSTALL_SCHEMES
from setuptools import setup, find_packages
for scheme in INSTALL_SCHEMES.values():
scheme["data"] = scheme["purelib"]
data_files = [
["src/token_auth/templates/base_templates",
glob("src/token_auth/templates/base_templates/*.html")]
]
root_dir = abspath(os.path.dirname(__file__))
sys.path.append(os.path.join(root_dir, "src"))
version = __import__('token_auth').get_version()
def read(fname):
return open(os.path.join(abspath(os.path.dirname(__file__)), fname)).read()
setup(
name='django-token-auth',
version = version,
url = 'http://github.com/mogga/django-token-auth/',
license = 'BSD',
description = "app that provides limited authentication via hash-type URL.",
long_description = '',
author = 'Oyvind Saltvik, Robert Moggach',
author_email = '[email protected], [email protected]',
packages = find_packages('src'),
package_dir = {'': 'src'},
data_files = data_files,
install_requires = ['setuptools'],
classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
'Topic :: Internet :: WWW/HTTP',
],
keywords = 'python django hash authentication'
)