-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·47 lines (39 loc) · 1.29 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable=C0111,W6005,W6100
import os
import re
from setuptools import setup
def get_version(*file_paths):
"""
Extract the version string from the file at the given relative path.
"""
filename = os.path.join(os.path.dirname(__file__), *file_paths)
version_file = open(filename).read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find version string.')
VERSION = get_version('jigsawlabs_backends', '__init__.py')
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
setup(
name='oauth-auth0',
version=VERSION,
description=('An OAuth backend for auth0, '
'mostly used for Open edX but can be used elsewhere.'),
long_description=README,
author='Lawrence McDaniel',
author_email='[email protected]',
url='https://github.com/jigsaw-labs/edx.oauth.git',
packages=[
'jigsawlabs_backends',
],
include_package_data=True,
zip_safe=False,
keywords='OAuth Auth0',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
],
)