Skip to content

Commit e1e63aa

Browse files
authored
Merge pull request #77 from cytopia/release-0.0.21
Release 0.0.21
2 parents d1d808a + bd4b687 commit e1e63aa

35 files changed

+2378
-573
lines changed

.github/workflows/test-x64-macos-2.7.yml

+36
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,42 @@ jobs:
3333
shell: bash
3434
run: python -c "import sys; print(sys.version)"
3535

36+
- name: "Setup /etc/hosts for Linux"
37+
shell: bash
38+
run: |
39+
if [ `uname` = "Linux" ]; then
40+
echo "\$ cat /etc/hosts"
41+
cat /etc/hosts
42+
echo
43+
(
44+
echo "127.0.0.1 localhost";
45+
echo "::1 localhost ip6-localhost ip6-loopback";
46+
) | sudo tee /etc/hosts
47+
echo
48+
echo "\$ cat /etc/hosts"
49+
cat /etc/hosts
50+
fi
51+
52+
- name: Resolve localhost
53+
shell: bash
54+
run: |
55+
echo
56+
echo "\$ host localost"
57+
host localhost || true
58+
echo
59+
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
60+
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
61+
echo
62+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
63+
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
64+
echo
65+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
66+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
67+
echo
68+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
69+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
70+
71+
3672
# ------------------------------------------------------------
3773
# Tests: Behaviour (Client)
3874
# ------------------------------------------------------------

.github/workflows/test-x64-macos-3.5.yml

+36
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,42 @@ jobs:
3333
shell: bash
3434
run: python -c "import sys; print(sys.version)"
3535

36+
- name: "Setup /etc/hosts for Linux"
37+
shell: bash
38+
run: |
39+
if [ `uname` = "Linux" ]; then
40+
echo "\$ cat /etc/hosts"
41+
cat /etc/hosts
42+
echo
43+
(
44+
echo "127.0.0.1 localhost";
45+
echo "::1 localhost ip6-localhost ip6-loopback";
46+
) | sudo tee /etc/hosts
47+
echo
48+
echo "\$ cat /etc/hosts"
49+
cat /etc/hosts
50+
fi
51+
52+
- name: Resolve localhost
53+
shell: bash
54+
run: |
55+
echo
56+
echo "\$ host localost"
57+
host localhost || true
58+
echo
59+
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
60+
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
61+
echo
62+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
63+
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
64+
echo
65+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
66+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
67+
echo
68+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
69+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
70+
71+
3672
# ------------------------------------------------------------
3773
# Tests: Behaviour (Client)
3874
# ------------------------------------------------------------

.github/workflows/test-x64-macos-3.6.yml

+36
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,42 @@ jobs:
3333
shell: bash
3434
run: python -c "import sys; print(sys.version)"
3535

36+
- name: "Setup /etc/hosts for Linux"
37+
shell: bash
38+
run: |
39+
if [ `uname` = "Linux" ]; then
40+
echo "\$ cat /etc/hosts"
41+
cat /etc/hosts
42+
echo
43+
(
44+
echo "127.0.0.1 localhost";
45+
echo "::1 localhost ip6-localhost ip6-loopback";
46+
) | sudo tee /etc/hosts
47+
echo
48+
echo "\$ cat /etc/hosts"
49+
cat /etc/hosts
50+
fi
51+
52+
- name: Resolve localhost
53+
shell: bash
54+
run: |
55+
echo
56+
echo "\$ host localost"
57+
host localhost || true
58+
echo
59+
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
60+
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
61+
echo
62+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
63+
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
64+
echo
65+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
66+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
67+
echo
68+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
69+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
70+
71+
3672
# ------------------------------------------------------------
3773
# Tests: Behaviour (Client)
3874
# ------------------------------------------------------------

.github/workflows/test-x64-macos-3.7.yml

+36
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,42 @@ jobs:
3333
shell: bash
3434
run: python -c "import sys; print(sys.version)"
3535

36+
- name: "Setup /etc/hosts for Linux"
37+
shell: bash
38+
run: |
39+
if [ `uname` = "Linux" ]; then
40+
echo "\$ cat /etc/hosts"
41+
cat /etc/hosts
42+
echo
43+
(
44+
echo "127.0.0.1 localhost";
45+
echo "::1 localhost ip6-localhost ip6-loopback";
46+
) | sudo tee /etc/hosts
47+
echo
48+
echo "\$ cat /etc/hosts"
49+
cat /etc/hosts
50+
fi
51+
52+
- name: Resolve localhost
53+
shell: bash
54+
run: |
55+
echo
56+
echo "\$ host localost"
57+
host localhost || true
58+
echo
59+
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
60+
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
61+
echo
62+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
63+
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
64+
echo
65+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
66+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
67+
echo
68+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
69+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
70+
71+
3672
# ------------------------------------------------------------
3773
# Tests: Behaviour (Client)
3874
# ------------------------------------------------------------

.github/workflows/test-x64-macos-3.8.yml

+36
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,42 @@ jobs:
3333
shell: bash
3434
run: python -c "import sys; print(sys.version)"
3535

