Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 992B71076F for ; Thu, 12 Dec 2013 15:23:45 +0000 (UTC) Received: (qmail 77374 invoked by uid 500); 12 Dec 2013 15:23:45 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 75948 invoked by uid 500); 12 Dec 2013 15:23:41 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 75299 invoked by uid 99); 12 Dec 2013 15:23:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 15:23:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pedro.larroy.lists@gmail.com designates 209.85.128.178 as permitted sender) Received: from [209.85.128.178] (HELO mail-ve0-f178.google.com) (209.85.128.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 15:23:34 +0000 Received: by mail-ve0-f178.google.com with SMTP id c14so402174vea.37 for ; Thu, 12 Dec 2013 07:23:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=E5nP12ECfO4YE3CZSVcr4zNME7XiAa+WKpzNoiDAOlo=; b=Xefnq4T663pG8vIkvfLUB3E0O8BpFDEimlL4cExcyay2KvC0dK8XaNqDn7E8DPuqod v+ioSRXcqySn9//w3dkfLs+jQPGRUPiE14Ey5vqITcsKq2pcQxsmAdl42PqDzA0u7w4/ beZXXKCaAVo+PwxWpA0bwjjH1hUJ10BJNaPMeaMb/rLxxhUTp5msEExvzHz94G14XjHR y/gstsmTXk/e9s0f86C2hqIGI4YxPZikKvRjgzBqGhxF7JfQ+m6Dzdu+qdN3tDwet/0p E93EUE+mEyDj91d6LSbauN8eGgFvGjNN338AwpfKR9G7RVt/JyXguiGANnXcPeBprjhw 0xpw== MIME-Version: 1.0 X-Received: by 10.58.233.98 with SMTP id tv2mr4130634vec.11.1386861793791; Thu, 12 Dec 2013 07:23:13 -0800 (PST) Received: by 10.58.112.234 with HTTP; Thu, 12 Dec 2013 07:23:13 -0800 (PST) In-Reply-To: References: Date: Thu, 12 Dec 2013 16:23:13 +0100 Message-ID: Subject: Re: [jira] [Commented] (AVRO-1382) Support for python3 From: Pedro Larroy To: dev@avro.apache.org Content-Type: multipart/alternative; boundary=089e0115ef9c927c2704ed57ecfd X-Virus-Checked: Checked by ClamAV on apache.org --089e0115ef9c927c2704ed57ecfd Content-Type: text/plain; charset=ISO-8859-1 There were just some strings replaced by ant, and I prefer to have the python module more standalone, on the other side still we need to then put the avro version somewhere, which so far is an ant replacement string in the released versions. Pedro. On Thu, Dec 12, 2013 at 12:18 AM, Doug Cutting (JIRA) wrote: > > [ > https://issues.apache.org/jira/browse/AVRO-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845820#comment-13845820] > > Doug Cutting commented on AVRO-1382: > ------------------------------------ > > Ant is not required. > > All that releases require is that the top-level build.sh script works. In > particular, that './build.sh dist' puts binary release artifacts in the > top-level dist/ directory, that 'test' runs unit tests, and 'clean' removes > files generated by the other commands. > > If ant is replaced with some other build tool then the top-level build.sh > should be updated to invoke the new tool rather than ant. Some languages > implement a lang/*/build.sh script that invokes a language-specific build > tool and then copies source code archive files up to ../../dist. > > Also, if the build tools change then the top-level BUILD.txt file should > be updated. > > > > > Support for python3 > > ------------------- > > > > Key: AVRO-1382 > > URL: https://issues.apache.org/jira/browse/AVRO-1382 > > Project: Avro > > Issue Type: Bug > > Components: python > > Affects Versions: 1.7.5 > > Reporter: Christophe Taton > > Attachments: AVRO-1382.20131203-001922.diff > > > > > > Hi, > > I'd need to use Avro from Python3, which would require essentially the > following changes, which I am happy to contribute: > > - rewrite except statements according to new syntax > > - rewrite print statements according to new syntax > > - basestring becomes str > > - update some imports (StringIO becomes io.StringIO, httplib becomes > http.client) > > This would apparently require branching the python code to maintain a > version for python2 and a separate version for python3. > > Any thoughts on how to approach this? > > Thanks! > > > > -- > This message was sent by Atlassian JIRA > (v6.1.4#6159) > --089e0115ef9c927c2704ed57ecfd--