|
1 | | -""" Whirlpool: Bindings for whirlpool hash reference implementation. |
2 | | -
|
3 | | -The Whirlpool hashing algorithm (http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html), |
4 | | -written by Vincent Rijmen and Paulo S. L. M. Barreto is a secure, modern hash which is |
5 | | -as yet unbroken and fairly obscure. Provided on the algorithm's page is a C reference |
6 | | -implementation which is fairly simple to wrap with a Python extension, which is much |
7 | | -faster than re-implementation in pure Python. |
8 | | -""" |
| 1 | +"""Whirlpool: Bindings for whirlpool hash reference implementation.""" |
| 2 | +import os |
| 3 | +import sys |
| 4 | + |
9 | 5 | from setuptools import setup, Extension |
10 | 6 |
|
| 7 | +if sys.version_info.major < 3: |
| 8 | + from io import open |
| 9 | + |
| 10 | + |
| 11 | +doclines = __doc__.strip().split('\n') |
| 12 | + |
| 13 | + |
| 14 | +HERE = os.path.abspath(os.path.dirname(__file__)) |
| 15 | +with open(os.path.join(HERE, 'README.md'), encoding='utf-8') as f: |
| 16 | + README = '\n' + f.read() |
| 17 | +with open(os.path.join(HERE, 'CHANGELOG.md'), encoding='utf-8') as f: |
| 18 | + CHANGELOG = '\n' + f.read() |
11 | 19 |
|
12 | | -doclines = __doc__.split("\n") |
13 | 20 |
|
14 | 21 | setup(name = "Whirlpool", |
15 | 22 | version = "1.0.0.dev1", |
16 | 23 | description = doclines[0], |
17 | | - long_description = "\n".join(doclines[2:]), |
| 24 | + long_description = README + '\n' + CHANGELOG, |
18 | 25 | classifiers=[ |
| 26 | + "Development Status :: 5 - Production/Stable", |
19 | 27 | "Intended Audience :: Developers", |
20 | 28 | "License :: Public Domain", |
21 | 29 | "Programming Language :: C", |
|
24 | 32 | "Programming Language :: Python :: 2.7", |
25 | 33 | "Programming Language :: Python :: 3", |
26 | 34 | "Programming Language :: Python :: 3.3", |
| 35 | + "Programming Language :: Python :: 3.4", |
| 36 | + "Programming Language :: Python :: 3.5", |
| 37 | + "Programming Language :: Python :: 3.6", |
| 38 | + "Programming Language :: Python :: Implementation :: PyPy", |
27 | 39 | "Topic :: Security :: Cryptography", |
28 | 40 | "Topic :: Software Development :: Libraries :: Python Modules", |
29 | 41 | ], |
|
0 commit comments