Skip to content

Commit aa4fbf4

Browse files
authored
v0.1.8 updates (#116)
1 parent 0498367 commit aa4fbf4

File tree

8 files changed

+11236
-23009
lines changed

8 files changed

+11236
-23009
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.1.8 - 2023-06-19]
6+
7+
Maintenance update to add Nextcloud Hub 5 (27) support.
8+
9+
### Updated
10+
11+
- Updated packages
12+
- Updated l10n
13+
514
## [0.1.7 - 2023-03-27]
615

716
### Fixed

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,3 @@ The Nextcloud `cloud_py_api` app supports Nextcloud version 25 and higher.
3535
## Apps using this
3636

3737
- [MediaDC](https://github.com/andrey18106/mediadc) - Nextcloud Media Duplicate collector app. Python part - core logics for duplicates search.
38-
39-
## Support
40-
41-
You can support us in several ways:
42-
43-
- ⭐ Star our work (it really motivates)
44-
- ❗ Create an Issue or feature request (bring to us an excellent idea)
45-
- 💁 Resolve some Issue or create a Pull Request (contribute to this project)
46-
- 🪙 Donate with any amount with one of the links below (fund this project)
47-
48-
[![PayPal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/donate?hosted_button_id=H5PLJJMWLDNJQ)
49-
[![Liberapay](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/cloud_py_api/donate)

appinfo/info.xml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,9 @@ Nextcloud Python API Framework
2020
### Used by the following apps
2121
2222
- [MediaDC](https://apps.nextcloud.com/apps/mediadc) - Nextcloud Media Duplicate Collector app
23-
24-
### Support
25-
26-
You can support us in several ways:
27-
28-
- ⭐ Star our work (it really motivates)
29-
- ❗ Create an issue or feature request (bring to us an excellent idea)
30-
- 💁 Resolve some issues or create a pull request (contribute to this project)
31-
- 🪙 Donate with any amount with one of the links below (fund this project)
32-
33-
[![PayPal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/donate?hosted_button_id=H5PLJJMWLDNJQ)
34-
[![Liberapay](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/cloud_py_api/donate)
3523
]]>
3624
</description>
37-
<version>0.1.7</version>
25+
<version>0.1.8</version>
3826
<licence>agpl</licence>
3927
<author mail="andrey18106x@gmail.com" homepage="https://github.com/andrey18106">Andrey Borysenko</author>
4028
<author mail="bigcat88@icloud.com" homepage="https://github.com/bigcat88">Alexander Piskun</author>
@@ -49,7 +37,7 @@ You can support us in several ways:
4937
<repository type="git">https://github.com/cloud-py-api/cloud_py_api</repository>
5038
<dependencies>
5139
<php min-version="7.4" min-int-size="64" />
52-
<nextcloud min-version="25" max-version="26" />
40+
<nextcloud min-version="25" max-version="28" />
5341
</dependencies>
5442
<repair-steps>
5543
<post-migration>

lib/Service/PythonService.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,24 @@ public function __construct(
6868
* @param string $appId target Application::APP_ID
6969
* @param string $scriptName relative to cwd path to the Python script or binary
7070
* @param array $scriptParams params to script in array (`['-param1' => value1, '--param2' => value2]`)
71-
* @param boolean $nonBlocking flag that determines how to run Python script
71+
* @param bool $nonBlocking flag that determines how to run Python script
7272
* @param array $env environment variables for python script or binary
7373
* @param bool $binary flag to determine is python binary given or a python script
7474
*
7575
* @return array|void output, result_code, errors
7676
*
77-
* If `$nonBlocking = true` - function will not waiting for Python script output, return `void`.
77+
* If `$nonBlocking = true` - function will not wait for Python script output, return `void`.
7878
* If `$nonBlocking = false` - function will return array with the `result_code`,
7979
* `output` and `errors` of the script after Python finish executing.
8080
*/
8181
public function run(
82-
$appId,
83-
$scriptName,
84-
$scriptParams = [],
85-
$nonBlocking = false,
86-
$env = [],
87-
$binary = false
88-
) {
82+
string $appId,
83+
string $scriptName,
84+
array $scriptParams = [],
85+
bool $nonBlocking = false,
86+
array $env = [],
87+
bool $binary = false
88+
) {
8989
if ($binary) {
9090
$cwd = $this->ncDataFolder . '/appdata_' . $this->ncInstanceId . '/' . $appId . '/';
9191
} else {

0 commit comments

Comments
 (0)