Skip to content

Commit 90d6ad8

Browse files
committed
config fixes for 0.4.0 release
1 parent 2b2f41a commit 90d6ad8

File tree

3 files changed

+15
-28
lines changed

3 files changed

+15
-28
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ https://blink1.thingm.com/
2727
Features of this library:
2828

2929
* Test coverage on all library components
30-
* Python 3.x and Python 2.7.x compatible
30+
* Python 3.x compatible
3131
* Automatic installation via Python Package Index
3232
* High level control over the blink(1)
3333
* Single implementation with `cython-hidapi` USB HID API (PyUSB cannot access HID devices on all OSes)
@@ -384,21 +384,17 @@ Having checked out the `blink1-python` library, cd to its directory and run the
384384
```
385385
git clone https://github.com/todbot/blink1-python
386386
cd blink1-python
387-
python3 setup.py develop
388-
python3 ./blink1_demo/demo1.py
389-
```
390-
or
391-
```
392387
pip3 install --editable .
388+
python3 ./blink1_demo/demo1.py
393389
```
394390
You can now use the `blink1` package on your system and edit it.
395391

396392
To get internal blink1 library debug, messages set the environment variable `DEBUGBLINK1`:
397393
```
398-
DEBUGBLINK1=1 python3 ./blink1_demo/demo1.py
394+
DEBUGBLINK1=1 python3 ./blink1_demo/demo_logging.py
399395
```
400396

401397
To uninstall the development version:
402398
```
403-
python3 setup.py develop --uninstall
399+
pip3 uninstall blink1
404400
```

publishing.md

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,20 @@ Publishing notes
55

66
To develop and test, see the "Developer Installation" in the README.
77

8-
Notes:
9-
- `setup.py` uses `setuptools-markdown` which requires having installed:
10-
```
11-
brew install pandoc
12-
pip3 install setuptools-markdown
13-
```
14-
15-
- Make sure your `~/.pypirc` points to correct credentials. E.g.
16-
```
17-
index-servers =
18-
pypitodbotdotcom
19-
20-
[pypitodbotdotcom]
21-
username=todbotdotcom
22-
password=....
23-
```
24-
258
To publish:
269

27-
1. Edit `setup.py` to bump version
10+
1. Edit `pyproject.toml` to bump version
2811
2. Update README.md (use `pydoc blink1.blink1.Blink1 > api.txt` to generate new API ref)
12+
3. Check can build with `python3 -m build`
2913
3. Check changes into git
30-
4. Publish to PyPI with:
14+
4. Publish to PyPI with: (must have pypi API token handy)
15+
3116
```
32-
python3 setup.py sdist upload -r pypitodbotdotcom
17+
python3 -m pip install --upgrade twine
18+
python3 -m build
19+
# to test
20+
python3 -m twine upload --repository testpypi dist/*
21+
# for reals
22+
python3 -m twine upload dist/*
3323
```
3424
4. Verify new version on PyPi: https://pypi.org/project/blink1/

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ Homepage = "https://github.com/todbot/blink1-python"
3636

3737
[tool.setuptools.packages.find]
3838
where = ["."]
39+
include = ["blink1"]

0 commit comments

Comments
 (0)