36+
- name: "Setup /etc/hosts for Linux"
37+
shell: bash
38+
run: |
39+
if [ `uname` = "Linux" ]; then
40+
echo "\$ cat /etc/hosts"
41+
cat /etc/hosts
42+
echo
43+
(
44+
echo "127.0.0.1 localhost";
45+
echo "::1 localhost ip6-localhost ip6-loopback";
46+
) | sudo tee /etc/hosts
47+
echo
48+
echo "\$ cat /etc/hosts"
49+
cat /etc/hosts
50+
fi
51+
52+
- name: Resolve localhost
53+
shell: bash
54+
run: |
55+
echo
56+
echo "\$ host localost"
57+
host localhost || true
58+
echo
59+
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
60+
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
61+
echo
62+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
63+
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
64+
echo
65+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
66+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
67+
echo
68+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
69+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
70+
71+
3672
# ------------------------------------------------------------
3773
# Tests: Behaviour (Client)
3874
# ------------------------------------------------------------

.github/workflows/test-x64-macos-pypy2.yml

+36
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,42 @@ jobs:
3333
shell: bash
3434
run: python -c "import sys; print(sys.version)"
3535

36+
- name: "Setup /etc/hosts for Linux"
37+
shell: bash
38+
run: |
39+
if [ `uname` = "Linux" ]; then
40+
echo "\$ cat /etc/hosts"
41+
cat /etc/hosts
42+
echo
43+
(
44+
echo "127.0.0.1 localhost";
45+
echo "::1 localhost ip6-localhost ip6-loopback";
46+
) | sudo tee /etc/hosts
47+
echo
48+
echo "\$ cat /etc/hosts"
49+
cat /etc/hosts
50+
fi
51+
52+
- name: Resolve localhost
53+
shell: bash
54+
run: |
55+
echo
56+
echo "\$ host localost"
57+
host localhost || true
58+
echo
59+
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
60+
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
61+
echo
62+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
63+
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
64+
echo
65+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
66+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
67+
echo
68+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
69+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
70+
71+
3672
# ------------------------------------------------------------
3773
# Tests: Behaviour (Client)
3874
# ------------------------------------------------------------

.github/workflows/test-x64-macos-pypy3.yml

+36
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,42 @@ jobs:
3333
shell: bash
3434
run: python -c "import sys; print(sys.version)"
3535

36+
- name: "Setup /etc/hosts for Linux"
37+
shell: bash
38+
run: |
39+
if [ `uname` = "Linux" ]; then
40+
echo "\$ cat /etc/hosts"
41+
cat /etc/hosts
42+
echo
43+
(
44+
echo "127.0.0.1 localhost";
45+
echo "::1 localhost ip6-localhost ip6-loopback";
46+
) | sudo tee /etc/hosts
47+
echo
48+
echo "\$ cat /etc/hosts"
49+
cat /etc/hosts
50+
fi
51+
52+
- name: Resolve localhost
53+
shell: bash
54+
run: |
55+
echo
56+
echo "\$ host localost"
57+
host localhost || true
58+
echo
59+
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
60+
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
61+
echo
62+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
63+
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
64+
echo
65+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
66+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
67+
echo
68+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
69+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
70+
71+
3672
# ------------------------------------------------------------
3773
# Tests: Behaviour (Client)
3874
# ------------------------------------------------------------

.github/workflows/test-x64-ubuntu-2.7.yml

+37-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
test:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-16.04
1515
strategy:
1616
fail-fast: False
1717

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

36+
- name: "Setup /etc/hosts for Linux"
37+
shell: bash
38+
run: |
39+
if [ `uname` = "Linux" ]; then
40+
echo "\$ cat /etc/hosts"
41+
cat /etc/hosts
42+
echo
43+
(
44+
echo "127.0.0.1 localhost";
45+
echo "::1 localhost ip6-localhost ip6-loopback";
46+
) | sudo tee /etc/hosts
47+
echo
48+
echo "\$ cat /etc/hosts"
49+
cat /etc/hosts
50+
fi
51+
52+
- name: Resolve localhost
53+
shell: bash
54+
run: |
55+
echo
56+
echo "\$ host localost"
57+
host localhost || true
58+
echo
59+
echo "\$ python -c 'import socket;print(socket.gethostbyname(\"localhost\"))'"
60+
python -c 'import socket;print(socket.gethostbyname("localhost"))' || true
61+
echo
62+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None))'"
63+
python -c 'import socket;print(socket.getaddrinfo("localhost", None))' || true
64+
echo
65+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET))'"
66+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET))' || true
67+
echo
68+
echo "\$ python -c 'import socket;print(socket.getaddrinfo(\"localhost\", None, socket.AF_INET6))'"
69+
python -c 'import socket;print(socket.getaddrinfo("localhost", None, socket.AF_INET6))' || true
70+
71+
3672
# ------------------------------------------------------------
3773
# Tests: Behaviour (Client)
3874
# ------------------------------------------------------------

0 commit comments

Comments
 (0)