2525 # Remove C file to force Cython recompile.
2626 os .remove (c_path )
2727 if 'test' in sys .argv and platform .python_implementation () == 'CPython' :
28- from Cython .Compiler .Options import directive_defaults
29-
30- directive_defaults ['linetrace' ] = True
31- directive_defaults ['binding' ] = True
32-
3328 from Cython .Build import cythonize
3429 ext_modules = cythonize (Extension (
3530 "bencoder" ,
3631 [pyx_path ],
3732 define_macros = [('CYTHON_TRACE' , '1' )]
38- ))
33+ ), compiler_directives = {
34+ 'linetrace' : True ,
35+ 'binding' : True
36+ })
3937 else :
4038 from Cython .Build import cythonize
4139 ext_modules = cythonize (Extension (
@@ -99,7 +97,7 @@ def get_tag(self):
9997
10098setup (
10199 name = 'bencoder.pyx' ,
102- version = '1.1.3 ' ,
100+ version = '1.2.0 ' ,
103101 description = 'Yet another bencode implementation in Cython' ,
104102 long_description = open ('README.rst' , 'r' ).read (),
105103 author = 'whtsky' ,
@@ -125,6 +123,7 @@ def get_tag(self):
125123 'Programming Language :: Python :: 3.3' ,
126124 'Programming Language :: Python :: 3.4' ,
127125 'Programming Language :: Python :: 3.5' ,
126+ 'Programming Language :: Python :: 3.6' ,
128127 'Programming Language :: Python :: Implementation :: CPython' ,
129128 'Programming Language :: Python :: Implementation :: PyPy' ,
130129 'Intended Audience :: Developers' ,
0 commit comments