-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- poetry manages all aspects of project metadata and dependencies in pyproject.toml - Pipfile is obsolete - setup.py is obsolete - project might only support python >=3.7,<4.0 now? - tests will not run in python 3.6.x - contributions require python 3.8
- Loading branch information
Darren Weber
committed
Aug 25, 2021
1 parent
ef96004
commit b1dc068
Showing
9 changed files
with
2,812 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,12 +34,12 @@ jobs: | |
env: | ||
COLOR: 'yes' | ||
run: | | ||
pip install -U setuptools pip | ||
pip install -U pipenv codecov | ||
pipenv lock | ||
pipenv sync --dev | ||
pipenv check || true | ||
pipenv graph | ||
python -m pip install -U pip setuptools twine | ||
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - | ||
source "${HOME}/.poetry/env" | ||
poetry run pip install --upgrade pip setuptools twine | ||
poetry install -v --no-interaction --extras boto3 | ||
poetry show -t --no-dev | ||
make flake mototest | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
|
@@ -79,7 +79,10 @@ jobs: | |
python-version: 3.8 | ||
- name: Make sdist | ||
run: | ||
python setup.py sdist | ||
python -m pip install -U setuptools pip twine poetry | ||
poetry check | ||
poetry build | ||
poetry run twine check dist/* | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -97,7 +100,7 @@ jobs: | |
python-version: 3.8 | ||
- name: Install twine | ||
run: | | ||
python -m pip install twine | ||
python -m pip install -U setuptools pip twine poetry | ||
- name: Download dists | ||
uses: actions/download-artifact@v2 | ||
with: | ||
|
@@ -108,4 +111,8 @@ jobs: | |
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
twine upload dist/* | ||
python -m pip install -U setuptools pip twine poetry | ||
poetry check | ||
poetry build | ||
poetry run twine check dist/* | ||
poetry publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.1.0 | ||
hooks: | ||
- id: check-yaml | ||
args: [--unsafe] | ||
exclude: '.*templates.*.yaml' | ||
- id: end-of-file-fixer | ||
exclude: 'CHANGELOG.md' | ||
- id: trailing-whitespace | ||
exclude: 'CHANGELOG.md' | ||
- id: check-ast | ||
- repo: https://github.com/gruntwork-io/pre-commit | ||
rev: v0.1.9 | ||
hooks: | ||
- id: shellcheck | ||
- repo: https://github.com/psf/black | ||
rev: 19.10b0 | ||
hooks: | ||
- id: black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,16 +13,18 @@ Fist of all just clone repository:: | |
|
||
$ git clone [email protected]:aio-libs/aiobotocore.git | ||
|
||
Create virtualenv with at least python3.5 (older version are not supported). | ||
Create virtualenv with at least python3.8 for development purposes. | ||
For example using *virtualenvwrapper* commands could look like:: | ||
|
||
$ cd aiobotocore | ||
$ mkvirtualenv --python=`which python3.5` aiobotocore | ||
$ mkvirtualenv --python=`which python3.8` aiobotocore | ||
|
||
After that please install libraries required for development. The | ||
`make init` recipe will install [poetry](https://python-poetry.org/) | ||
and then invoke a `poetry install` to install the required | ||
dependencies for the library development. | ||
|
||
After that please install libraries required for development:: | ||
|
||
$ pipenv sync --dev | ||
$ make init | ||
|
||
Congratulations, you are ready to run the test suite:: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.