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
|
from __future__ import absolute_import
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import wolfcrypt
|
from wolfcrypt.__about__ import metadata
|
||||||
from setuptools import setup, find_packages
|
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 ".")
|
os.chdir(os.path.dirname(sys.argv[0]) or ".")
|
||||||
|
|
||||||
long_description = open("README.rst", "rt").read().replace(
|
long_description = open("README.rst", "rt").read().replace(
|
||||||
@@ -40,7 +34,7 @@ long_description = open("README.rst", "rt").read().replace(
|
|||||||
)
|
)
|
||||||
|
|
||||||
info = dict(
|
info = dict(
|
||||||
metadata = about.get_metadata(wolfcrypt),
|
metadata = {k[2:-2]: metadata[k] for k in metadata},
|
||||||
contents = {
|
contents = {
|
||||||
"long_description": long_description,
|
"long_description": long_description,
|
||||||
"package_data": {"": ["*.txt"]},
|
"package_data": {"": ["*.txt"]},
|
||||||
@@ -48,8 +42,8 @@ info = dict(
|
|||||||
"cffi_modules": ["./wolfcrypt/build_ffi.py:ffi"],
|
"cffi_modules": ["./wolfcrypt/build_ffi.py:ffi"],
|
||||||
},
|
},
|
||||||
requirements = {
|
requirements = {
|
||||||
"setup_requires": ["cffi>=1.6.0", "about>=5.2"],
|
"setup_requires": ["cffi>=1.6.0"],
|
||||||
"install_requires": ["cffi>=1.6.0", "about>=5.2"],
|
"install_requires": ["cffi>=1.6.0"],
|
||||||
},
|
},
|
||||||
scripts = {},
|
scripts = {},
|
||||||
plugins = {},
|
plugins = {},
|
||||||
|
@@ -19,16 +19,25 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
|
|
||||||
metadata = dict(
|
metadata = dict(
|
||||||
__name__ = "wolfcrypt",
|
__name__ = "wolfcrypt",
|
||||||
__version__ = "0.1.5",
|
__version__ = "0.1.6",
|
||||||
__license__ = """GPLv2 or Commercial License""",
|
__license__ = "GPLv2 or Commercial License",
|
||||||
__author__ = "wolfSSL Inc. <info@wolfssl.com>",
|
__author__ = "wolfSSL Inc.",
|
||||||
__url__ = "https://wolfssl.github.io/wolfcrypt-py",
|
__author_email__ = "info@wolfssl.com",
|
||||||
__summary__ = "A Python library that encapsulates wolfSSL's wolfCrypt API.",
|
__url__ = "https://wolfssl.github.io/wolfcrypt-py",
|
||||||
__keywords__ = """
|
__description__ = \
|
||||||
OS independent, Python / 2.7, Python / 3.5, software development,
|
u"A Python library that encapsulates wolfSSL's wolfCrypt API.",
|
||||||
security, cryptography, Proprietary, GPLv2
|
__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)
|
globals().update(metadata)
|
||||||
|
Reference in New Issue
Block a user