Package Details: platformio 5.1.0-3

Git Clone URL: https://aur.archlinux.org/platformio.git (read-only, click to copy)
Package Base: platformio
Description: A cross-platform code builder and library manager
Upstream URL: https://github.com/platformio/platformio-core/
Keywords: arduino builder platformio
Licenses: Apache
Conflicts: platformio-git
Submitter: zer0chain
Maintainer: zer0chain (Jake)
Last Packager: Jake
Votes: 63
Popularity: 2.30
First Submitted: 2016-02-11 15:01
Last Updated: 2021-02-22 11:23

Latest Comments

1 2 3 4 5 Next › Last »

Jake commented on 2021-02-22 11:24

@greyltc: True, thanks! Actually it missed a few more that got added for the pio home web UI, they are all added now (pkgrel=3).

greyltc commented on 2021-02-21 14:23

Seems to be missing python-starlette dep.

Jake commented on 2021-02-01 13:26

ansemjo: No, that is indeed not necessary, it is changed now. Thanks for the notice!

ansemjo commented on 2021-02-01 12:06

Is there a reason why /usr/lib/udev/rules.d/99-platformio-udev.rules needs to be executable? Otherwise I'd suggest adding a -m644 to the install command in package(). :)

ixil commented on 2020-12-21 12:20

Is it possible to install the shell completions to a system-wide install location?

Jake commented on 2020-12-12 13:10

@snowball: I understand your argument with new python releases an have added the install line now. Thanks for the patch! I don't think a additional install script is required though. Reloading of udev rules is handled automatically with a pacman hook: /usr/share/libalpm/hooks/30-systemd-udev-reload.hook and while being in uucp is necessary for serial port access it is not specific to this package, more a general system configuration thing.

snowball commented on 2020-12-09 10:23

To install the udev rules:

diff --git a/PKGBUILD b/PKGBUILD
index d6a0428..3f70958 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,10 +27,12 @@ depends=('python-setuptools'
 optdepends=('python-click-completion: for shell completions'
            'python-shellingham: for shell completions')
 conflicts=('platformio-git')
+install=platformio.install
 source=("https://github.com/platformio/platformio-core/archive/v${pkgver}.tar.gz")
 sha256sums=('ec55d9ff9cd5f2874617c4fcc87360af177dcfbf0ac90bb14d38c14969d41c60')

 package() {
     cd "$srcdir/platformio-core-$pkgver"
     python setup.py install --root="$pkgdir/" --optimize=1
+    install -Dt "$pkgdir/usr/lib/udev/rules.d" "scripts/99-platformio-udev.rules"
 }
diff --git a/platformio.install b/platformio.install
new file mode 100644
index 0000000..b46b9c0
--- /dev/null
+++ b/platformio.install
@@ -0,0 +1,6 @@
+post_install() {
+    echo 'Restart udev and add yourself to the uucp group for access to serial ports:'
+    echo '  systemctl restart systemd-udevd.service'
+    echo '  usermod -a -G uucp $USER'
+    echo 'You will need to log out and log back in again after the group change.'
+}

I prefer this over creating a symlink, as the symlink breaks whenever there's a new Python release.

Jake commented on 2020-09-04 16:03

@greyltc: Fixed upstream (for 5.0.1): https://github.com/platformio/platformio-core/pull/3650

greyltc commented on 2020-09-03 20:35

Hey, please don't put stuff in /usr/lib/python3.8/site-packages/tests

TheAifam5 commented on 2020-02-12 20:52

PIO 4.2 released, where the issue with marshmallow 3 should be fixed. https://github.com/platformio/platformio-core/releases/tag/v4.2.0

Still python-semantic-version got no update.