Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for PEP 517/518 #5

Merged
merged 8 commits into from
Jul 24, 2020
Merged

Add support for PEP 517/518 #5

merged 8 commits into from
Jul 24, 2020

Conversation

botant
Copy link
Contributor

@botant botant commented Jun 28, 2020

Here is my attempt to add support for PEP 517/518. Tests can be improved, and documentation needs to be updated, but I wanted to know what you think before continuing. Thanks!

@ionelmc
Copy link
Owner

ionelmc commented Jun 28, 2020

At first glance this looks good. How will the develop mode be handled in pep518 mode?

@botant
Copy link
Contributor Author

botant commented Jun 28, 2020 via email

@ionelmc
Copy link
Owner

ionelmc commented Jun 29, 2020

I think for now we need to disallow that (iow: give clear error to use that pep518 mode can't be used with develop mode).

There's no support for it yet, see pypa/pip#8212 for what's worked on.

@botant
Copy link
Contributor Author

botant commented Jun 29, 2020

Just committed a fix and test for the patch function.

About develop mode, am I right in interpreting that we currently don't build the wheel at all? I'm a bit puzzled about the idea of building a wheel and editing it in one go, kind of compiling and editing at the same time. I might be short sighted, but I can't see how these two things would go together.

@botant
Copy link
Contributor Author

botant commented Jun 29, 2020

On a different note, we should add Python 3.8 to tox.ini since it is supported by tox.

Also, would you be open to adding Black and pre-commit to the project? I could have a stab at that in another PR.

@ionelmc
Copy link
Owner

ionelmc commented Jun 29, 2020

Ah ... I think I may have forgotten that develop mode already disables the plugin.

Black - not really a fan of it. Pre-commit yes, but I already have some of the configuration of it in cookiecutter-pylibrary - it's just a matter of applying it (I usually do that before a release). It will have the 3.8 config so I wouldn't waste time with those.

@botant
Copy link
Contributor Author

botant commented Jun 29, 2020 via email

@ionelmc
Copy link
Owner

ionelmc commented Jun 30, 2020

Well, I mean, if black will get you contribute more we can add it ... there's not much code in this project so it doubt it would produce lots of uglyness :) But wait till I reapply that cookiecutter so we can avoid conflicts.

@botant
Copy link
Contributor Author

botant commented Jun 30, 2020 via email

@ionelmc
Copy link
Owner

ionelmc commented Jul 17, 2020

@botant alright so tests seem to pass (not sure what was going on before, maybe travis was having a bad time). How can we get this moving forward?

If you want to have a go at the black config please pull this first: https://github.com/ionelmc/tox-wheel/tree/skel-update

@botant
Copy link
Contributor Author

botant commented Jul 17, 2020 via email

@ionelmc
Copy link
Owner

ionelmc commented Jul 17, 2020

Well then I can push the skel changes here and you can add the docs/black, yes?

There's a changelog/authors - feel free to change them.

@botant
Copy link
Contributor Author

botant commented Jul 17, 2020 via email

@ionelmc
Copy link
Owner

ionelmc commented Jul 17, 2020

I don't really care about small PRs - feel free to do whatever you like.

@ionelmc
Copy link
Owner

ionelmc commented Jul 24, 2020

@botant you want to add anything else? I'm in the mood for making a release.

@botant
Copy link
Contributor Author

botant commented Jul 24, 2020 via email

@ionelmc
Copy link
Owner

ionelmc commented Jul 24, 2020

Can't wait :-) Lemme know when you pushed.

@botant
Copy link
Contributor Author

botant commented Jul 24, 2020

Done. I've added myself to AUTHORS.rst and updated README.rst. I've also added a new version to CHANGELOG.rst as 0.X.Y because I don't know what the next version will be, so please fix that. I didn't add Black to pre-commit.

It's been a pleasure to collaborate, and I'm looking forward to updating all my work projects with the new version!

@ionelmc ionelmc merged commit a3088dd into ionelmc:master Jul 24, 2020
@ionelmc
Copy link
Owner

ionelmc commented Jul 24, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants