25
25
# Remove C file to force Cython recompile.
26
26
os .remove (c_path )
27
27
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
-
33
28
from Cython .Build import cythonize
34
29
ext_modules = cythonize (Extension (
35
30
"bencoder" ,
36
31
[pyx_path ],
37
32
define_macros = [('CYTHON_TRACE' , '1' )]
38
- ))
33
+ ), compiler_directives = {
34
+ 'linetrace' : True ,
35
+ 'binding' : True
36
+ })
39
37
else :
40
38
from Cython .Build import cythonize
41
39
ext_modules = cythonize (Extension (
@@ -99,7 +97,7 @@ def get_tag(self):
99
97
100
98
setup (
101
99
name = 'bencoder.pyx' ,
102
- version = '1.1.3 ' ,
100
+ version = '1.2.0 ' ,
103
101
description = 'Yet another bencode implementation in Cython' ,
104
102
long_description = open ('README.rst' , 'r' ).read (),
105
103
author = 'whtsky' ,
@@ -125,6 +123,7 @@ def get_tag(self):
125
123
'Programming Language :: Python :: 3.3' ,
126
124
'Programming Language :: Python :: 3.4' ,
127
125
'Programming Language :: Python :: 3.5' ,
126
+ 'Programming Language :: Python :: 3.6' ,
128
127
'Programming Language :: Python :: Implementation :: CPython' ,
129
128
'Programming Language :: Python :: Implementation :: PyPy' ,
130
129
'Intended Audience :: Developers' ,
0 commit comments