forked from py-gmssl/py-gmssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (35 loc) · 972 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#coding:utf-8
import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
readme_file = os.path.join(here, 'README.md')
def read_text(file_path):
"""
fix the default operating system encoding is not utf8.
"""
if sys.version_info.major < 3:
with open(file_path) as f:
return f.read()
with open(file_path, encoding="utf8") as f:
return f.read()
README = read_text(os.path.join(here, 'README.md'))
requires = [
]
test_requirements = [
]
setup(
name='gmssl',
description='Pure-Python SM2/SM3/SM4 implementation',
version='3.2.1',
author='duanhongyi',
author_email='[email protected]',
packages=find_packages(),
include_package_data=True,
long_description=README,
url='https://github.com/duanhongyi/gmssl',
install_requires=requires,
tests_require=test_requirements,
platforms='all platform',
license='BSD',
)