From 5d35d5e6d3e501a34a6a28ae2f16fec34d3c66a4 Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Tue, 15 Aug 2017 10:44:26 -0300 Subject: [PATCH] Update setups and docs. --- docs/conf.py | 7 ++----- docs/index.rst | 2 +- docs/make.bat | 36 ++++++++++++++++++++++++++++++++++++ setup.cfg | 2 ++ setup.py | 16 ++++++++++++++++ 5 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 docs/make.bat create mode 100644 setup.py diff --git a/docs/conf.py b/docs/conf.py index 5aab1c8..e00c548 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # python-keycloak documentation build configuration file, created by -# sphinx-quickstart on Tue Aug 15 10:25:37 2017. +# sphinx-quickstart on Tue Aug 15 10:44:03 2017. # # This file is execfile()d with the current directory set to its # containing dir. @@ -31,10 +31,7 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.coverage', - 'sphinx.ext.viewcode'] +extensions = [] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs/index.rst b/docs/index.rst index ded480a..1f35e82 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,5 +1,5 @@ .. python-keycloak documentation master file, created by - sphinx-quickstart on Tue Aug 15 10:25:37 2017. + sphinx-quickstart on Tue Aug 15 10:44:03 2017. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. diff --git a/docs/make.bat b/docs/make.bat new file mode 100644 index 0000000..e8375c9 --- /dev/null +++ b/docs/make.bat @@ -0,0 +1,36 @@ +@ECHO OFF + +pushd %~dp0 + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=python -msphinx +) +set SOURCEDIR=. +set BUILDDIR=_build +set SPHINXPROJ=python-keycloak + +if "%1" == "" goto help + +%SPHINXBUILD% >NUL 2>NUL +if errorlevel 9009 ( + echo. + echo.The Sphinx module was not found. Make sure you have Sphinx installed, + echo.then set the SPHINXBUILD environment variable to point to the full + echo.path of the 'sphinx-build' executable. Alternatively you may add the + echo.Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.http://sphinx-doc.org/ + exit /b 1 +) + +%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% +goto end + +:help +%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% + +:end +popd diff --git a/setup.cfg b/setup.cfg index e69de29..224a779 100644 --- a/setup.cfg +++ b/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..0b92682 --- /dev/null +++ b/setup.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +from setuptools import setup + +setup( + name='python-keycloak', + version='0.1.0', + url='https://github.com/marcospereirampj/python-keycloak', + license='GNU General Public License - V3', + author='Marcos Pereira', + author_email='marcospereira.mpj@gmail.com', + keywords='keycloak openid', + description=u'python-keycloak is a Python package providing access to the Keycloak API.', + packages=['keycloak'], + install_requires=['requests==2.18.3', 'httmock==1.2.5'], +)