Package Details: platformio 5.0.4-1

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: 61
Popularity: 2.05
First Submitted: 2016-02-11 15:01
Last Updated: 2020-12-30 23:41

Latest Comments

1 2 3 4 Next › Last »

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.

Jake commented on 2020-02-01 00:48

@TheAifam5: I have also sent Felix Yan a mail a few weeks ago, with updated semantic-version PKGBUILD and explanation that it does not break other packages. Same as you, did also not get any response... Don't quite know what to do now. Just push the update here with a notice that users have to fix this dependency themselves?

@Scrumplex: It is actually already in the package, you can create a link to make udev load them: ln -s /usr/lib/python3.8/site-packages/scripts/99-platformio-udev.rules /etc/udev/rules.d/

TheAifam5 commented on 2020-01-31 01:37

Fix is already on the master. Will come in next release, which will be marshmallow 3 compatible. https://github.com/platformio/platformio-core/issues/3283

I tried to contact with the maintainer of the „python-semantic-version“. Even sent him PKGBUILD which may help him a little bit, but never got any response.

Scrumplex commented on 2020-01-23 22:38

What about adding the platformio udev rules to this package? https://docs.platformio.org/en/latest/faq.html#platformio-udev-rules

Jake commented on 2019-12-26 18:11

@TheAifam5 @offlinehoster: Thanks for the help. The main problem is in my opinion still semantic_version, because it is in the official repos and not in the correct version... but making a AUR package just with a newer version seems wrong. I also tried applying the patch (2.6.0 > 2.8.1) in reverse, but there were other changes and it is not that easy. Otherwise we could fulfill the 4.1.0 dependencies now, here is the list from setup.py:

    "bottle<0.13",
    "click>=5,<8",
    "colorama",
    "pyserial>=3,<4,!=3.3",
    "requests>=2.4.0,<3",
    "semantic_version>=2.8.1,<3",
    "tabulate>=0.8.3,<1",
    "pyelftools>=0.25,<1",
    "marshmallow>=2.20.5,<3"