Skip to content

Commit 8224b16

Browse files
sdispaterbrandonautfinswimmerk4naredwardgeorge
authored
Merge master into develop (#2209)
* Fix Github actions cache issues (#1908) * Fix case of `-f` flag * Make it clearer what options to pass to `--format` * fix (masonry.api): `get_requires_for_build_wheel` must return additional list of requirements for building a package, not listed in `pyproject.toml` and not dependencies for the package itself (#1875) fix (tests): adopted tests * Lazy Keyring intialization for PasswordManager (#1892) * Fix Github Actions cache issues (#1928) * Avoid nested quantifiers with overlapping character space on git url parsing (#1902 (#1913) * fix (git): match for `\w` instead of `.` for getting user * change (vcs.git): hold pattern of the regex parts in a dictionary to be consistent over all regexs * new (vcs.git): test for `parse_url` and some fixes for the regex pattern * new (vcs.git): test for `parse_url` with string that should fail * fix (test.vcs.git): make flake8 happy * fix: correct parsing of wheel version with regex. (#1932) The previous regexp was only taking the first integer of the version number, this presented problems when the major version number reached double digits. Poetry would determine that the version of the dependency is '1', rather than, ie: '14'. This caused failures to solve versions. * Fix errors when using the --help option (#1910) * Fix how repository credentials are retrieved from env vars (#1909) # Conflicts: # poetry/utils/password_manager.py * Fix downloading packages from Simplepypi (#1851) * fix downloading packages from simplepypi * unused code removed * remove unused imports * Upgrade dependencies for the 1.0.3 release (#1965) * Bump version to 1.0.3 (#1966) * Fix non-compliant Git URL matching RFC 3986 § 2.3 permits more characters in a URL than were matched. This corrects that, though there may be other deficiencies. This was a regression from v1.0.2, where at least “.” was matched without error. * Update README.md "Updating Poetry" Currently the note in "Updating Poetry" is different from the one below in "Enable tab completion for Bash, Fish, or Zsh". This MR is to make them more consistent. * init: change dev dependency prompt * Fix CI issues (#2069) * fix (setup_reader): check if `func.value` has attr `id` (#2041) * fix(git): get commit sha of git commit from annotated tags (#1948) * fix(git): have annotated tags resolve to the commit sha * fix(git): fix quote * fix(git): change to rev-parse * fix: use correct badge on README (#2065) * Fix #1791: Load repository URL from config (#2061) * Fix #1791: Load repository URL from config * Ran black to fix linting errors * Add test for repo URL env variable * Changed schema to support url in multi dependencies (#2035) * Fix handling of forward slashes and url encoding in credentials (#1911) * Add support for forward slashes and url encoding in credentials * Remove extra newline * Remove unquote * Bump actions/checkout from v1 to v2 (#2075) * Update release.yml * Update main.yml * Fix vendor package as installed package (#1883) (#1981) * Fix vendor package as installed package (#1883) * import from Co-Authored-By: Sébastien Eustace <[email protected]> * test vendor package as installed * refactor * remove blank line Co-authored-by: Sébastien Eustace <[email protected]> * fix(utils.env): import cli_run from virtualenv (#2096) * fix(utils.env): import cli_run from virtualenv if create_environment import failes * fix (utils.env): added accidentally removed code * list .venv when it exists (#1762) * list .venv when it exists * only list when in-project is true * missing config * move logic to manager.list * Add .venv when it exists * fix: exclude subpackage from `setup.py` if `__init__.py` is excluded (#1009) (#1626) * fix: exclude subpackage from `setup.py` if `__init__.py` is excluded Fixes: #1009 * fix: added missing test data * fix: lint test data * change (sdist.git): exclude folders with no python file * fix (sdist.git): make black happy * get_vcs starts searching git folder from tmp dir instead of project (#1946) (#1947) * fix (builder): take `self._original_path` if available to find `.git` folder * change (vcs): use `git rev-parse --show-toplevel` to find git root folder * fix (vcs): change back to original working dir after finding vcs * change (builder): introduce self._original_path to keep original path if(vcs): resolve directory for `get_vcs` * Normalize author name unicode before matching (#2006) * Fix accented characters not being matched in author name Fixes #2004 * Normalized the strings instead of modifying the pattern * Applied isort & black * Fix the url used for installation when fallbacking on PyPI (#2099) * Upgrade dependencies before the 1.0.4 release (#2100) * Upgrade dependencies before the 1.0.4 release (#2103) * Release 1.0.4 (#2101) * Update release script * Bump version to 1.0.4 * Fix release script (#2104) * Fix VCS when git is not in PATH * Upgrade dependencies before the 1.0.5 release (#2111) * Bump version to 1.0.5 (#2112) * Fix GitHub URL for black Black is now officially supported by the Python Software Foundation * Update Contributing.md* Fix markdown formatting* Update link to official website FAQ * Update managing-environments.md Co-authored-by: brandonaut <[email protected]> Co-authored-by: finswimmer <[email protected]> Co-authored-by: Yannick PÉROUX <[email protected]> Co-authored-by: Edward George <[email protected]> Co-authored-by: Jan Škoda <[email protected]> Co-authored-by: Andrew Marshall <[email protected]> Co-authored-by: Andrew Selzer <[email protected]> Co-authored-by: Andriy Maletsky <[email protected]> Co-authored-by: Julien Lhermitte <[email protected]> Co-authored-by: Michael Aquilina <[email protected]> Co-authored-by: Joshua Cannon <[email protected]> Co-authored-by: László Velinszky <[email protected]> Co-authored-by: Lu Zhu <[email protected]> Co-authored-by: BSKY <[email protected]> Co-authored-by: Trim21 <[email protected]> Co-authored-by: Frost Ming <[email protected]> Co-authored-by: Raphael Yancey <[email protected]> Co-authored-by: adisbladis <[email protected]> Co-authored-by: Dimitri Merejkowsky <[email protected]> Co-authored-by: Jules Chéron <[email protected]> Co-authored-by: Alex Povel <[email protected]>
1 parent 54701a1 commit 8224b16

37 files changed

+822
-211
lines changed

.github/workflows/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v2
1111
- name: Set up Python 3.7
1212
uses: actions/setup-python@v1
1313
with:
@@ -25,7 +25,7 @@ jobs:
2525
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
2626

2727
steps:
28-
- uses: actions/checkout@v1
28+
- uses: actions/checkout@v2
2929
- name: Set up Python ${{ matrix.python-version }}
3030
uses: actions/setup-python@v1
3131
with:
@@ -61,7 +61,7 @@ jobs:
6161
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
6262

6363
steps:
64-
- uses: actions/checkout@v1
64+
- uses: actions/checkout@v2
6565
- name: Set up Python ${{ matrix.python-version }}
6666
uses: actions/setup-python@v1
6767
with:
@@ -97,7 +97,7 @@ jobs:
9797
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
9898

9999
steps:
100-
- uses: actions/checkout@v1
100+
- uses: actions/checkout@v2
101101
- name: Set up Python ${{ matrix.python-version }}
102102
uses: actions/setup-python@v1
103103
with:

.github/workflows/release.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v2
1515
- name: Get tag
1616
id: tag
1717
run: |
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: macos-latest
3535

3636
steps:
37-
- uses: actions/checkout@v1
37+
- uses: actions/checkout@v2
3838
- name: Get tag
3939
id: tag
4040
run: |
@@ -57,18 +57,18 @@ jobs:
5757
curl -L https://github.com/sdispater/python-binaries/releases/download/3.4.10/python-3.4.10.macos.tar.xz -o python-3.4.10.tar.xz
5858
curl -L https://github.com/sdispater/python-binaries/releases/download/3.5.9/python-3.5.9.macos.tar.xz -o python-3.5.9.tar.xz
5959
curl -L https://github.com/sdispater/python-binaries/releases/download/3.6.8/python-3.6.8.macos.tar.xz -o python-3.6.8.tar.xz
60-
curl -L https://github.com/sdispater/python-binaries/releases/download/3.7.5/python-3.7.5.macos.tar.xz -o python-3.7.5.tar.xz
61-
curl -L https://github.com/sdispater/python-binaries/releases/download/3.8.0/python-3.8.0.macos.tar.xz -o python-3.8.0.tar.xz
60+
curl -L https://github.com/sdispater/python-binaries/releases/download/3.7.6/python-3.7.6.macos.tar.xz -o python-3.7.6.tar.xz
61+
curl -L https://github.com/sdispater/python-binaries/releases/download/3.8.2/python-3.8.2.macos.tar.xz -o python-3.8.2.tar.xz
6262
tar -zxf python-2.7.17.tar.xz
6363
tar -zxf python-3.4.10.tar.xz
6464
tar -zxf python-3.5.9.tar.xz
6565
tar -zxf python-3.6.8.tar.xz
66-
tar -zxf python-3.7.5.tar.xz
67-
tar -zxf python-3.8.0.tar.xz
66+
tar -zxf python-3.7.6.tar.xz
67+
tar -zxf python-3.8.2.tar.xz
6868
- name: Build specific release
6969
run: |
7070
source $HOME/.poetry/env
71-
poetry run python sonnet make release --ansi -P "2.7:python-2.7.17/bin/python" -P "3.4:python-3.4.10/bin/python" -P "3.5:python-3.5.9/bin/python" -P "3.6:python-3.6.8/bin/python" -P "3.7:python-3.7.5/bin/python" -P "3.8:python-3.8.0/bin/python"
71+
poetry run python sonnet make release --ansi -P "2.7:python-2.7.17/bin/python" -P "3.4:python-3.4.10/bin/python" -P "3.5:python-3.5.9/bin/python" -P "3.6:python-3.6.8/bin/python" -P "3.7:python-3.7.6/bin/python" -P "3.8:python-3.8.2/bin/python"
7272
- name: Upload release file
7373
uses: actions/upload-artifact@v1
7474
with:
@@ -84,7 +84,7 @@ jobs:
8484
runs-on: windows-latest
8585

8686
steps:
87-
- uses: actions/checkout@v1
87+
- uses: actions/checkout@v2
8888
- name: Get tag
8989
id: tag
9090
shell: bash
@@ -108,24 +108,24 @@ jobs:
108108
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.4.4/python-3.4.4.windows.tar.xz -O python-3.4.4.tar.xz
109109
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.5.4/python-3.5.4.windows.tar.xz -O python-3.5.4.tar.xz
110110
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.6.8/python-3.6.8.windows.tar.xz -O python-3.6.8.tar.xz
111-
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.7.5/python-3.7.5.windows.tar.xz -O python-3.7.5.tar.xz
112-
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.8.0/python-3.8.0.windows.tar.xz -O python-3.8.0.tar.xz
111+
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.7.6/python-3.7.6.windows.tar.xz -O python-3.7.6.tar.xz
112+
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.8.2/python-3.8.2.windows.tar.xz -O python-3.8.2.tar.xz
113113
7z x python-2.7.17.tar.xz
114114
7z x python-3.4.4.tar.xz
115115
7z x python-3.5.4.tar.xz
116116
7z x python-3.6.8.tar.xz
117-
7z x python-3.7.5.tar.xz
118-
7z x python-3.8.0.tar.xz
117+
7z x python-3.7.6.tar.xz
118+
7z x python-3.8.2.tar.xz
119119
7z x python-2.7.17.tar
120120
7z x python-3.4.4.tar
121121
7z x python-3.5.4.tar
122122
7z x python-3.6.8.tar
123-
7z x python-3.7.5.tar
124-
7z x python-3.8.0.tar
123+
7z x python-3.7.6.tar
124+
7z x python-3.8.2.tar
125125
- name: Build specific release
126126
run: |
127127
$env:Path += ";$env:Userprofile\.poetry\bin"
128-
poetry run python sonnet make release --ansi -P "2.7:python-2.7.17\python.exe" -P "3.4:python-3.4.4\python.exe" -P "3.5:python-3.5.4\python.exe" -P "3.6:python-3.6.8\python.exe" -P "3.7:python-3.7.5\python.exe" -P "3.8:python-3.8.0\python.exe"
128+
poetry run python sonnet make release --ansi -P "2.7:python-2.7.17\python.exe" -P "3.4:python-3.4.4\python.exe" -P "3.5:python-3.5.4\python.exe" -P "3.6:python-3.6.8\python.exe" -P "3.7:python-3.7.6\python.exe" -P "3.8:python-3.8.2\python.exe"
129129
- name: Upload release file
130130
uses: actions/upload-artifact@v1
131131
with:
@@ -143,7 +143,7 @@ jobs:
143143

144144
steps:
145145
- name: Checkout code
146-
uses: actions/checkout@master
146+
uses: actions/checkout@v2
147147
- name: Get tag
148148
id: tag
149149
run: |

CHANGELOG.md

+30-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Change Log
22

3+
## [1.0.5] - 2020-02-29
4+
5+
### Fixed
6+
7+
- Fixed an error when building distributions if the `git` executable was not found ([#2105](https://github.com/python-poetry/poetry/pull/2105)).
8+
- Fixed various errors when reading Poetry's TOML files by upgrading [tomlkit](https://github.com/sdispater/tomlkit).
9+
10+
11+
## [1.0.4] - 2020-02-28
12+
13+
### Fixed
14+
15+
- Fixed the PyPI URL used when installing packages ([#2099](https://github.com/python-poetry/poetry/pull/2099)).
16+
- Fixed errors when the author's name contains special characters ([#2006](https://github.com/python-poetry/poetry/pull/2006)).
17+
- Fixed VCS excluded files detection when building wheels ([#1947](https://github.com/python-poetry/poetry/pull/1947)).
18+
- Fixed packages detection when building sdists ([#1626](https://github.com/python-poetry/poetry/pull/1626)).
19+
- Fixed the local `.venv` virtual environment not being displayed in `env list` ([#1762](https://github.com/python-poetry/poetry/pull/1762)).
20+
- Fixed incompatibilities with the most recent versions of `virtualenv` ([#2096](https://github.com/python-poetry/poetry/pull/2096)).
21+
- Fixed Poetry's own vendor dependencies being retrieved when updating dependencies ([#1981](https://github.com/python-poetry/poetry/pull/1981)).
22+
- Fixed encoding of credentials in URLs ([#1911](https://github.com/python-poetry/poetry/pull/1911)).
23+
- Fixed url constraints not being accepted in multi-constraints dependencies ([#2035](https://github.com/python-poetry/poetry/pull/2035)).
24+
- Fixed an error where credentials specified via environment variables were not retrieved ([#2061](https://github.com/python-poetry/poetry/pull/2061)).
25+
- Fixed an error where git dependencies referencing tags were not locked to the corresponding commit ([#1948](https://github.com/python-poetry/poetry/pull/1948)).
26+
- Fixed an error when parsing packages `setup.py` files ([#2041](https://github.com/python-poetry/poetry/pull/2041)).
27+
- Fixed an error when parsing some git URLs ([#2018](https://github.com/python-poetry/poetry/pull/2018)).
28+
29+
330
## [1.0.3] - 2020-01-31
431

532
### Fixed
@@ -796,7 +823,9 @@ Initial release
796823

797824

798825

799-
[Unreleased]: https://github.com/python-poetry/poetry/compare/1.0.3...master
826+
[Unreleased]: https://github.com/python-poetry/poetry/compare/1.0.5...master
827+
[1.0.5]: https://github.com/python-poetry/poetry/releases/tag/1.0.5
828+
[1.0.4]: https://github.com/python-poetry/poetry/releases/tag/1.0.4
800829
[1.0.3]: https://github.com/python-poetry/poetry/releases/tag/1.0.3
801830
[1.0.2]: https://github.com/python-poetry/poetry/releases/tag/1.0.2
802831
[1.0.1]: https://github.com/python-poetry/poetry/releases/tag/1.0.1

CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Before creating bug reports, please check [this list](#before-submitting-a-bug-r
2626
2727
#### Before submitting a bug report
2828

29-
* **Check the [FAQs on the official website](https://python-poetry.org)** for a list of common questions and problems.
29+
* **Check the [FAQs on the official website](https://python-poetry.org/docs/faq)** for a list of common questions and problems.
3030
* **Check that your issue does not already exist in the [issue tracker](https://github.com/python-poetry/poetry/issues)**.
3131

3232
#### How do I submit a bug report?
@@ -64,8 +64,8 @@ Before creating enhancement suggestions, please check [this list](#before-submit
6464

6565
#### Before submitting an enhancement suggestion
6666

67-
* **Check the [FAQs on the official website](https://python-poetry.org) for a list of common questions and problems.
68-
* **Check that your issue does not already exist in the [issue tracker](https://github.com/python-poetry/poetry/issues).
67+
* **Check the [FAQs on the official website](https://python-poetry.org/docs/faq)** for a list of common questions and problems.
68+
* **Check that your issue does not already exist in the [issue tracker](https://github.com/python-poetry/poetry/issues)**.
6969

7070

7171
#### How do I submit an Enhancement suggestion?
@@ -99,7 +99,7 @@ $ poetry install
9999
$ poetry run pytest tests/
100100
```
101101

102-
Poetry uses the [black](https://github.com/ambv/black) coding style and you must ensure that your
102+
Poetry uses the [black](https://github.com/psf/black) coding style and you must ensure that your
103103
code follows it. If not, the CI will fail and your Pull Request will not be merged.
104104

105105
Similarly, the import statements are sorted with [isort](https://github.com/timothycrosley/isort)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ensuring you have the right stack everywhere.
77

88
It supports Python 2.7 and 3.4+.
99

10-
![Tests Status](https://github.com/python-poetry/poetry/workflows/Tests/badge.svg)
10+
[![Tests Status](https://github.com/python-poetry/poetry/workflows/Tests/badge.svg?branch=master&event=push)](https://github.com/python-poetry/poetry/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush)
1111

1212
The [complete documentation](https://python-poetry.org/docs/) is available on the [official website](https://python-poetry.org).
1313

docs/docs/managing-environments.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Managing environments
22

3-
Poetry makes project environment isolation one of its core feature.
3+
Poetry makes project environment isolation one of its core features.
44

55
What this means is that it will always work isolated from your global Python installation.
66
To achieve this, it will first check if it's currently running inside a virtual environment.

make-linux-release.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
PYTHON_VERSIONS="cp27-cp27m cp34-cp34m cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38"
2+
PYTHON_VERSIONS="cp27-cp27m cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38"
33

44
cd /io
55
/opt/python/cp37-cp37m/bin/pip install pip -U
@@ -8,7 +8,6 @@ cd /io
88
/opt/python/cp37-cp37m/bin/poetry install --no-dev
99
/opt/python/cp37-cp37m/bin/python sonnet make release --ansi \
1010
-P "2.7:/opt/python/cp27-cp27m/bin/python" \
11-
-P "3.4:/opt/python/cp34-cp34m/bin/python" \
1211
-P "3.5:/opt/python/cp35-cp35m/bin/python" \
1312
-P "3.6:/opt/python/cp36-cp36m/bin/python" \
1413
-P "3.7:/opt/python/cp37-cp37m/bin/python" \

0 commit comments

Comments
 (0)