Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; ';-)': 0.03; 'url:pypi': 0.03; 'algorithm': 0.04; 'newbie': 0.05; 'pypi': 0.07; 'string': 0.09; 'name?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:PyPI': 0.09; 'works.': 0.09; 'python': 0.11; 'gui': 0.12; 'jan': 0.12; 'suggest': 0.14; 'changes': 0.15; 'backward': 0.16; 'compatible,': 0.16; 'compatible.': 0.16; 'confuse': 0.16; 'porting': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'url:py': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'trying': 0.19; 'version.': 0.19; 'programming': 0.22; 'comfortable': 0.22; 'community.': 0.22; 'creating': 0.23; 'header :User-Agent:1': 0.23; '(by': 0.24; 'bytes': 0.24; 'script.': 0.24; "shouldn't": 0.24; 'unicode': 0.24; 'script': 0.25; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'point': 0.28; 'characters': 0.30; 'cool': 0.30; "i'm": 0.30; 'code': 0.31; 'author,': 0.31; 'probably': 0.32; 'quite': 0.32; 'url:python': 0.33; '(e.g.': 0.33; 'copying': 0.34; 'maybe': 0.34; 'could': 0.34; 'common': 0.35; 'possible.': 0.35; 'but': 0.35; 'version': 0.36; 'i.e.': 0.36; "didn't": 0.36; 'useful': 0.36; 'url:org': 0.36; 'should': 0.36; 'so,': 0.37; 'project': 0.37; 'others.': 0.38; 'version,': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'planning': 0.38; 'pm,': 0.38; 'that,': 0.38; 'does': 0.39; 'bad': 0.39; "couldn't": 0.39; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'release': 0.40; 'how': 0.40; 'even': 0.60; 'number,': 0.60; 'new': 0.61; 'browser': 0.61; 'took': 0.61; 'course': 0.61; 'simple': 0.61; 'first': 0.61; 'name': 0.63; 'contacting': 0.63; 'him,': 0.64; 'more': 0.64; 'different': 0.65; 'license': 0.66; 'here': 0.66; 'url:0': 0.67; 'contact': 0.67; 'biggest': 0.67; 'realized': 0.68; 'url:gl': 0.72; 'touch': 0.74; 'url:goo': 0.75; '"hey,': 0.84; '*and*': 0.84; 'exercise,': 0.84; 'person)': 0.84; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Forking PyPI package Date: Wed, 28 May 2014 22:06:08 -0400 References: <1fgpxn70wxrg0.1rv21r79ohz7z$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-71-175-90-87.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <1fgpxn70wxrg0.1rv21r79ohz7z$.dlg@40tude.net> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 51 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401329186 news.xs4all.nl 2837 [2001:888:2000:d::a6]:42280 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72209 On 5/28/2014 8:31 PM, Wiktor wrote: > Hello. > > There's script pwdhash https://pypi.python.org/pypi/pwdhash.py/0.1.1, > which I always* wanted to port to Python 3. (* - well, i.e. 6 months ;-)) > I'm using this hashing algorithm quite often for years in my browser > (Opera plugin), so I thought that it would be cool to have it as python > script. > > It took me some time to make it work under Python 3, because I knew > nothing about str <-> bytes encoding, and this was biggest issue why > original script wasn't Py3 compatible. So now my version works, it even > supports Unicode characters (original JS script does that, but pwdhash.py > script doesn't), and now I'm planning to do simple GUI version, because > copying from console isn't very comfortable (and I couldn't find good [os > and other packages independent] solution to copy string to clipboard. Best > answer from here http://goo.gl/8V9Ba6 isn't working). > So, my point is, I think maybe it would be useful also to others. > > I'm newbie not only to Python, but to programming in general, so I don't > know, what is best practice in OS programming community. How forking works. > How py2->py3 porting (by 3rd person) is realized in Pythonians community. > Can you suggest me something? I see few scenarios: > > 1) I'm trying to contact with original script's author, and send him my > propositions of changes in code. (Oh, one more thing: my code isn't > backward compatible, and I don't know Py2 that much to include all those > try/except, so it could be Py2+Py3 compatible). He decides, if he wants to > release it as Py3 only version, or combine it with his script and release > Py2+Py3 common version. > > 2) I'm not contacting with him, and I'm forking his project on GitHub > a) under the same name? - probably bad idea > b) under new name (e.g. py3pwdhash)? > Of course all credits about original author stay in code / setup.py. > > 2.1) After forking on GitHub, I'm creating new package on PyPI > a) under old name, but different version number, and new description? > b) under new name, to not confuse users? > > > So, what should I do? > I know, that maybe I shouldn't touch that script in first place and just > mail to author "Hey, would you please port it to Py3?", but I also treated > it as programming exercise, and I didn't think about consequences. ;-) Check the license of the code *and* contact the author if possible. -- Terry Jan Reedy