This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
forked from cyverse/django-cyverse-auth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
59 lines (51 loc) · 1.91 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import shutil
from setuptools import setup, find_packages
from django_giji_auth import __version__
requirements = open("requirements.txt").read()
if sys.argv[-1] == 'publish':
if os.system("pip freeze | grep wheel"):
print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
sys.exit()
if os.system("pip freeze | grep twine"):
print("twine not installed.\nUse `pip install twine`.\nExiting.")
sys.exit()
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/*")
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
shutil.rmtree('dist')
shutil.rmtree('build')
shutil.rmtree('django_giji_auth.egg-info')
sys.exit()
setup(
name='django-giji-auth',
version=__version__,
author='MOC-GIJI',
author_email='xuh@massopen.cloud',
description="Authentication support for GIJI Django applications.",
install_requires=requirements,
license="BSD License, 3 clause",
packages=find_packages(),
url="https://github.com/CCI-MOC/django-giji-auth",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 1.7",
"Framework :: Django :: 1.8",
"Framework :: Django :: 1.9",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Systems Administration",
"Topic :: System :: Systems Administration :: Authentication/Directory"
])