Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

104 lines (84 sloc) 3.789 kb
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
**setup.py**
**Platform:**
Windows, Linux, Mac Os X.
**Description:**
`https://pypi.python.org/pypi/Manager <https://pypi.python.org/pypi/Manager>`_ package setup file.
**Others:**
"""
#**********************************************************************************************************************
#*** Future imports.
#**********************************************************************************************************************
from __future__ import unicode_literals
#**********************************************************************************************************************
#*** Encoding manipulations.
#**********************************************************************************************************************
def _setEncoding():
"""
Sets the Package encoding.
"""
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
_setEncoding()
#**********************************************************************************************************************
#*** External imports.
#**********************************************************************************************************************
import re
from setuptools import setup
from setuptools import find_packages
#**********************************************************************************************************************
#*** Internal imports.
#**********************************************************************************************************************
import manager.globals.constants
#**********************************************************************************************************************
#*** Module attributes.
#**********************************************************************************************************************
__author__ = "Thomas Mansencal"
__copyright__ = "Copyright (C) 2008 - 2014 - Thomas Mansencal"
__license__ = "GPL V3.0 - http://www.gnu.org/licenses/"
__maintainer__ = "Thomas Mansencal"
__email__ = "thomas.mansencal@gmail.com"
__status__ = "Production"
__all__ = ["getLongDescription"]
#**********************************************************************************************************************
#*** Module classes and definitions.
#**********************************************************************************************************************
def getLongDescription():
"""
Returns the Package long description.
:return: Package long description.
:rtype: unicode
"""
description = []
with open("README.rst") as file:
for line in file:
if ".. code:: python" in line and len(description) >= 2:
blockLine = description[-2]
if re.search(r":$", blockLine) and not re.search(r"::$", blockLine):
description[-2] = "::".join(blockLine.rsplit(":", 1))
continue
description.append(line)
return "".join(description)
setup(name=manager.globals.constants.Constants.applicationName,
version=manager.globals.constants.Constants.version,
author=manager.globals.constants.__author__,
author_email=manager.globals.constants.__email__,
include_package_data=True,
packages=find_packages(),
scripts=[],
url="https://github.com/KelSolaar/Manager",
license="GPLv3",
description="Manager is the Components Manager package of Umbra, sIBL_GUI and sIBL_Reporter.",
long_description=getLongDescription(),
install_requires=["Foundations>=2.1.0"],
classifiers=["Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Topic :: Utilities"])
Jump to Line
Something went wrong with that request. Please try again.