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 data_files #890 #901

Closed
wants to merge 3 commits into from

Conversation

delphyne
Copy link

@delphyne delphyne commented Feb 19, 2019

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

Adds support for data_files to poetry.

Addresses enhancement request #890

Note: Black made a number of formatting changes in files that I touched, but in sections I wasn't editing.

@delphyne
Copy link
Author

I'll fix the test failures first thing tonight. The source of the problem is that maps retain insertion order as of python 3.6, but not in 2.7 & 3.5.

* data_files were sorted inconsistently between pythons <3.6 and >=3.6
* generated setup.py included platform specific paths to data_files
* textwrap.indent isn't available for python 2.7
@delphyne
Copy link
Author

delphyne commented Mar 1, 2019

@sdispater are there any additional tests or things you'd like addressed in this PR?

@mtkennerly
Copy link

@delphyne, for what it's worth, I submitted a similar PR a few months ago, #539. I haven't compared them in detail, but it may be worth incorporating some things from mine (e.g., mine includes changes to poetry-schema.json). It looks like mine has some conflicts now, so yours is probably a better base since it's closer to the current code.

@delphyne
Copy link
Author

delphyne commented Mar 4, 2019

@mtkennerly that's unfortunate! Also a little unfortunate that your PR has been hanging out for so long without any comment. I tried to search for open issues and PRs for this functionality, but I didn't find your PR, so sorry for the duplicated effort.

What is the purpose of the poetry-schema file? all the tests pass without the changes, and it's not mentioned in the contributing docs.

@nickpresta nickpresta mentioned this pull request May 8, 2019
2 tasks
@thejohnfreeman
Copy link
Contributor

@sdispater do you have help with this project? Seems like you might be overwhelmed with 76 outstanding pull requests and 422 open issues as of this comment. Do you need or want help? Who do you trust to perform code reviews?

@brycedrennan brycedrennan added the kind/feature Feature requests/implementations label Aug 15, 2019
Copy link
Contributor

@brycedrennan brycedrennan left a comment

Choose a reason for hiding this comment

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

Thanks so much for making this contribution!

Just a few questions:

After that we can hope to steal some time from sdispater to review this. I'm not yet qualified to be approving features.


## data_files

A list of files to be installed using the [data_files](https://docs.python.org/2/distutils/setupscript.html#installing-additional-files)
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets link to the Python 3 version?

@@ -40,6 +40,7 @@ def __init__(self, poetry, env, io):
self._path.as_posix(),
packages=self._package.packages,
includes=self._package.include,
data_files=self._package.data_files,
Copy link
Contributor

Choose a reason for hiding this comment

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

@@ -14,6 +14,7 @@ def __init__(self, name, version, pretty_version=None):
self.packages = []
self.include = []
self.exclude = []
self.data_files = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

@stale
Copy link

stale bot commented Nov 13, 2019

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 13, 2019
@sdispater sdispater added stale and removed wontfix labels Nov 14, 2019
@stale stale bot removed the stale label Nov 14, 2019
@abn
Copy link
Member

abn commented Apr 12, 2020

This should now be covered by https://python-poetry.org/docs/pyproject/#include-and-exclude. If this is not the case, please feel free to rebase and open a new PR.

@abn abn closed this Apr 12, 2020
@fish-face
Copy link

@delphyne / @mtkennerly are you able to update/recreate this PR? it's still relevant, as per the issue discussion.

@mtkennerly
Copy link

I could work on it, but I'd appreciate some confirmation first that the changes would be considered for merge. I haven't seen a follow-up from @abn in #890 regarding the latest comments. @abn or @sdispater, could you comment as to whether you're open to a PR that adds support for data_files based on the use cases described in the most recent comments in #890?

@fish-face
Copy link

fish-face commented Jul 20, 2020 via email

@Ezhvsalate Ezhvsalate mentioned this pull request Nov 10, 2020
2 tasks
Copy link

github-actions bot commented Mar 1, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants