From 423e4f1f8ce9672215319fe42f10900f7ee4291e Mon Sep 17 00:00:00 2001 From: Andrey Cizov Date: Sat, 13 Jul 2019 16:44:42 +0100 Subject: [PATCH] remove warning during compilation --- capnp/lib/capnp.pxd | 2 ++ capnp/lib/capnp.pyx | 1 + setup.py | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/capnp/lib/capnp.pxd b/capnp/lib/capnp.pxd index 0882bb7..e8dffa5 100644 --- a/capnp/lib/capnp.pxd +++ b/capnp/lib/capnp.pxd @@ -1,3 +1,5 @@ +# cython: language_level = 2 + from capnp.includes cimport capnp_cpp as capnp from capnp.includes cimport schema_cpp from capnp.includes.capnp_cpp cimport Schema as C_Schema, StructSchema as C_StructSchema, InterfaceSchema as C_InterfaceSchema, EnumSchema as C_EnumSchema, ListSchema as C_ListSchema, DynamicStruct as C_DynamicStruct, DynamicValue as C_DynamicValue, Type as C_Type, DynamicList as C_DynamicList, SchemaParser as C_SchemaParser, ParsedSchema as C_ParsedSchema, VOID, ArrayPtr, StringPtr, String, StringTree, DynamicOrphan as C_DynamicOrphan, AnyPointer as C_DynamicObject, DynamicCapability as C_DynamicCapability, Request, Response, RemotePromise, PyPromise, VoidPromise, CallContext, PyRestorer, RpcSystem, makeRpcServer, makeRpcServerBootstrap, makeRpcClient, Capability as C_Capability, TwoPartyVatNetwork as C_TwoPartyVatNetwork, Side, AsyncIoStream, Own, makeTwoPartyVatNetwork, PromiseFulfillerPair as C_PromiseFulfillerPair, copyPromiseFulfillerPair, newPromiseAndFulfiller, PyArray, DynamicStruct_Builder diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index 071317f..6830ba6 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -6,6 +6,7 @@ # cython: c_string_type = str # cython: c_string_encoding = default # cython: embedsignature = True +# cython: language_level = 2 cimport cython diff --git a/setup.py b/setup.py index f04d2de..db60d82 100644 --- a/setup.py +++ b/setup.py @@ -44,8 +44,8 @@ write_version_py() # Try to convert README using pandoc try: import pypandoc - long_description = pypandoc.convert('README.md', 'rst') - changelog = pypandoc.convert('CHANGELOG.md', 'rst') + long_description = pypandoc.convert_file('README.md', 'rst') + changelog = pypandoc.convert_file('CHANGELOG.md', 'rst') changelog = '\nChangelog\n=============\n' + changelog long_description += changelog except (IOError, ImportError):