Skip to content

build(deps): bump waitress from 2.1.1 to 2.1.2 in /docs/source #93

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
28 changes: 16 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,44 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python - --version 1.2.2
echo "${HOME}/.local/bin" >> $GITHUB_PATH

- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python - --version 1.2.1
$HOME/.local/bin/poetry install --no-root
poetry install --no-root

- name: Run tests
run: |
$HOME/.local/bin/poetry run pytest
poetry run pytest

- name: Build wheels
run: |
$HOME/.local/bin/poetry version $(git tag --points-at HEAD)
$HOME/.local/bin/poetry build
poetry version $(git tag --points-at HEAD)
poetry build

- name: Test install package
run: |
mkdir test_install
cd test_install
$HOME/.local/bin/poetry init
$HOME/.local/bin/poetry add ../dist/$(ls dist/*.whl)
poetry new test-install
cd test-install
poetry add ../dist/$(ls ../dist/*.whl)

$HOME/.local/bin/poetry run python -c "import datastream"
poetry run python -c "import datastream"

- name: Upload
env:
USERNAME: __token__
PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
$HOME/.local/bin/poetry publish --username=$USERNAME --password=$PASSWORD
poetry publish --username=$USERNAME --password=$PASSWORD
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,23 @@ jobs:
${{ runner.os }}-pip-
${{ runner.os }}-

- name: Install poetry
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python - --version 1.2.2
echo "${HOME}/.local/bin" >> $GITHUB_PATH

- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python - --version 1.2.1
$HOME/.local/bin/poetry install install
poetry install

- name: Run tests
run: |
$HOME/.local/bin/poetry install run pytest
poetry run pytest

- name: Build wheels
run: |
$HOME/.local/bin/poetry install build
poetry build

build-docs:
runs-on: ubuntu-latest
Expand Down
6 changes: 0 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,3 @@ Install from source
===================

.. pip install -e .

To patch the code locally for `Python 3.6` run `patch-python3.6.sh`.

.. code-block:: bash

$ ./patch-python3.6.sh
3 changes: 2 additions & 1 deletion datastream/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from datastream.datastream import Datastream

from pkg_resources import get_distribution, DistributionNotFound

try:
__version__ = get_distribution('pytorch-datastream').version
__version__ = get_distribution("pytorch-datastream").version
except DistributionNotFound:
pass
Loading