Skip to content

Update sdist specification to refer to PEP 517 - #472

Merged
theacodes merged 5 commits into
python:masterfrom
nitinprakash96:sdist-specs
Apr 20, 2018
Merged

theacodes merged 5 commits into
python:masterfrom
nitinprakash96:sdist-specs

Conversation

@nitinprakash96

Copy link
Copy Markdown
Contributor

standard library's ``distutils`` module when executing the ``setup.py sdist``
command.
Given :pep:`517`, a new style of source tree format is defined
based in ``pyproject.toml`` which is defined in :pep:`518`.

@pradyunsg pradyunsg Apr 16, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*based on

Instead, its format is implicitly defined by the behaviour of the
standard library's ``distutils`` module when executing the ``setup.py sdist``
command.
Given :pep:`517`, a new style of source tree format is defined

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Given/With the adoption of/


But the legacy source distribution format still exists and
is defined using ``setup.py``.
It's format is implicitly defined by the behaviour of the

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/It's/Its/

But the legacy source distribution format still exists and
is defined using ``setup.py``.
It's format is implicitly defined by the behaviour of the
standard library's ``distutils`` module when executing the ``setup.py sdist``.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"standard library" rather than "standard library's" is more common usage in my experience

Given :pep:`517`, a new style of source tree format is defined
based in ``pyproject.toml`` which is defined on :pep:`518`.

But the legacy source distribution format still exists and

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd remove the "But" here, or use "However, the legacy..." if you prefer.

@pradyunsg pradyunsg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for being picky but there are some grammar related issues here. :)

Thanks for the PR @nitinprakash96! ^>^

standard library's ``distutils`` module when executing the ``setup.py sdist``
command.
With adoption of :pep:`517`, a new style of source tree format is defined
based in ``pyproject.toml`` which is defined on :pep:`518`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/based in/based on/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/defined on/defined in/

With adoption of :pep:`517`, a new style of source tree format is defined
based in ``pyproject.toml`` which is defined on :pep:`518`.

However, the legacy source distribution format still exists and

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest the following language:

There is also the legacy source distribution format, implicitly defined by the behaviour of distutils module in the the standard library, when executing setup.py sdist.

Instead, its format is implicitly defined by the behaviour of the
standard library's ``distutils`` module when executing the ``setup.py sdist``
command.
With adoption of :pep:`517`, a new style of source tree format is defined

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/tree/distribution/

@nitinprakash96

Copy link
Copy Markdown
Contributor Author

I've made the suggested changes @pradyunsg. Let me know if more changes are required.

@theacodes theacodes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I'd love to see here is which release of pip supports the new format, and the date on which that release was made. This ties into @ncoghlan's comment on the original issue about this taking some time to be adopted widely.

@pfmoore

pfmoore commented Apr 16, 2018

Copy link
Copy Markdown
Member

@jonparrott None yet... Support for PEP 517 is planned, but no-one has yet really started work on it. We've been working on getting PEP 518 support (specifying build dependency information in pyproject.toml) into pip 10, and we have partial support for that, but there are still things to fix with that and then we need someone to start on PEP 517. So there's not even a firm timescale for the support yet.

@pfmoore

pfmoore commented Apr 16, 2018

Copy link
Copy Markdown
Member

PEP 518 support was released in pip 10, which was released 2 days ago on 14/04/2018, if that helps.

@nitinprakash96

Copy link
Copy Markdown
Contributor Author

Sorry for the delayed response. @jonparrott since there is no solid timescale as per @pfmoore. What should I include?

@theacodes

Copy link
Copy Markdown
Contributor

Given that context, it seems we should probably re-word this a bit to call out that PEP 517, while accepted, has not yet been implemented.

@nitinprakash96

nitinprakash96 commented Apr 18, 2018 •

Copy link
Copy Markdown
Contributor Author

Does the following para sound good? Or I should change it to something else? Or should I just add a line calling out that PEP 517 has been accepted but has not been implemented?

The accepted style of source distribution format based
on pyproject.toml, defined in PEP`518 and adopted from PEP 517
has not been implemented yet.

@theacodes

Copy link
Copy Markdown
Contributor

@nitinprakash96 that works. :)

@pradyunsg

Copy link
Copy Markdown
Member

s/adopted from/adopted by/?

Just add to the same paragraph. :)

@nitinprakash96

Copy link
Copy Markdown
Contributor Author

I've made the changes. Let me know if more are required. :)

@theacodes
theacodes merged commit 96c8161 into python:master Apr 20, 2018
@theacodes

Copy link
Copy Markdown
Contributor

Thank you, @nitinprakash96!

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.

4 participants