Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
d673342
fix #1969 (#3027)
Oct 1, 2020
7a5f260
Don't swallow ImportError in temporary_directory()
remram44 Oct 1, 2020
3611523
Fix resolution of packages with missing required extras
sdispater Oct 1, 2020
5fcdb36
exporter: handle dev extras correctly (#3038)
abn Oct 2, 2020
04833bc
lock: allow for no-update refresh of lock files
abn Oct 1, 2020
d0d3ebb
install: skip unsupported binary distributions
abn Oct 3, 2020
3f6220d
build: ensure build uses project environment
abn Oct 3, 2020
ae6f574
Document the CLI 'cache clear' command
peldszus Oct 4, 2020
c3212be
tests: improve init command test setup
abn Oct 4, 2020
d75c5a5
init: handle pyproject exceptions for existing file
abn Oct 4, 2020
733310c
lock: resolve dependencies on no-update
abn Oct 2, 2020
e200a28
publish: ensure config url is preferred
abn Oct 2, 2020
b0b4a39
provider: ensure ony activated extras are used
abn Oct 2, 2020
b02e66c
Remove executable bit from files without shebangs
hroncok Oct 5, 2020
27858e8
export: fix handling of nested git dependencies
zyv Oct 6, 2020
08ab6ca
executor: execute parallel unsafe ops serially
abn Oct 6, 2020
746d741
info: enhance local path poetry project support
abn Oct 6, 2020
ca59f50
application: ensure warning is written to stderr
finswimmer Oct 7, 2020
495a6ed
ci/actions: add python 3.9 to test matrix
jairhenrique Oct 8, 2020
6a96dd2
Fix issue when PATH is missing in os.environ
Oct 8, 2020
056857f
Correct minor typo in a comment.
clintonroy Oct 9, 2020
53cadad
Fix options heading in cli docs
Oct 8, 2020
2db820d
Catch PyProjectException when pyproject.toml is empty
estyxx Oct 10, 2020
3b3791d
Add test
estyxx Oct 10, 2020
d1e7602
added python3.9 to tox envs
KGB33 Oct 10, 2020
d190504
tests: refactor fixtures for commands.debug
sanders41 Oct 12, 2020
3e42be1
publish: raise an error on redirects
ObserverOfTime Oct 13, 2020
b2d1427
inspection: ad each extra package as a dependency
abn Oct 8, 2020
4738c9a
show: ignore dependency source when finding package
abn Oct 7, 2020
9f7c9f8
locker: move export logic into locker for reuse
abn Oct 7, 2020
02307ba
locker: reuse locked metadata for nested deps
zyv Oct 7, 2020
1188b31
locker: propagate cumulative markers to nested deps
abn Oct 9, 2020
3d51aa3
utils/exporter: fix type hint for export()
abn Oct 13, 2020
ed8a3f9
locker: remove redundant lock data processing
abn Oct 13, 2020
a46b5c2
locker: ensure correct handling of extras export
abn Oct 13, 2020
18abfd7
locker: unify duplicate dependencies on export
abn Oct 13, 2020
83ec6e9
locker: refactor to reduce code complexity
abn Oct 13, 2020
8f6274c
Update CHANGELOG.md
abn Oct 14, 2020
20a3161
Bump version to 1.2.0a0
abn Oct 14, 2020
9c8155c
Drop Python 2.7/3.5 support validation
abn Oct 13, 2020
cb34c3d
config: support virtualenv `--always-copy` option
finswimmer Oct 16, 2020
9c085a5
Ensure editable builder generate valid scripts
akeeman Oct 16, 2020
5596878
tests: re-enable lock --no-update cases on windows
cereblanco Oct 19, 2020
a66033b
add: fix revert for dry-run and interrupts
estyxx Oct 19, 2020
68d6939
export: use --trusted-host for non HTTPS index
estyxx Oct 19, 2020
a938781
config: add support for installer.parallel
abn Oct 5, 2020
4c81bcc
utils/env: better support system site packages dir
abn Oct 6, 2020
e9e6b32
editable: use writable script dir for system env
abn Oct 23, 2020
5d0c796
utils/env: ensure user directories are created
abn Oct 23, 2020
68f2cc7
Handle non-editable packages with pth files
abn Oct 14, 2020
89e1d7c
locker: handle nested extras requirement
abn Oct 16, 2020
e878a5d
locker: handle cyclic dependencies during walk
abn Oct 17, 2020
3067fd4
pool: ensure sources are prioritised over PyPI
abn Oct 19, 2020
7c728f0
Ensure vcs dependencies preserve editable flag
abn Oct 21, 2020
5daeb89
Add 1.1.4 changelog
abn Oct 23, 2020
d1529a1
show --tree: stop ignoring --no-dev (#3296)
1ace Oct 28, 2020
3ef60e7
Add no interaction flag to website
GabrielSimonetto Oct 17, 2020
19cafe3
pip installer: fix incorrect method call
abn Oct 23, 2020
6ddd58f
Improve caret version constraint documentation (#3280)
cereblanco Oct 30, 2020
bf61dd5
tests: cleanup cache and http usage
abn Oct 20, 2020
4a14eba
tests: remove scripts for extended fixtures
abn Oct 20, 2020
21abbfc
tests: ensure mock env uses accessible paths
abn Oct 20, 2020
e43bc9a
tests/executor: verify return code after output
abn Oct 20, 2020
5b4c6a5
Remove unused functions
Coquinho Oct 31, 2020
cc195f1
Use `.zshrc` instead of `.zprofile`
abitrolly Oct 10, 2020
73585b6
consider using if expression
rayandas Oct 31, 2020
f5f6efc
iterate the dictionary directly instead of calling .keys()
rayandas Oct 31, 2020
e35f081
the built-in function being used does not require comprehension and c…
rayandas Oct 31, 2020
d646d45
doc: mention Conda's dependency resolver
kasteph Nov 2, 2020
369ced1
Fixed missing space in env activation 'one-liner' (#3350)
adnan-st Nov 13, 2020
639d5e0
Fixed the command for activating venv in Windows (#3373)
m-spitfire Nov 18, 2020
bf30ca6
Remove python 2.7/3.5 compatibility code (#3405)
abn Nov 24, 2020
2aab9bc
Added missing Option in install command description (#3500)
v-goncharenko Dec 26, 2020
6cd4e05
document ssh connection for git dependencies (#3389)
torstenrudolf Jan 4, 2021
529c598
* added additional description for poetry add covering git+ssh URL us…
Jan 5, 2021
e36fb73
Remove non-existing --path option, add missing options (#3522)
fredrikaverpil Jan 5, 2021
b8f9547
legacy repository: support redirected url
jpyams Jan 5, 2021
de0b32c
tests: fix a typo in mocker autospec
hroncok Jan 6, 2021
a106cb2
version: take --short into account when updating
sprt Jan 16, 2021
1346497
fix and add several type hints
finswimmer Oct 30, 2020
d2485b8
Add option to install only dev dependencies
opelr Sep 14, 2020
a104970
Merge pull request #3314 from finswimmer/improvement/type-hinting
sdispater Jan 30, 2021
a8d02ef
Migrate to the new version of Cleo
sdispater Jan 22, 2021
855bc88
Merge pull request #3618 from python-poetry/new-cleo
sdispater Feb 2, 2021
18a9e2d
fix: replace clikit by cleo in several places (#3634)
finswimmer Feb 3, 2021
cddd675
convert type comments to type hints (#3638)
finswimmer Feb 5, 2021
73437a8
Fixed propagation of markers to dependencies. Fixes #3254
apollo13 Feb 8, 2021
ae60ac5
docs: fix typo in basic usage
0xflotus Feb 9, 2021
bc3ad7d
fix(shell): quote path before activating env
pwoolvett Feb 9, 2021
25771b4
doc: fix changelog typo for release 1.1.4
aykxt Feb 10, 2021
6c92d42
Bump pkginfo to ^1.5
lazka Feb 10, 2021
6f70c3e
Upgrade poetry-core to 1.0.2
sdispater Feb 10, 2021
74ec169
Update Cirrus config
sdispater Feb 12, 2021
6eaa298
Refactoring uploader into a fixture (#3679)
sanders41 Feb 13, 2021
adc3cde
Doc: Update "extras" section in pyproject.toml file
akhileshraju Mar 6, 2021
68f4467
Update poetry-core
sdispater Feb 5, 2021
47aa857
Fix documentation linting
sdispater Mar 9, 2021
c31864c
Add new --check flag to lock command
cliebBS Mar 12, 2021
757a113
Merge pull request #3764 from python-poetry/modern-core
sdispater Mar 19, 2021
b1d380e
Fix tests due to new poetry-core (#3809)
sdispater Mar 19, 2021
8bd9a3e
Fix reference to `poetry-core` package
jodal Mar 6, 2021
aa16fff
doc: fix markdown styling
h4iku Mar 20, 2021
40f30d0
executor: fix should write check logic
Mar 21, 2021
37b36f4
tests/executor: set directory dep as editable
abn Oct 6, 2020
38558a1
feature(virtualenv): add 'system-site-packages' option
vlad0337187 Feb 20, 2021
4b5d413
Revert "feature(virtualenv): add 'system-site-packages' option"
abn Mar 21, 2021
480eaa1
Add virtualenvs.options.system-site-packages setting
kam1sh Mar 21, 2021
0359a42
docs/configuration: fix note markdown
Cireo Oct 13, 2020
7360b09
utils/envs: fix envs in MSYS2 always broken
danyeaw Feb 21, 2021
129ed0e
Move multiple constraints note in dependency-specification.md
nymous Mar 16, 2021
2de58eb
commands/show: fix rendering of single package
abn Mar 21, 2021
23a1c98
Revert "tests/executor: set directory dep as editable"
abn Mar 22, 2021
65c105a
exporter: ensure local references use uri
maxispeicher Mar 20, 2021
3b340b2
repository/legacy: calculate sha256 if unavailable
abn Sep 25, 2020
2f5098d
Disable setup file generation for builds
abn Mar 22, 2021
eea86df
ci: decrease pytest verbosity to speedup runs
abn Sep 30, 2020
b7bb4dd
Add documentation on inline tables in include. Resolves: Core #8.
kasteph Apr 5, 2020
28f434b
Per comments.
kasteph Nov 24, 2020
e3b48c5
Specify default for inline table format.
kasteph Nov 27, 2020
0eaf943
Default to both sdist and wheel
kasteph Nov 27, 2020
f739381
Drop pip from critical packages in project venv
abn Aug 17, 2020
9a68da3
Drop setuptools from critical package list
abn Aug 18, 2020
6400f42
Use isolated ephemeral envs for editable installs
abn Sep 29, 2020
a3348f2
Use utils.pip for executor installs
abn Sep 29, 2020
ba60ed8
executor: use pathlib instead of os.path
abn Mar 21, 2021
92dc54a
env: add missing type hinting
abn Mar 21, 2021
6e6d039
tests: fix env test helpers
abn Mar 21, 2021
931cf12
env: allow using embedded pip via run
abn Mar 21, 2021
3c9ced2
repositories: fix 401, 403 handling
cereblanco Mar 25, 2021
cb14c70
pip installer: fix installed script executable
abn Mar 25, 2021
91f85f3
ci: turn off fail fast
abn Mar 25, 2021
cdfcd14
deps: update virtualenv to 20.4.3
abn Mar 25, 2021
d151f74
Implement a plugin system
sdispater Jun 12, 2020
f5df3af
Add a plugin add command
sdispater Jul 10, 2020
594697d
Add a `plugin show` command
sdispater Mar 8, 2021
4fe39a3
Add a `plugin remove` command
sdispater Mar 9, 2021
1977945
Update coverage config
sdispater Mar 19, 2021
3738ae7
Remove plugin deactivation for the new command
sdispater Mar 25, 2021
9175a53
core: use new version class implementation
abn Mar 25, 2021
8c5611c
deps: update cryptography and identity
abn Mar 27, 2021
15d7a26
env: do not modify os.environ
abn Oct 20, 2020
b21dd14
tests: fix classifiers to include python 3.10
abn Mar 27, 2021
5073c20
env: align ephemeral environment interface to build
abn Mar 26, 2021
30190c7
pip installer: disable version check explicitly
abn Mar 26, 2021
34d66ba
Prefer Python 3 executables over python 2 during install
orf Feb 18, 2021
3a7dad9
docs: Minor fix to plugin documentation
Juniper-vdg Mar 28, 2021
71708c6
update discord invite
aadibajpai Nov 19, 2020
7379479
tests: remove duplicated code for plugin commands
abn Mar 29, 2021
4ebcd82
Implement a new bootstrapping method
sdispater Feb 19, 2021
fb16821
Add documentation for the new bootstrapping method
sdispater Feb 19, 2021
8f69bca
Use a symlink to the venv-installed poetry script
sdispater Feb 19, 2021
370bccf
Add a note to warn that the old installer is deprecated
sdispater Mar 19, 2021
1d1cd78
Update installation instructions in the README
sdispater Mar 19, 2021
8cf7bf7
Fix issues on Windows
sdispater Mar 19, 2021
e359ba5
Fix data dir location on MacOS
sdispater Mar 19, 2021
45a9b8f
ci: add support for python 3.10 experimental builds
cereblanco Mar 30, 2021
b753aaf
Used pyupgrade to remove compatibility code (#3861)
ThatXliner Apr 2, 2021
fcc2c83
add command to add, remove and show project sources
abn Mar 30, 2021
5b7791c
Write PEP-610-compliant files when installing
sdispater Mar 26, 2021
3d74ddf
Read PEP-610-compliant files when loading installed packages
sdispater Apr 1, 2021
f1b1cf9
Document 1.1.5 in change log
dimaqq Apr 2, 2021
4833910
Add a missing " to the post install message of `install-poetry.py`
ruohola Apr 1, 2021
df8f40e
Fix locked VCS dependencies always being updated
sdispater Apr 2, 2021
a12d142
Update poetry-core
sdispater Apr 6, 2021
4835c59
pep610: handle pure/plat lib differences cleanly
abn Apr 7, 2021
00309be
env: ignore warnings when executing python scripts (#3895)
abn Apr 9, 2021
9e0d9d5
Fix reverting the pyproject.toml content in the remove command
sdispater Apr 9, 2021
bf18a8f
tests: add case for transitive markers propagation (#3904)
abn Apr 9, 2021
977a72c
site: use importlib instead of adhoc file searches
abn Apr 8, 2021
e175d2a
ci/cirrus: remove release task
abn Apr 9, 2021
ecec2fc
ci: clean up release task
abn Apr 9, 2021
85f922d
layouts: improve supported layout creation
abn Aug 4, 2020
3987b0e
command/new: support namespace package creation
abn Aug 4, 2020
f5a63be
command/new: do not add pytest dependency to project
abn Aug 4, 2020
41b4bfd
command/new: handle relative paths properly
abn Aug 4, 2020
06f7c2d
command/new: add test coverage
abn Aug 4, 2020
e9738b1
layouts: add readme to pyproject.toml on creation
finswimmer Aug 6, 2020
affabe0
command/new: make readme format configurable
finswimmer Aug 6, 2020
cb19dc0
ci: allow bootstrap script args in matrix
abn Apr 10, 2021
2d99ab4
ci: fix typo in release workflow
abn Apr 10, 2021
cd8ac0d
fix(get-poetry): use exit code 1 with non-existing version
blueyed Apr 12, 2021
8b479d1
Revert "fix(get-poetry): use exit code 1 with non-existing version"
kasteph Apr 14, 2021
3a789a7
Fix incorrect package being selected with transitive markers.
sdispater Apr 14, 2021
f8ada85
Tests for ansi and no-ansi installs + bugfix for ansi install (#3881)
dippedrusk Apr 19, 2021
9a2e157
doc: poetry lock --no-update
paavanb Apr 13, 2021
494dec2
command/add: introduce --editable option
abn Apr 13, 2021
a3c5cf7
Add PyPI registry correctly to pool depending on other sources (#3406)
tomzx Apr 26, 2021
f23bd4a
Throw a RuntimeError on hash mismatch in Chooser._get_links (#3885)
0xDEC0DE Apr 29, 2021
a516a8f
dist: add tests to sdists (#4007)
abn Apr 30, 2021
16031f0
remove redundant version string transformation code (#3989)
abn Apr 30, 2021
341f04e
tests: use env.python instead of env._bin("python")
abn Apr 13, 2021
e25d784
env: do not modify os.environ
abn Apr 13, 2021
92d92bb
tests: ensure ephemeral config usage
abn Apr 27, 2021
ccf1322
executor: ensure path is used when generating hash
abn Apr 29, 2021
3dceee3
upgrade dependencies
abn Apr 29, 2021
f0408d6
env: default to enabling pip/wheels/setuptools
abn Apr 30, 2021
25aae99
Merge pull request #4011 from abn/env/default-with-pip
sdispater May 3, 2021
7bf158f
Fix documentation typos (you -> your) (#4023)
biggerfisch May 4, 2021
06dfdde
Change keyring dependency to >=21.2.0
NeilGirdhar Apr 28, 2021
436c2a1
Add direct_url.json to RECORD upon creation
fredrikaverpil May 6, 2021
673c9a5
Update lockfile to resolve merge issues
abn May 6, 2021
4122379
Clamp max virtualenv version to 20.4.4
abn May 6, 2021
9591e88
deps: update development constraints
abn May 7, 2021
f515801
Ensure we don't pick up Poetry's virtualenv as the system env
sdispater May 18, 2021
c02703e
Improve `self update` following the introduction of install-poetry.py
sdispater Apr 30, 2021
c0fffa9
Merge pull request #4084 from python-poetry/improve-self-update
sdispater May 21, 2021
d3c65ed
Fix self update command tests
sdispater May 21, 2021
5f51951
Update dependencies
sdispater Apr 23, 2021
ea92ec1
Bump version to 1.2.0a1
sdispater Apr 23, 2021
4ec09d4
Merge pull request #3991 from python-poetry/release-1.2.0a1
sdispater May 21, 2021
c28728f
get-poetry: disallow installation of >= 1.2.0a1
abn May 23, 2021
bc814e1
install-poetry: add warning for < 1.2.0a1
abn May 23, 2021
73ff7bc
doc: add warning for self update breakages
abn May 23, 2021
642bae6
installer: fix upgrade support check on scm version (#4126)
abn Jun 4, 2021
5d0faf9
replace f-string in get-poetry by `.format()` for python2 compatibility
finswimmer Jun 4, 2021
6bd4f1a
Merge pull request #4138 from finswimmer/issue/4131-get-poetry-f-string
sdispater Jun 4, 2021
bce4ac5
Reorganize documentation
sdispater Jun 4, 2021
0d2d3dd
Merge pull request #4142 from python-poetry/reorganize-docs
sdispater Jun 4, 2021
f55c8ef
Fix documentation relative reference
sdispater Jun 4, 2021
925429f
Merge pull request #4144 from python-poetry/fix-docs
sdispater Jun 4, 2021
ddfb35d
Fix locked information for path, url and VCS dependencies
sdispater Jun 22, 2021
b34cd71
Merge pull request #4202 from python-poetry/fix-locked-dependency-info
sdispater Jun 23, 2021
7fac676
handle poetry init non-interactive dependencies (#2899)
rotu Jun 23, 2021
e00874a
Fix sub-command option propagation for export
finswimmer Nov 19, 2020
0670eab
Fix legacy repository redirection test
sdispater Jan 30, 2021
038b38b
Fix build scripts
sdispater Mar 4, 2021
66fbbe2
fix (utils.patterns): recognize one digit version in filename
finswimmer Nov 7, 2020
e58025c
Reorganize documentation
sdispater Jun 5, 2021
9fad1e0
Fix locked information for path, url and VCS dependencies
sdispater Jun 22, 2021
7c08594
Update build script
sdispater Jun 25, 2021
eb769a5
Remove build for Python 3.10
sdispater Jun 25, 2021
aefd061
Dropping local lable (a la PEP 440) when converting a PackageInfo int…
Jun 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 3 additions & 56 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
freebsd_instance:
image_family: freebsd-12-1-snap
image_family: freebsd-12-2

test_task:
name: "Tests / FreeBSD / "
only_if: $CIRRUS_TAG == ''
skip: "!changesInclude('.cirrus.yml', 'poetry.lock', 'pyproject.toml', '**.json','**.py')"
env:
matrix:
- PYTHON: python2.7
- PYTHON: python3.7
- PYTHON: python3.6
- PYTHON: python3.8
python_script:
- PYPACKAGE=$(printf '%s' $PYTHON | tr -d '.')
- SQLPACKAGE=$(printf '%s-sqlite3' $PYPACKAGE | sed 's/thon//')
Expand All @@ -24,56 +24,3 @@ test_task:
path: junit.xml
format: junit
type: text/xml

release_task:
name: "Release / FreeBSD"
only_if: $CIRRUS_TAG != ''
env:
GITHUB_TOKEN: ENCRYPTED[2b573a2d28a03523ac6fb5b3c2f513a41c0a98db81e40e50e1d103b171f85c57e58ae38d957499dbf7fd7635cfcfd7be]
PYTHON: python3.8
PYTHON27: python2.7
PYTHON36: python3.6
PYTHON37: python3.7
PYTHON38: python3.8
freebsd_instance:
matrix:
- image_family: freebsd-12-1-snap
- image_family: freebsd-13-0-snap
- image_family: freebsd-11-4-snap
python_script: pkg install -y curl bash jq python3 python27 python36 python37 python38
pip_script:
- python2.7 -m ensurepip
- python3.6 -m ensurepip
- python3.7 -m ensurepip
- python3.8 -m ensurepip
build_script: bash ./make-nix-release.sh
upload_script: |
#!/usr/bin/env bash

if [[ "$CIRRUS_RELEASE" == "" ]]; then
CIRRUS_RELEASE=$(curl -sL https://api.github.com/repos/$CIRRUS_REPO_FULL_NAME/releases/tags/$CIRRUS_TAG | jq -r '.id')
if [[ "$CIRRUS_RELEASE" == "null" ]]; then
echo "Failed to find a release associated with this tag!"
exit 0
fi
fi

if [[ "$GITHUB_TOKEN" == "" ]]; then
echo "Please provide GitHub access token via GITHUB_TOKEN environment variable!"
exit 1
fi

for fpath in releases/*
do
echo "Uploading $fpath..."
name=$(basename "$fpath")
url_to_upload="https://uploads.github.com/repos/$CIRRUS_REPO_FULL_NAME/releases/$CIRRUS_RELEASE/assets?name=$name"
echo "Uploading to $url_to_upload"
curl -X POST \
--data-binary @$fpath \
--header "Authorization: token $GITHUB_TOKEN" \
--header "Content-Type: application/octet-stream" \
$url_to_upload
done
archive_artifacts:
path: "releases/*"
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[flake8]
max-line-length = 88
ignore = E501, E203, W503
per-file-ignores = __init__.py:F401
per-file-ignores =
__init__.py:F401
tests/console/commands/debug/test_resolve.py:W291
exclude =
.git
__pycache__
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.0
29 changes: 0 additions & 29 deletions .github/workflows/docs.yml

This file was deleted.

36 changes: 27 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,24 @@ jobs:
tests:
name: ${{ matrix.os }} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os: [Ubuntu, MacOS, Windows]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]
experimental: [false]
bootstrap-args: [""]
include:
- os: Ubuntu
python-version: "3.10.0-alpha - 3.10.0"
experimental: true
bootstrap-args: "--git https://github.com/python-poetry/poetry.git"
fail-fast: false
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -39,13 +48,22 @@ jobs:
- name: Bootstrap poetry
shell: bash
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install .
curl -sL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py \
| python - -y ${{ matrix.bootstrap-args }}

- name: Update PATH
if: ${{ matrix.os != 'Windows' }}
shell: bash
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Update Path for Windows
if: ${{ matrix.os == 'Windows' }}
shell: bash
run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH

- name: Configure poetry
shell: bash
run: python -m poetry config virtualenvs.in-project true
run: poetry config virtualenvs.in-project true

- name: Set up cache
uses: actions/cache@v2
Expand All @@ -57,12 +75,12 @@ jobs:
- name: Ensure cache is healthy
if: steps.cache.outputs.cache-hit == 'true'
shell: bash
run: timeout 10s python -m poetry run pip --version || rm -rf .venv
run: timeout 10s poetry run pip --version || rm -rf .venv

- name: Install dependencies
shell: bash
run: python -m poetry install
run: poetry install

- name: Run pytest
shell: bash
run: python -m poetry run python -m pytest -v tests
run: poetry run python -m pytest -p no:sugar -q tests/
Loading