Skip to content

Comments

Refactor: unify package inspection logic#2301

Merged
abn merged 7 commits intopython-poetry:developfrom
abn:refactor/inspection
Apr 25, 2020
Merged

Refactor: unify package inspection logic#2301
abn merged 7 commits intopython-poetry:developfrom
abn:refactor/inspection

Conversation

@abn
Copy link
Member

@abn abn commented Apr 13, 2020

This change brings together logic repeated in various places to discover package information. As a side-effect of this various edge cases have been improved and we shouldhave one place to change the code for package inspection related logic.

In addition to the above, this alos cleans up some test code and also unify call of urlparse and download.

Note this requires python-poetry/poetry-core#22. In order for the builds to work, I have created a branch for core that works around a few non issues with the current poetry releases used in ci. Additionally, the FreeBSD tests are failing because of a symbolic link issue (unrelated),

Pull Request Check List

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

@abn abn self-assigned this Apr 13, 2020
@abn abn requested a review from sdispater April 13, 2020 14:55
@abn
Copy link
Member Author

abn commented Apr 13, 2020

Builds are failing due to #2302

@abn abn force-pushed the refactor/inspection branch 5 times, most recently from 262d313 to 14f92d9 Compare April 17, 2020 00:57
@abn abn marked this pull request as ready for review April 17, 2020 14:39
@abn abn force-pushed the refactor/inspection branch from 14f92d9 to ee28932 Compare April 17, 2020 19:32
@abn
Copy link
Member Author

abn commented Apr 17, 2020

@sdispater i have ensured that we only execute python setup.py egg_info for git/path dependencies as it was before.

@abn abn force-pushed the refactor/inspection branch 4 times, most recently from cf78dfd to 692f37b Compare April 19, 2020 17:35
@abn abn requested a review from kasteph April 19, 2020 17:47
@abn abn force-pushed the refactor/inspection branch from 692f37b to 20a8346 Compare April 23, 2020 21:01
@abn abn force-pushed the refactor/inspection branch from 20a8346 to c019bf7 Compare April 24, 2020 21:07
@abn abn requested review from a team and kasteph and removed request for kasteph and sdispater April 24, 2020 22:41
This change brings together logic repeated in various places to
discover package information.
abn added 2 commits April 25, 2020 13:33
Moving to tox to use isolated buids to avoid some environment specific
dragons in relation to `poetry install` command. Today, the symlinks
will cause issues when poetry attempts to add an editable install into
the venv due to a pathlib2 bug.
@abn abn force-pushed the refactor/inspection branch from c019bf7 to 079087e Compare April 25, 2020 11:34
@abn abn requested a review from kasteph April 25, 2020 11:38
Copy link
Member

@kasteph kasteph left a comment

Choose a reason for hiding this comment

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

LGTM ✨

@abn abn merged commit 5466b97 into python-poetry:develop Apr 25, 2020
@abn abn deleted the refactor/inspection branch April 25, 2020 15:20
@github-actions
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants