Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit f49f766

Browse files
Improving setup.py, version info, readme.
1 parent f09cfe1 commit f49f766

5 files changed

Lines changed: 72 additions & 33 deletions

File tree

README.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
python-cas-client
2+
=================
3+
4+
A python CAS client
5+
6+
Installation
7+
------------
8+
9+
Supports Python 2.7 and 3.4.
10+
11+
::
12+
13+
$ git clone git@github.com:discogs/python-cas-client.git
14+
$ cd python-cas-client
15+
python-cas-client$ pip install .
16+
...
17+
18+
Testing
19+
-------
20+
21+
::
22+
23+
python-cas-client$ tox

cas_client/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# -*- encoding: utf-8 -*-
22
import six
33

4-
54
if six.PY3:
65
from .cas_client import *
6+
from ._version import __version__, __version_info__
77
else:
88
from cas_client import *
9+
from _version import __version__, __version_info__

cas_client/_version.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__version_info__ = (0, 1, 0)
2+
__version__ = '.'.join(str(_) for _ in __version_info__)

setup.py

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,50 @@
22
import setuptools
33

44

5-
install_requires = [
6-
'PyCrypto',
7-
'requests',
8-
'six',
9-
'tox',
10-
]
5+
with open('README.rst', 'r') as file_pointer:
6+
long_description = file_pointer.read()
117

8+
with open('cas_client/_version.py', 'r') as file_pointer:
9+
exec(file_pointer.read())
1210

13-
if __name__ == '__main__':
14-
setuptools.setup(
15-
include_package_data=True,
16-
install_requires=install_requires,
17-
name='cas_client',
18-
packages=['cas_client'],
19-
)
11+
12+
setuptools.setup(
13+
author='Josiah Wolf Oberholtzer',
14+
author_email='joberholtzer@discogsinc.com',
15+
classifiers=[
16+
'Development Status :: 4 - Beta',
17+
'Environment :: Web Environment',
18+
'Intended Audience :: Developers',
19+
'License :: OSI Approved :: MIT License',
20+
'Operating System :: OS Independent',
21+
'Programming Language :: Python :: 2',
22+
'Programming Language :: Python :: 3',
23+
'Topic :: Software Development :: Libraries :: Python Modules',
24+
'Topic :: System :: Systems Administration :: Authentication/Directory',
25+
],
26+
description='A Python CAS client',
27+
include_package_data=True,
28+
install_requires=[
29+
'PyCrypto',
30+
'requests',
31+
'six',
32+
'tox',
33+
],
34+
keywords=[
35+
'auth',
36+
'authentication',
37+
'cas',
38+
'cas2',
39+
'cas3',
40+
'client',
41+
'single sign-on',
42+
'sso',
43+
],
44+
license='MIT',
45+
long_description=long_description,
46+
name='cas_client',
47+
packages=['cas_client'],
48+
platforms='any',
49+
url='https://github.com/discogs/python-cas-client',
50+
version=__version__,
51+
)

0 commit comments

Comments
 (0)