Fabio Manganiello
e071e99dab
Remove all cached/compiled Python files after Docker build.
2024-05-25 13:36:52 +02:00
Fabio Manganiello
2e0246413c
Replaced an old `for ... in ... yield` loop with `yield from ...`
2024-05-25 10:35:23 +02:00
Fabio Manganiello
b1dd484704
A more corner-case-proof logic for `wants_break_system_packages`.
continuous-integration/drone/push Build is passing
Details
2024-05-25 10:33:05 +02:00
Fabio Manganiello
303b11613b
s/Dockerfile.default/Dockerfile.alpine/
continuous-integration/drone/push Build is passing
Details
2024-05-25 10:30:53 +02:00
Fabio Manganiello
05c6449d8b
Always add --break-system-packages to pip when the Docker context is active.
...
This fixes the case where Platydock is called within the context of a
virtual environment, but it needs to generate a Docker image - and
therefore, unless the host virtual environment, it needs
--break-system-packages to write to /usr.
2024-05-25 10:30:52 +02:00
Fabio Manganiello
5e52741986
[Automatic] Updated components cache
continuous-integration/drone/push Build is passing
Details
2024-05-25 08:19:19 +00:00
Fabio Manganiello
7d8a00696c
Adapted Platydock to the new Dockerfile format.
continuous-integration/drone/push Build is passing
Details
2024-05-25 10:17:45 +02:00
Fabio Manganiello
254604e404
py3-vlc has not been merged upstream in Alpine Linux yet.
2024-05-25 10:17:19 +02:00
Fabio Manganiello
8f0002ae40
Moved /Dockerfile to /Dockerfile.default.
...
It can mess up the Alpine Dockerfile if platydock is run from the source
directory.
2024-05-25 10:16:29 +02:00
Fabio Manganiello
8e05a7f4c9
Make Dockerfiles work both within and outside a Platypush source dir.
...
If the Platypush setup.py is found in the current directory, then use
that directory as the base for the new image.
Otherwise, clone the repo on the fly and build the image from there.
2024-05-25 00:42:30 +02:00
Fabio Manganiello
0fd2992894
Added `platypush.events` alias for `platypush.message.event` package.
2024-05-24 23:16:15 +02:00
Fabio Manganiello
efd97f7186
Added a docker-compose.yml.
2024-05-24 23:15:37 +02:00
Fabio Manganiello
3ccdd4d179
Updated `pip ... --break-system-packages` configuration.
...
All the latest versions of Alpine, Debian, Ubuntu and Fedora now require
`--break-system-packages` when installing packages via `pip` outside of
a virtual environment, even if it's within a container.
2024-05-24 22:59:42 +02:00
Fabio Manganiello
d20cd4b058
Added a nice ASCII-art logo at application startup.
2024-05-24 22:57:50 +02:00
Fabio Manganiello
c49b4ca273
`platypush.run` should also support procedures in the format `procedure.<name>`.
continuous-integration/drone/push Build is passing
Details
2024-05-24 20:20:25 +02:00
Fabio Manganiello
5c2204f99d
Allow for custom procedure names on the `@procedure` decorator.
...
```
@procedure("foo")
def bar():
...
```
Will now be published as `procedure.foo` instead of
`procedure.<module>.bar`.
2024-05-24 20:07:24 +02:00
Fabio Manganiello
cbc58c7330
Fix: /var/lib/platypush is still empty at the time of package creation.
continuous-integration/drone/push Build is passing
Details
2024-05-23 03:37:46 +02:00
Fabio Manganiello
7ca2159acb
Fix: missing newline escape
continuous-integration/drone/push Build is failing
Details
2024-05-23 03:34:00 +02:00
Fabio Manganiello
2dd5b6c122
systemd-rpm-macros is a build requirement for the Fedora build.
continuous-integration/drone/push Build is failing
Details
2024-05-23 03:28:56 +02:00
Fabio Manganiello
a51d8978e7
[ #319 ] Added /etc/platypush and /var/lib/platypush to rpm packages.
continuous-integration/drone/push Build is failing
Details
2024-05-23 03:24:24 +02:00
Fabio Manganiello
a5adac9314
[ #319 ] Added /etc and /var/lib dirs to Debian package.
2024-05-23 02:46:38 +02:00
Fabio Manganiello
a211e2e2e4
Changed default permissions for /var/lib/platypush from 0755 to 0750.
2024-05-23 01:15:26 +02:00
Fabio Manganiello
7fa0dbda7b
Split Drone CI steps into separate shell scripts.
...
continuous-integration/drone/push Build is passing
Details
A fully self-contained 1.5k LoC Drone file isn't very maintainable, and
it makes it hard to reuse parts that are shared across multiple steps
(like SSH and git configuration).
2024-05-23 00:17:55 +02:00
snyk-bot
46da373637
fix: upgrade sass from 1.75.0 to 1.76.0
...
Snyk has created this PR to upgrade sass from 1.75.0 to 1.76.0.
See this package in npm:
sass
See this project in Snyk:
https://app.snyk.io/org/blacklight/project/96bfd125-5816-4d9e-83c6-94d1569ab0f1?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-22 12:34:49 +00:00
Fabio Manganiello
4038ef3bc1
[ #319 ] Added `platypush/config/systemd` directory.
...
continuous-integration/drone/push Build is passing
Details
It contains both `platypush.service` and the `sysusers.d` and
`tmpfiles.d` configurations used by the package managers.
2024-05-20 22:19:30 +02:00
Fabio Manganiello
1cad0394ab
systemd requirements tweak.
...
continuous-integration/drone/push Build is passing
Details
`Requires=redis.service` should be commented unless the service is
started as a privileged user.
Also added some comments on how the systemd service usually works.
2024-05-20 21:51:08 +02:00
Fabio Manganiello
02a3385638
Tweaked Platypush systemd service.
...
continuous-integration/drone/push Build is passing
Details
- A more informative Description
- `s/WantedBy=default.target/WantedBy=multi-user.target/`
- `redis.service` is a strong requirement
2024-05-20 13:02:36 +02:00
Fabio Manganiello
c899627eca
[Automatic] Updated components cache
continuous-integration/drone/push Build is passing
Details
2024-05-20 00:03:25 +00:00
Fabio Manganiello
d0f781919d
[ #345 ] Rewritten `sun` plugin.
...
continuous-integration/drone/push Build is passing
Details
Closes : #345
2024-05-20 02:01:40 +02:00
Fabio Manganiello
86b4b14112
Added the current running application as a static object.
...
continuous-integration/drone/push Build is passing
Details
```python
from platypush import app
```
2024-05-20 01:54:25 +02:00
Fabio Manganiello
32b8296244
[ #400 ] Dynamic logic to infer procedures/hooks arguments.
...
This allows procedures and event hooks to have more flexible signatures.
Along the lines of:
```python
@when(SomeEvent)
def hook(event):
...
@when(SomeOtherEvent)
def hook2():
...
```
Instead of supporting only the full context spec:
```python
@when(SomeEvent)
def hook(event, **ctx):
...
```
Closes : #400
2024-05-19 02:17:42 +02:00
Fabio Manganiello
2ab1743bec
[Docs UI] Fix filter bar to the top while scrolling.
2024-05-19 02:17:42 +02:00
Fabio Manganiello
70ffe0ec04
[Automatic] Updated components cache
continuous-integration/drone/push Build is passing
Details
2024-05-17 00:23:06 +00:00
Fabio Manganiello
3d5c60e4f4
[UI docs] Added filter bar for integrations and events.
continuous-integration/drone/push Build is passing
Details
2024-05-17 02:21:57 +02:00
Fabio Manganiello
f06233801b
[ #394 ] Dynamically generate setup extras.
...
Also, convert all code that relied on `manifest.yaml` to use
`manifest.json` instead.
Closes : #394
2024-05-17 02:21:57 +02:00
Fabio Manganiello
59c693d6a0
[ #394 ] All `manifest.yaml` converted to `manifest.json`.
...
YAML isn't part of the Python standard library, while JSON is.
If we want `setup.py` to dynamically parse the available integration
manifest files in order to populate the extra dependencies, then it's
better to rely on a JSON format for manifest files - the parser is part
of the standard library and it doesn't require the user to install
`pyyaml` before `platypush`.
2024-05-17 02:21:57 +02:00
Fabio Manganiello
79a71d00b4
[Automatic] Updated components cache
continuous-integration/drone/push Build is passing
Details
2024-05-16 00:44:03 +00:00
Fabio Manganiello
c77cf2c98b
[ #372 ] Removed Google Fit plugin.
...
continuous-integration/drone/push Build is passing
Details
The Fit API has (unfortunately) been deprecated by Google with no
alternatives - the new Health Connect API is only available on Android
devices.
Other Google APIs don't seem to be affected by the refresh token issue
either, so this should hopefully close that issue too.
Closes : #372
2024-05-16 02:42:54 +02:00
Fabio Manganiello
f514f7ce1e
[Automatic] Updated components cache
continuous-integration/drone/push Build is passing
Details
2024-05-15 07:57:10 +00:00
Fabio Manganiello
98a98ea1dc
[ #398 ] Removed custom `Response` objects from Tensorflow and response docs generation logic.
...
continuous-integration/drone/push Build is passing
Details
Closes : #398
2024-05-15 09:55:58 +02:00
Fabio Manganiello
77c91aa5e3
[Automatic] Updated components cache
continuous-integration/drone/push Build is passing
Details
2024-05-15 06:35:17 +00:00
Fabio Manganiello
0e11bbeb05
Fixed schema reference.
continuous-integration/drone/push Build is passing
Details
2024-05-15 08:33:49 +02:00
Fabio Manganiello
20f3eaf375
[ #398 ] Refactored `esp` plugin.
...
continuous-integration/drone/push Build was killed
Details
- Converted `Response` objects into `Schema`s.
- Removed the last references to the deprecated `Mapping` object.
- Fixed all errors and warnings in the plugin.
2024-05-15 01:29:45 +02:00
Fabio Manganiello
55e230c361
Removed `wiimote` events associated to removed `wiimote` plugin.
2024-05-15 01:29:45 +02:00
snyk-bot
092f5b607c
fix: upgrade vue from 3.4.23 to 3.4.24
...
Snyk has created this PR to upgrade vue from 3.4.23 to 3.4.24.
See this package in npm:
https://www.npmjs.com/package/vue
See this project in Snyk:
https://app.snyk.io/org/blacklight/project/96bfd125-5816-4d9e-83c6-94d1569ab0f1?utm_source=github&utm_medium=referral&page=upgrade-pr
2024-05-14 17:33:05 +00:00
Fabio Manganiello
ad4d929c28
[Automatic] Updated components cache
continuous-integration/drone/push Build is passing
Details
2024-05-13 00:23:15 +00:00
Fabio Manganiello
7ae99b4325
[ #398 ] `cups` plugin refactor.
...
continuous-integration/drone/push Build is passing
Details
1. Renamed plugin: `printer.cups` ➡️ `cups`.
2. Replaced `Response` objects with schemas.
2024-05-13 02:22:04 +02:00
Fabio Manganiello
2efffb8ebe
[Automatic] Updated components cache
continuous-integration/drone/push Build is passing
Details
2024-05-12 23:26:45 +00:00
Fabio Manganiello
15b1c1f3c0
[ #398 ] Replaced `GoogleDriveFile` response with `GoogleDriveFileSchema`.
continuous-integration/drone/push Build is passing
Details
2024-05-13 01:25:33 +02:00
Fabio Manganiello
6003b205c8
[ #398 ] Removed `TranslateResponse`.
2024-05-13 01:25:33 +02:00