From a071ad46d7cd76fc97eb86f2f538d330457c6767 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sat, 12 Dec 2015 13:07:36 +0100 Subject: [PATCH] Update setup.py to be functionnal --- .gitignore | 1 + MANIFEST.in | 3 --- setup.py | 18 +++++++++++++++--- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 83aecf5..3e17929 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.pyc *.egg-info +build/ bootstrap3 cas/ db.sqlite3 diff --git a/MANIFEST.in b/MANIFEST.in index c0f63ec..9d5d250 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,2 @@ include LICENSE include README.rst -recursive-include cas_server/templates/* -recursive-include cas_server/locale/* -recursive-include cas_server/static/* diff --git a/setup.py b/setup.py index a6b75ed..03e35d5 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-cas-server', - version='0.1', + version='0.2', packages=['cas_server'], include_package_data=True, license='GPLv3', @@ -24,10 +24,22 @@ setup( 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 'Operating System :: OS Independent', 'Programming Language :: Python', - # Replace these appropriately if you are stuck on Python 2. 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], + package_data={ + 'cas_server': [ + 'templates/cas_server/*', + 'static/cas_server/*', + 'locale/*/LC_MESSAGES/*', + ] + }, + keywords=['django', 'cas', 'cas3', 'server', 'sso', 'single sign-on', 'authentication', 'auth'], + install_requires=['Django >= 1.7', 'requests >= 2.4', 'requests_futures >= 0.9.5', + 'django-picklefield >= 0.3.1', 'django-bootstrap3 >= 5.4', 'lxml >= 3.4'], + url="https://github.com/nitmir/django-cas-server", + download_url="https://github.com/nitmir/django-cas-server/releases", + zip_safe=False )