dinemic-cli 0.0.19__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. dinemic_cli-0.0.19/.gitlab-ci.yml +81 -0
  2. dinemic_cli-0.0.19/CONTRIBUTING +47 -0
  3. dinemic_cli-0.0.19/LICENSE +696 -0
  4. dinemic_cli-0.0.19/PKG-INFO +13 -0
  5. dinemic_cli-0.0.19/legal/CLA-ENTITY.md +119 -0
  6. dinemic_cli-0.0.19/legal/CLA.md +195 -0
  7. dinemic_cli-0.0.19/pyproject.toml +26 -0
  8. dinemic_cli-0.0.19/pytest.ini +6 -0
  9. dinemic_cli-0.0.19/setup.cfg +4 -0
  10. dinemic_cli-0.0.19/src/dinemic_cli/__init__.py +1 -0
  11. dinemic_cli-0.0.19/src/dinemic_cli/__main__.py +16 -0
  12. dinemic_cli-0.0.19/src/dinemic_cli/client.py +75 -0
  13. dinemic_cli-0.0.19/src/dinemic_cli/commands/__init__.py +0 -0
  14. dinemic_cli-0.0.19/src/dinemic_cli/commands/auth.py +31 -0
  15. dinemic_cli-0.0.19/src/dinemic_cli/commands/caa.py +11 -0
  16. dinemic_cli-0.0.19/src/dinemic_cli/commands/cert.py +29 -0
  17. dinemic_cli-0.0.19/src/dinemic_cli/commands/cert_peer.py +37 -0
  18. dinemic_cli-0.0.19/src/dinemic_cli/commands/dns_entry.py +57 -0
  19. dinemic_cli-0.0.19/src/dinemic_cli/commands/dns_value.py +43 -0
  20. dinemic_cli-0.0.19/src/dinemic_cli/commands/dns_zone.py +98 -0
  21. dinemic_cli-0.0.19/src/dinemic_cli/commands/endpoint.py +39 -0
  22. dinemic_cli-0.0.19/src/dinemic_cli/commands/healthcheck.py +40 -0
  23. dinemic_cli-0.0.19/src/dinemic_cli/commands/loadbalancer.py +39 -0
  24. dinemic_cli-0.0.19/src/dinemic_cli/commands/loadbalancer_backend.py +44 -0
  25. dinemic_cli-0.0.19/src/dinemic_cli/commands/loadbalancer_host.py +37 -0
  26. dinemic_cli-0.0.19/src/dinemic_cli/commands/loadbalancer_route.py +42 -0
  27. dinemic_cli-0.0.19/src/dinemic_cli/commands/network.py +34 -0
  28. dinemic_cli-0.0.19/src/dinemic_cli/commands/node.py +29 -0
  29. dinemic_cli-0.0.19/src/dinemic_cli/commands/peer.py +33 -0
  30. dinemic_cli-0.0.19/src/dinemic_cli/commands/peer_config.py +33 -0
  31. dinemic_cli-0.0.19/src/dinemic_cli/commands/project.py +58 -0
  32. dinemic_cli-0.0.19/src/dinemic_cli/commands/quota.py +22 -0
  33. dinemic_cli-0.0.19/src/dinemic_cli/main.py +68 -0
  34. dinemic_cli-0.0.19/src/dinemic_cli/output.py +25 -0
  35. dinemic_cli-0.0.19/src/dinemic_cli.egg-info/PKG-INFO +13 -0
  36. dinemic_cli-0.0.19/src/dinemic_cli.egg-info/SOURCES.txt +73 -0
  37. dinemic_cli-0.0.19/src/dinemic_cli.egg-info/dependency_links.txt +1 -0
  38. dinemic_cli-0.0.19/src/dinemic_cli.egg-info/entry_points.txt +2 -0
  39. dinemic_cli-0.0.19/src/dinemic_cli.egg-info/requires.txt +4 -0
  40. dinemic_cli-0.0.19/src/dinemic_cli.egg-info/scm_file_list.json +69 -0
  41. dinemic_cli-0.0.19/src/dinemic_cli.egg-info/scm_version.json +8 -0
  42. dinemic_cli-0.0.19/src/dinemic_cli.egg-info/top_level.txt +2 -0
  43. dinemic_cli-0.0.19/src/requirements.txt +4 -0
  44. dinemic_cli-0.0.19/src/tests/01-cli-fixes.patch +418 -0
  45. dinemic_cli-0.0.19/src/tests/02-tests-after-fixes.patch +208 -0
  46. dinemic_cli-0.0.19/src/tests/api_samples.py +214 -0
  47. dinemic_cli-0.0.19/src/tests/cert_peer.py +37 -0
  48. dinemic_cli-0.0.19/src/tests/cli_runner.py +113 -0
  49. dinemic_cli-0.0.19/src/tests/command_matrix.py +612 -0
  50. dinemic_cli-0.0.19/src/tests/conftest.py +235 -0
  51. dinemic_cli-0.0.19/src/tests/dns_entry.py +41 -0
  52. dinemic_cli-0.0.19/src/tests/dns_value.py +43 -0
  53. dinemic_cli-0.0.19/src/tests/dns_zone.py +38 -0
  54. dinemic_cli-0.0.19/src/tests/endpoint.py +39 -0
  55. dinemic_cli-0.0.19/src/tests/healthcheck.py +40 -0
  56. dinemic_cli-0.0.19/src/tests/loadbalancer.py +36 -0
  57. dinemic_cli-0.0.19/src/tests/loadbalancer_backend.py +44 -0
  58. dinemic_cli-0.0.19/src/tests/loadbalancer_host.py +37 -0
  59. dinemic_cli-0.0.19/src/tests/loadbalancer_route.py +42 -0
  60. dinemic_cli-0.0.19/src/tests/network.py +34 -0
  61. dinemic_cli-0.0.19/src/tests/network_node.py +74 -0
  62. dinemic_cli-0.0.19/src/tests/node.py +23 -0
  63. dinemic_cli-0.0.19/src/tests/peer.py +33 -0
  64. dinemic_cli-0.0.19/src/tests/project.py +58 -0
  65. dinemic_cli-0.0.19/src/tests/support.py +246 -0
  66. dinemic_cli-0.0.19/src/tests/test_auth.py +114 -0
  67. dinemic_cli-0.0.19/src/tests/test_columns.py +58 -0
  68. dinemic_cli-0.0.19/src/tests/test_commands.py +98 -0
  69. dinemic_cli-0.0.19/src/tests/test_confirmations.py +71 -0
  70. dinemic_cli-0.0.19/src/tests/test_envvars.py +119 -0
  71. dinemic_cli-0.0.19/src/tests/test_error_handling.py +83 -0
  72. dinemic_cli-0.0.19/src/tests/test_lifecycle.py +188 -0
  73. dinemic_cli-0.0.19/src/tests/test_network_node.py +116 -0
  74. dinemic_cli-0.0.19/src/tests/test_option_contract.py +335 -0
  75. dinemic_cli-0.0.19/src/tests/test_smoke.py +83 -0
