-
Notifications
You must be signed in to change notification settings - Fork 140
/
setup.py
48 lines (37 loc) · 1.02 KB
/
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
48
#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 = [
"pycryptodomex"
]
test_requirements = [
]
setup(
name='gmssl',
description='Pure-Python SM2/SM3/SM4 implementation',
version='3.2.2',
author='duanhongyi',
author_email='duanhyi@gmail.com',
packages=find_packages(),
include_package_data=True,
long_description=README,
long_description_content_type="text/markdown",
url='https://github.com/duanhongyi/gmssl',
install_requires=requires,
tests_require=test_requirements,
platforms='all platform',
license='BSD',
)