[17:13:56] <Ivo> so I need a hg checkout I'm guessing
[17:15:35] <jaraco> Ivo - that’s right… because that’s what jaraco.packaging assumes.
[17:16:32] <jaraco> I’d love to move to a setuptools_scm-based implementation, but I’m worried about compatibility, especially in bootstrapping… and I don’t want to open that can of worms while setuptools is unstable (which it is right now).
[17:17:08] <dstufft> jaraco: I kind of want a setuptools-scm like thing for pip, but only in development, it should emit a sdist without any setup_requires :]
[17:21:44] <jaraco> Right now, setup_requires is the best implementation available. I’m hoping my work or rwt will result in some techniques that will make things like setup_requires so painless that it can be used with impunity.
[17:23:17] <jaraco> But thinking about your goals, dstufft, isn’t what you describe - emitting an sdist without setup_requires - already met by wheel dists?
[17:23:39] <dstufft> jaraco: wheels aren't sdists they are bdists :]
[17:24:10] <dstufft> I think that a sdist should have a baked in version
[17:24:33] <dstufft> once you've generated the sdist, the version should no longer be dynamic, a sdist has a singular version, known at generation time.
[17:24:38] <jaraco> I did explore this possibility when I was first working on hgtools.
[17:25:04] <jaraco> And pje gave some advice that it essentially couldn’t be done with the metadata as it’s currently represented.
[17:25:13] <jaraco> So the tooling would need to be adapted to support it.
[17:25:19] <jaraco> But I’d be very much in favor of that.
[17:25:23] <Ivo> dstufft: setup_requires = ['setuptools_scm'] if '* develop' in subprocess.check_output('git branch -l'.split()) else []
[18:28:56] <jaraco> Not sure; I don’t get prompted for a password, but that’s because I store my password in .pypirc and have github and bitbucket passwords already stored elsewhere.
[18:29:06] <jaraco> Yes, milestones and versions is for bitbucket. Totally ignorable.
[18:29:29] <jaraco> Thanks for getting through it and for the feedback.
[18:29:37] <jaraco> After moving to github, things will get easier.
[18:29:54] <jaraco> And I’ll factor in these other considerations to try to simplify the process.
[20:42:07] <ronny> jaraco: the tool is unfinished, and due to fmily visit i didnt have time to finish the username mapping while burning the leftover vacaton before starting a new job
[20:42:09] <jaraco> Heya ronny. I’m fighting https://github.com/jeffwidman/bitbucket-issue-migration/issues/65 right now.
[20:42:28] <ronny> jaraco: you might want to take a look at my fork
[20:42:30] <Ivo> dstufft: dayum, holy blog-post comment on #3416
[20:42:54] <jaraco> ronny: okay. I’ll do that. I wasn’t sure what the status was.
[20:42:55] <ronny> jaraco: because afair that one is seriously broken, and mine is bascially a complete rewrite
[20:43:26] <jaraco> That repo has undergone some major revisions, and is more stable now with an active maintainer.
[20:43:27] <ronny> jaraco: i finished the tooling around username mapping, but i havent finished the comment editing to actuallly replace username references
[20:43:45] <jaraco> But I’ll review your commits and incorporate any relevant fixes into the upstream before finalizing the migration.
[20:44:23] <ronny> jaraco: i did a complete rewrite/restructure (since it wasa good chance to re-calibrate my instincts
[20:44:53] <ronny> there is incremental download, offline transformation and a completely separate bulk upload step
[20:45:31] <Ivo> jaraco: maybe if you put a time.sleep(0.4) after line 142 it could work :D
[20:45:48] <ronny> oh, and my code has support for the rate limters of github
[20:46:09] <ronny> and by support i mean adaptive sleep based on the response headers
[20:47:08] <jaraco> ronny: that’s cool. The latest upstream version uses an import API created for this purpose. But the offline transformation sounds helpful.
[20:47:11] <ronny> jaraco: the code you linked is pretty much bad
[20:47:43] <ronny> jaraco: i dodownload the bb issues, support incremental updates of the comments downloaded, and offline transform to bulk upload requests
[20:48:26] <ronny> the part thats missing in my code is using the username map that maps github users to bitbucket users to add the extra metadaa to the comments (loke original poster/reference to unknown bitbucket users=
[20:49:36] <ronny> jaraco: also whats missing is a username map for setuptools
[20:53:00] <jaraco> Sounds good. I linked this IRC discussion to the ticket for the migration. One of us or someone else can follow up based on the update.
[20:53:03] <pmxbot> you're doing good work, ronny!
[21:03:39] <ronny> jaraco: i#ll take a look at integrating the usermap now
[21:03:56] <ronny> (its missing in the offline transformation step)
[21:05:13] <jaraco> Thanks ronny. If you decide it’s too much work, it’s not a hard requirement - just looking to get the best fidelity we can during the migration with a modest amount of work.
[21:06:10] <ronny> jaraco: it can at least be rasonably well done
[21:43:37] <tomprince> dstufft: https://github.com/warner/python-versioneer is a `setuptools-scm`-alike that generates sdists with backed in version.