@@ -0,0 +1,81 @@
1
+ stages:
2
+ # - lint
3
+ - build
4
+ - publish
5
+
6
+ variables:
7
+ PIP_CACHE_DIR: "${CI_PROJECT_DIR}/.cache/pip"
8
+ GIT_DEPTH: 0
9
+ PYTHON_KEYRING_BACKEND: "keyring.backends.null.Keyring"
10
+
11
+ cache:
12
+ key:
13
+ files:
14
+ - pyproject.toml
15
+ paths:
16
+ - .cache/pip
17
+
18
+ #lint:
19
+ # stage: lint
20
+ # image: python:3.12-slim
21
+ # before_script:
22
+ # - pip install --quiet ruff
23
+ # script:
24
+ # - ruff check src
25
+ # - ruff format --check src
26
+ # rules:
27
+ # - if: $CI_PIPELINE_SOURCE == "merge_request_event"
28
+ # - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
29
+ # - if: $CI_COMMIT_TAG
30
+ # allow_failure: true
31
+
32
+ build:package:
33
+ stage: build
34
+ image: python:3.12-slim
35
+ before_script:
36
+ - apt-get update -qq && apt-get install -y -qq --no-install-recommends git
37
+ - pip install --quiet build
38
+ script:
39
+ - python -m build
40
+ - ls -la dist/
41
+ - pip install --quiet dist/*.whl
42
+ - dinemic --help
43
+ artifacts:
44
+ name: "dinemic-cli-${CI_COMMIT_REF_SLUG}"
45
+ paths:
46
+ - dist/
47
+ expire_in: 30 days
48
+ rules:
49
+ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
50
+ - if: $CI_COMMIT_TAG
51
+
52
+ publish:gitlab:
53
+ stage: publish
54
+ image: python:3.12-slim
55
+ needs:
56
+ - job: build:package
57
+ artifacts: true
58
+ before_script:
59
+ - pip install --quiet twine
60
+ script:
61
+ - >
62
+ TWINE_USERNAME=gitlab-ci-token
63
+ TWINE_PASSWORD=${CI_JOB_TOKEN}
64
+ python -m twine upload
65
+ --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi
66
+ dist/*
67
+ - |
68
+ echo "Published ${CI_COMMIT_TAG}. Install with:"
69
+ echo " pip install dinemic-cli --index-url ${CI_SERVER_URL}/api/v4/projects/${CI_PROJECT_ID}/packages/pypi/simple"
70
+ rules:
71
+ - if: $CI_COMMIT_TAG
72
+
73
+ publish:pypi:
74
+ image: python:3.12
75
+ stage: publish
76
+ rules:
77
+ - if: $CI_COMMIT_TAG
78
+ script:
79
+ - pip install build twine
80
+ - python -m build
81
+ - twine upload dist/*
@@ -0,0 +1,47 @@
1
+ # Contributing
2
+
3
+ Thank you for your interest in this project.
4
+
5
+ ## Licensing model
6
+
7
+ This project is dual-licensed by CloudOver.io ltd.:
8
+
9
+ - as free software under the **GNU Affero General Public Licence v3 (AGPL-3.0)**, and
10
+ - under **commercial licence terms** for organisations that cannot or do not wish to comply with the AGPL.
11
+
12
+ Revenue from commercial licences funds the development of the open-source version. For this model to work, CloudOver must hold the rights necessary to ship every line of the project under both sets of terms. That is what the Contributor Licence Agreement is for.
13
+
14
+ ## Contributor Licence Agreement
15
+
16
+ Before your first contribution can be merged, you need to accept a CLA:
17
+
18
+ - **[Individual CLA](CLA.md)** — if you are contributing on your own account.
19
+ - **[Entity CLA](CLA-ENTITY.md)** — if you are contributing as part of your job, or your employer may have a claim to your work. Ask whoever handles legal matters at your organisation to sign it.
20
+
21
+ Not sure which applies? If you wrote the code on company time, on company equipment, or it relates to what your employer does, assume the Entity CLA is needed and ask. In most countries rights in software written in the course of employment vest in the employer automatically, so a contribution made in good faith can still fail to carry the rights you think it does.
22
+
23
+ ### What the CLA does
24
+
25
+ - You keep your copyright. You can reuse your own contributions however you like.
26
+ - You license those contributions to CloudOver broadly enough that CloudOver can ship them under the AGPL and under commercial terms.
27
+ - CloudOver commits to keeping a version of the project publicly available under an open-source licence.
28
+ - You confirm the work is yours to give, and you take on no warranty or liability for it.
29
+
30
+ ### How to accept
31
+
32
+ Open a pull request. The CLA bot will comment with a link; follow it and confirm. You only need to do this once. If the CLA text is later revised, the version in force when you submitted a contribution is the one that governs it.
33
+
34
+ ## Before you submit code
35
+
36
+ Please make sure that:
37
+
38
+ - **Everything in the patch is yours.** Do not paste in code from Stack Overflow answers, blog posts, other repositories, or your own work for a previous employer, unless you are certain of its provenance.
39
+ - **You have not copied code from GPL, AGPL, LGPL, MPL or EPL projects owned by someone else.** Even though this project is itself AGPL, CloudOver cannot relicense third-party copyleft code commercially. A single such fragment would have to be removed and rewritten from scratch.
40
+ - **If a patch does contain third-party material, you say so explicitly** in the pull request, naming the source, the author and the licence. Third-party material is not automatically rejected, but it has to be reviewed and it may need to be isolated or replaced.
41
+ - **Anything produced with a code-generation tool has been reviewed by you** for material that reproduces someone else's work.
42
+
43
+ Flagging a problem costs a review round. Not flagging one can mean an emergency release months later.
44
+
45
+ ## Reporting security issues
46
+
47
+ Please do not open a public issue for a security vulnerability. Email contact@cloudover.io instead.