-
Notifications
You must be signed in to change notification settings - Fork 33
/
setup.py
executable file
·42 lines (35 loc) · 1.19 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
#!/usr/bin/env python
import os
import re
from setuptools import find_packages, setup
def get_version(*file_paths):
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("allauth_ui", "__init__.py")
readme = open("README.md").read()
setup(
name="django-allauth-ui",
version=version,
description="""UI Templates for Django-AllAuth""",
long_description=readme,
author="Dani Hodovic",
author_email="[email protected]",
url="https://github.com/danihodovic/django-allauth-ui",
packages=find_packages(),
include_package_data=True,
install_requires=[],
license="MIT",
keywords="django,allauth,login,auth",
classifiers=[
"Development Status :: 3 - Alpha",
"Framework :: Django :: 2.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
],
)