fixes about

This commit is contained in:
Moisés Guimarães
2016-05-05 12:48:47 -03:00
parent 9e9fd24d68
commit b0c23ceafa
6 changed files with 90 additions and 80 deletions

View File

@@ -1,30 +1,61 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2016 wolfSSL Inc.
#
# This file is part of wolfSSL. (formerly known as CyaSSL)
#
# wolfSSL is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# wolfSSL is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
# Python 2.7 Standard Library
from __future__ import absolute_import
import os
import sys
import wolfcrypt
from setuptools import setup, find_packages
try:
import about
except ImportError:
error = "about is not installed, refer to <{url}> for instructions."
raise ImportError(error.format(url="https://pypi.io/project/about/"))
os.chdir(os.path.dirname(sys.argv[0]) or ".")
setup(
name="wolfcrypt",
version="0.1.0",
description="A Python wrapper that encapsulates wolfSSL's wolfCrypt API",
long_description=open("README.rst", "rt").read(),
url="https://wolfssl.github.io/wolfcrypt-py",
author="wolfSSL",
author_email="info@wolfssl.com",
classifiers=[
"Development Status :: 0 - Alpha",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: GPLv2 License :: Commercial License",
],
packages=find_packages(),
setup_requires=["cffi>=1.6.0"],
install_requires=["cffi>=1.6.0"],
cffi_modules=["./wolfcrypt/build_ffi.py:ffi"]
long_description = open("README.rst", "rt").read().replace(
".. include:: LICENSING.rst\n",
open("LICENSING.rst", "rt").read()
)
info = dict(
metadata = about.get_metadata(wolfcrypt),
contents = {
"long_description": long_description,
"package_data": {"": ["*.txt"]},
"packages": find_packages(),
"cffi_modules": ["./wolfcrypt/build_ffi.py:ffi"],
},
requirements = {
"setup_requires": ["cffi>=1.6.0", "about>=5.2"],
"install_requires": ["cffi>=1.6.0", "about>=5.2"],
},
scripts = {},
plugins = {},
tests = {},
)
if __name__ == "__main__":
kwargs = {k:v for dct in info.values() for (k,v) in dct.items()}
setup(**kwargs)