Skip to content

Commit

Permalink
Merge pull request #77 from cytopia/release-0.0.21
Browse files Browse the repository at this point in the history
Release 0.0.21
  • Loading branch information
cytopia authored May 23, 2020
2 parents d1d808a + bd4b687 commit e1e63aa
Show file tree
Hide file tree
Showing 35 changed files with 2,378 additions and 573 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test-x64-macos-2.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,42 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
echo
echo "\$ host localost"
host localhost || true
echo
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
# ------------------------------------------------------------
# Tests: Behaviour (Client)
# ------------------------------------------------------------
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/test-x64-macos-3.5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,42 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
echo
echo "\$ host localost"
host localhost || true
echo
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
# ------------------------------------------------------------
# Tests: Behaviour (Client)
# ------------------------------------------------------------
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/test-x64-macos-3.6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,42 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
echo
echo "\$ host localost"
host localhost || true
echo
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
# ------------------------------------------------------------
# Tests: Behaviour (Client)
# ------------------------------------------------------------
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/test-x64-macos-3.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,42 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
echo
echo "\$ host localost"
host localhost || true
echo
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
# ------------------------------------------------------------
# Tests: Behaviour (Client)
# ------------------------------------------------------------
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/test-x64-macos-3.8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,42 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
echo
echo "\$ host localost"
host localhost || true
echo
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
# ------------------------------------------------------------
# Tests: Behaviour (Client)
# ------------------------------------------------------------
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/test-x64-macos-pypy2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,42 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
echo
echo "\$ host localost"
host localhost || true
echo
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
# ------------------------------------------------------------
# Tests: Behaviour (Client)
# ------------------------------------------------------------
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/test-x64-macos-pypy3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,42 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
echo
echo "\$ host localost"
host localhost || true
echo
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
# ------------------------------------------------------------
# Tests: Behaviour (Client)
# ------------------------------------------------------------
Expand Down
38 changes: 37 additions & 1 deletion .github/workflows/test-x64-ubuntu-2.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-16.04
strategy:
fail-fast: False

Expand All @@ -33,6 +33,42 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
echo
echo "\$ host localost"
host localhost || true
echo
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
echo
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
# ------------------------------------------------------------
# Tests: Behaviour (Client)
# ------------------------------------------------------------
Expand Down
Loading

0 comments on commit e1e63aa

Please sign in to comment.