33Setup script for module `python-camellia`.
44
55Usage:
6- setup.py build Builds extension modules and prepares for
7- installation
8- setup.py install Installs module
6+ setup.py build Build extension modules and prepare for install.
7+ setup.py install Install module.
98
10- setup.py sdist Creates source package
11- setup.py bdist_wheel Creates a `wheel` binary package
9+ setup.py sdist Create source package.
10+ setup.py bdist_wheel Create a `wheel` binary package.
1211"""
1312
1413from __future__ import print_function
1918
2019try :
2120 from setuptools import setup , find_packages
22- except ImportError :
21+ except ImportError :
2322 print ('This module requires setuptools.' )
2423 print ('Please install setuptools with get-pip.py!' )
25-
24+
2625 sys .exit (1 )
2726
2827sys .path .append (os .path .join (os .path .dirname (__file__ ), 'src' ))
29-
30- import camellia_build
28+
29+ import camellia_build # nopep8
3130
3231description = 'Camellia-cipher in Python'
3332
@@ -36,12 +35,13 @@ def long_description(short=description):
3635 """Try to read README.rst or returns fallback."""
3736 try :
3837 return open ('README.rst' ).read ()
39- except :
38+ except FileNotFoundError :
4039 return short
4140
4241
4342ext = camellia_build .ffi .distutils_extension ()
44- ext .include_dirs .append (os .path .join (os .path .dirname (__file__ ), 'src' , 'camellia_build' ))
43+ ext .include_dirs .append (
44+ os .path .join (os .path .dirname (__file__ ), 'src' , 'camellia_build' ))
4545
4646
4747setup (
@@ -52,11 +52,11 @@ def long_description(short=description):
5252 author = 'Simon Biewald' ,
5353 author_email = 'simon.biewald@homtail.de' ,
5454 url = 'https://github.com/var-sec/python-camellia' ,
55- packages = ['camellia' ],
56- package_dir = {'camellia' :'src/camellia' },
55+ packages = ['camellia' ],
56+ package_dir = {'camellia' : 'src/camellia' },
5757
58- license = 'MIT' ,
59- classifiers = [
58+ license = 'MIT' ,
59+ classifiers = [
6060 'Development Status :: 3 - Alpha' ,
6161 'Intended Audience :: Developers' ,
6262 'License :: OSI Approved :: MIT License' ,
@@ -68,13 +68,13 @@ def long_description(short=description):
6868 'Topic :: Security' ,
6969 'Topic :: Security :: Cryptography' ,
7070 ],
71- keywords = [
71+ keywords = [
7272 'camellia' , 'encryption' , 'decryption' , 'cipher' ,
7373 ],
7474
75- platforms = ['all' ],
75+ platforms = ['all' ],
7676
77- ext_modules = [ext ],
77+ ext_modules = [ext ],
7878 setup_requires = ['cffi>=1.0.0' ],
7979 install_requires = ['cffi>=1.0.0' , 'pep272-encryption' ]
8080
0 commit comments