This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
419d65f
commit 17102b1
Showing
17 changed files
with
260 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.. _Extending tasks: | ||
Extending tasks | ||
=============== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Docker | ||
====== | ||
|
||
RunInContainerBaseTask | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
- inner_execute() should be used to execute a code while the container is running | ||
- execute() should not be overridden | ||
|
||
.. jinja:: RunInContainerBaseTask | ||
:file: source/templates/package-usage.rst | ||
|
||
.. CAUTION:: | ||
This is a Base Task. It is not a Task to run, but to create a **own, runnable Task** basing on it. | ||
|
||
.. HINT:: | ||
This is an extendable task. Read more in :ref:`Extending tasks` chapter. | ||
|
||
|
||
.. autoclass:: rkd.core.standardlib.docker.RunInContainerBaseTask | ||
:exclude-members: get_name, get_group_name | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,8 @@ Built-in tasks | |
shell | ||
technical | ||
python | ||
php | ||
env | ||
jinja | ||
io | ||
docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
IO | ||
== | ||
|
||
ArchivePackagingBaseTask | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. jinja:: ArchivePackagingBaseTask | ||
:file: source/templates/package-usage.rst | ||
|
||
.. CAUTION:: | ||
This is a Base Task. It is not a Task to run, but to create a **own, runnable Task** basing on it. | ||
|
||
.. HINT:: | ||
This is an extendable task. Read more in :ref:`Extending tasks` chapter. | ||
|
||
|
||
.. autoclass:: rkd.core.standardlib.io.ArchivePackagingBaseTask | ||
:exclude-members: get_name, get_group_name | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
PHP | ||
=== | ||
|
||
PhpScriptTask | ||
~~~~~~~~~~~~~ | ||
|
||
- configure: Should be overridden only with @before_parent decorator | ||
- inner_execute: Should be overridden preserving original parent after or before | ||
- input: A string of PHP code, optionally | ||
|
||
.. jinja:: PhpScriptTask | ||
:file: source/templates/package-usage.rst | ||
|
||
.. CAUTION:: | ||
This is a Base Task. It is not a Task to run, but to create a **own, runnable Task** basing on it. | ||
|
||
.. HINT:: | ||
This is an extendable task. Read more in :ref:`Extending tasks` chapter. | ||
|
||
|
||
.. autoclass:: rkd.php.script.PhpScriptTask | ||
:exclude-members: get_name, get_group_name | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
recursive-exclude tests * | ||
recursive-exclude example * | ||
include requirements-external.txt | ||
include requirements-subpackages.txt | ||
include setup.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "wheel", "riotkit.pbs>=1"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
riotkit.pbs >= 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "rkd.php", | ||
"author": "RiotKit non-profit organization", | ||
"author_email": "riotkit@riseup.net", | ||
"description": "rkd.php adds support for PHP language in Riotkit-Do", | ||
"url": "https://github.com/riotkit-org", | ||
"license": "Apache-2", | ||
"classifiers": [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: System Administrators", | ||
"Intended Audience :: Information Technology", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: POSIX", | ||
"Programming Language :: Python :: 3 :: Only" | ||
], | ||
"keywords": ["rkd", "riotkit", "anarchism", "php"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from riotkit.pbs import get_setup_attributes | ||
from setuptools import setup, find_namespace_packages | ||
|
||
setup( | ||
**get_setup_attributes(root_dir='./', git_root_dir='../../'), | ||
packages=find_namespace_packages(include='rkd.*', exclude=('tests',)), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters