Prepare for inevitable distribution.

This commit is contained in:
Ian Cordasco
2012-11-23 20:25:30 -05:00
parent afd8e75a49
commit b659ffbb90
5 changed files with 45 additions and 4 deletions

7
HISTORY.rst Normal file
View File

@@ -0,0 +1,7 @@
History
=======
0.1: xxxx-xx-xx
---------------
- Initial Release

4
MANIFEST.in Normal file
View File

@@ -0,0 +1,4 @@
include README.rst
include LICENSE
include HISTORY.rst
include AUTHORS

4
README.rst Normal file
View File

@@ -0,0 +1,4 @@
requests-kerberos
=================
A Kerberos authentication handler with Python Requests.

View File

@@ -1,3 +1,4 @@
from .kerberos import HTTPKerberosAuth
__all__ = [HTTPKerberosAuth]
__version__ = '0.1'

View File

@@ -1,9 +1,34 @@
#!/usr/bin/env python
# coding: utf-8
import os
from setuptools import setup
version_file = 'requests_kerberos/__init__.py'
exec(compile(open(version_file).read(), version_file, 'exec'))
requires = ['kerberos', 'requests']
path = os.path.dirname(__file__)
desc_fd = os.path.join(path, 'README.rst')
hist_fd = os.path.join(path, 'HISTORY.rst')
long_desc = ''
short_desc = 'A Kerberos authentication handler for python-requests'
if os.path.isfile(desc_fd):
long_desc = open(desc_fd).read()
if os.path.isfile(hist_fd):
long_desc = '\n\n'.join(long_desc, open(hist_fd).read())
setup(
name='requests_kerberos'
packages=['requests_kerberos']
)
name='requests-kerberos',
description=short_desc,
long_description=long_desc,
url='https://github.com/requests/requests-kerberos',
packages=['requests_kerberos'],
package_data={'': ['LICENSE', 'AUTHORS']},
include_package_data=True,
version=__version__, # NOQA
install_requires=requires,
)