This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
59 lines (48 loc) · 1.78 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
49
50
51
52
53
54
55
56
57
58
59
# SPDX-FileCopyrightText: 2016, 2022, 2023 Ivan Vilata-i-Balaguer <[email protected]>
#
# SPDX-License-Identifier: MIT
# Based on PyPA sample project's setup script.
"""Pymultihash installation script."""
import os.path
from setuptools import setup, find_packages
thisdir = os.path.abspath(os.path.dirname(__file__))
# Fetch version from source.
with open(os.path.join(thisdir, 'multihash', 'version.py')) as verfile:
version = {}
exec(verfile.read(), version)
version = version['__version__']
# Load readme file into long description.
with open(os.path.join(thisdir, 'README.rst')) as readme:
long_description = readme.read()
setup(
name='pymultihash',
version=version,
description="Python implementation of the multihash specification",
long_description=long_description,
url='https://github.com/ivilata/pymultihash',
author="Ivan Vilata-i-Balaguer <[email protected]>",
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Security :: Cryptography',
],
keywords="multihash hash digest format ASCII encoding",
packages=find_packages(),
install_requires=[],
extras_require={
'sha3': ['pysha3'],
'blake2': ['pyblake2'],
'base58': ['base58 >= 1.0'],
},
test_suite='tests.test_multihash.suite',
)