mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-04 21:24:43 +02:00
drops 'import about' requirement
This commit is contained in:
@@ -23,15 +23,9 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
import sys
|
||||
import wolfcrypt
|
||||
from wolfcrypt.__about__ import metadata
|
||||
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 ".")
|
||||
|
||||
long_description = open("README.rst", "rt").read().replace(
|
||||
@@ -40,7 +34,7 @@ long_description = open("README.rst", "rt").read().replace(
|
||||
)
|
||||
|
||||
info = dict(
|
||||
metadata = about.get_metadata(wolfcrypt),
|
||||
metadata = {k[2:-2]: metadata[k] for k in metadata},
|
||||
contents = {
|
||||
"long_description": long_description,
|
||||
"package_data": {"": ["*.txt"]},
|
||||
@@ -48,8 +42,8 @@ info = dict(
|
||||
"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"],
|
||||
"setup_requires": ["cffi>=1.6.0"],
|
||||
"install_requires": ["cffi>=1.6.0"],
|
||||
},
|
||||
scripts = {},
|
||||
plugins = {},
|
||||
|
@@ -20,15 +20,24 @@
|
||||
|
||||
metadata = dict(
|
||||
__name__ = "wolfcrypt",
|
||||
__version__ = "0.1.5",
|
||||
__license__ = """GPLv2 or Commercial License""",
|
||||
__author__ = "wolfSSL Inc. <info@wolfssl.com>",
|
||||
__version__ = "0.1.6",
|
||||
__license__ = "GPLv2 or Commercial License",
|
||||
__author__ = "wolfSSL Inc.",
|
||||
__author_email__ = "info@wolfssl.com",
|
||||
__url__ = "https://wolfssl.github.io/wolfcrypt-py",
|
||||
__summary__ = "A Python library that encapsulates wolfSSL's wolfCrypt API.",
|
||||
__keywords__ = """
|
||||
OS independent, Python / 2.7, Python / 3.5, software development,
|
||||
security, cryptography, Proprietary, GPLv2
|
||||
""",
|
||||
__description__ = \
|
||||
u"A Python library that encapsulates wolfSSL's wolfCrypt API.",
|
||||
__keywords__ = "security, cryptography",
|
||||
__classifiers__ = [
|
||||
u"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
|
||||
u"License :: Other/Proprietary License",
|
||||
u"Operating System :: OS Independent",
|
||||
u"Programming Language :: Python :: 2.7",
|
||||
u"Programming Language :: Python :: 3.5",
|
||||
u"Topic :: Security",
|
||||
u"Topic :: Security :: Cryptography",
|
||||
u"Topic :: Software Development"
|
||||
]
|
||||
)
|
||||
|
||||
globals().update(metadata)
|
||||
|
Reference in New Issue
Block a user