Skip to content

Commit 6914883

Browse files
committed
partial anyio-ization
missing: wait for FD ready, trio only
1 parent 37b0265 commit 6914883

22 files changed

+71
-83
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
22
branch=True
3-
source=trio_gpio
3+
source=asyncgpio
44

55
[report]
66
precision = 1

CHEATSHEET.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ To run yapf
1616
-----------
1717

1818
* Show what changes yapf wants to make: ``yapf -rpd setup.py
19-
trio_gpio tests``
19+
asyncgpio tests``
2020

2121
* Apply all changes directly to the source tree: ``yapf -rpi setup.py
22-
trio_gpio tests``
22+
asyncgpio tests``
2323

2424

2525
To make a release
2626
-----------------
2727

28-
* Update the version in ``trio_gpio/_version.py``
28+
* Update the version in ``asyncgpio/_version.py``
2929

3030
* Run ``towncrier`` to collect your release notes.
3131

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ all:
99
# need to use python3 sphinx-build
1010
PATH := /usr/share/sphinx/scripts/python3:${PATH}
1111

12-
PACKAGE = trio_gpio
12+
PACKAGE = asyncgpio
1313
PYTHON ?= python3
1414
SPHINX ?= sphinx3-build
1515
export PYTHONPATH=$(shell pwd)

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
trio-gpio
1+
asyncgpio
22
=========
33

44
Trio-GPIO allows easy access to the GPIO pins on your Raspberry Pi or

asyncgpio/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Top-level package for trio-gpio."""
1+
"""Top-level package for asyncgpio."""
22

33
import sys
44

@@ -18,6 +18,6 @@ def open_chip(num=0, consumer=sys.argv[0]):
1818
Defaults to the program's name.
1919
2020
Returns:
21-
a :class:`trio_gpio.gpio.Chip` instance.
21+
a :class:`asyncgpio.gpio.Chip` instance.
2222
"""
2323
return Chip(num, consumer=consumer)

ci/travis.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ pip install -U pip setuptools wheel
99

1010
if [ "$CHECK_FORMATTING" = "1" ]; then
1111
pip install yapf==${YAPF_VERSION}
12-
if ! yapf -rpd setup.py trio_gpio; then
12+
if ! yapf -rpd setup.py asyncgpio; then
1313
cat <<EOF
1414
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1515
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1616
1717
Formatting problems were found (listed above). To fix them, run
1818
1919
pip install yapf==${YAPF_VERSION}
20-
yapf -rpi setup.py trio_gpio
20+
yapf -rpi setup.py asyncgpio
2121
2222
in your local checkout.
2323
@@ -45,7 +45,7 @@ else
4545
mkdir empty
4646
cd empty
4747

48-
pytest -W error -ra -v --pyargs trio_gpio --cov=trio_gpio --cov-config=../.coveragerc --verbose
48+
pytest -W error -ra -v --pyargs asyncgpio --cov=asyncgpio --cov-config=../.coveragerc --verbose
4949

5050
bash <(curl -s https://codecov.io/bash)
5151
fi

debian/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
/*.debhelper-build-stamp
55
/*.substvars
66
/debhelper-build-stamp
7-
/python3-trio-gpio
7+
/python3-asyncgpio

debian/changelog

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
trio-gpio (0.2.4-1) unstable; urgency=medium
1+
asyncgpio (0.2.4-1) unstable; urgency=medium
22

33
* New release
44

55
-- Matthias Urlichs <[email protected]> Mon, 11 Jun 2018 21:29:33 +0200
66

7-
trio-gpio (0.2.3-2) unstable; urgency=medium
7+
asyncgpio (0.2.3-2) unstable; urgency=medium
88

99
* TL;DR: didn't RTFM
1010

1111
-- Matthias Urlichs <[email protected]> Mon, 11 Jun 2018 09:08:30 +0200
1212

13-
trio-gpio (0.2.2-1) unstable; urgency=medium
13+
asyncgpio (0.2.2-1) unstable; urgency=medium
1414

1515
* Access errno
1616

1717
-- Matthias Urlichs <[email protected]> Mon, 11 Jun 2018 08:29:53 +0200
1818

19-
trio-gpio (0.2.1-1) unstable; urgency=medium
19+
asyncgpio (0.2.1-1) unstable; urgency=medium
2020

2121
* Allow (and prefer) the GPIO chip label instead of its number.
2222

2323
-- Matthias Urlichs <[email protected]> Mon, 11 Jun 2018 04:48:44 +0200
2424

25-
trio-gpio (0.1.1-2) unstable; urgency=medium
25+
asyncgpio (0.1.1-2) unstable; urgency=medium
2626

2727
* Cleanup 2
2828

2929
-- Matthias Urlichs <[email protected]> Mon, 28 May 2018 02:35:07 +0200
3030

31-
trio-gpio (0.1.1-1) unstable; urgency=medium
31+
asyncgpio (0.1.1-1) unstable; urgency=medium
3232

3333
* Cleanup
3434

3535
-- Matthias Urlichs <[email protected]> Sat, 10 Mar 2018 18:36:19 +0100
3636

37-
trio-gpio (0.1.0-1) unstable; urgency=low
37+
asyncgpio (0.1.0-1) unstable; urgency=low
3838

3939
* source package automatically created by stdeb 0.8.5
4040

debian/control

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
1-
Source: trio-gpio
1+
Source: asyncgpio
22
Maintainer: Matthias Urlichs <[email protected]>
33
Section: python
44
Priority: optional
55
Build-Depends: dh-python, python3-setuptools, python3-all, debhelper (>= 9),
66
libgpiod-dev,
77
python3-cffi,
8-
python3-trio-amqp,
9-
python3-trio-click,
10-
python3-trio-gpio,
11-
python3-yaml,
128
Standards-Version: 3.9.6
13-
Homepage: https://github.com/M-o-a-T/trio-gpio
9+
Homepage: https://github.com/M-o-a-T/asyncgpio
1410

15-
Package: python3-trio-gpio
11+
Package: python3-asyncgpio
1612
Architecture: all
1713
Depends: ${misc:Depends}, ${python3:Depends},
1814
libgpiod1,
1915
python3-cffi,
20-
python3-trio-amqp,
21-
python3-trio-click,
22-
python3-trio-gpio,
23-
python3-yaml,
2416
Standards-Version: 3.9.6
2517
Description: GPIO access via Trio and libgpiod
2618
Trio-GPIO allows easy access to the GPIO pins on your Raspberry Pi or

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# This file was automatically generated by stdeb 0.8.5 at
44
# Wed, 07 Mar 2018 13:34:02 +0100
5-
export PYBUILD_NAME=trio-gpio
5+
export PYBUILD_NAME=asyncgpio
66
%:
77
dh $@ --with python3 --buildsystem=pybuild
88

0 commit comments

Comments
 (0)