cmem-plugin-random 0.7.0__tar.gz → 0.7.1__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.
@@ -0,0 +1,176 @@
1
+ # NOTE: this file is shipped inside the source distribution. Hatchling
2
+ # force-includes the VCS ignore file in every sdist and no setting can turn
3
+ # that off, so anything written here is published together with the package -
4
+ # on PyPI too, if the project publishes there. Keep it free of internal host
5
+ # names, customer names and similar.
6
+
7
+ # https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore
8
+ # Byte-compiled / optimized / DLL files
9
+ __pycache__/
10
+ *.py[cod]
11
+ *$py.class
12
+
13
+ # C extensions
14
+ *.so
15
+
16
+ # Distribution / packaging
17
+ .Python
18
+ build/
19
+ develop-eggs/
20
+ dist/
21
+ downloads/
22
+ eggs/
23
+ .eggs/
24
+ lib/
25
+ lib64/
26
+ parts/
27
+ sdist/
28
+ var/
29
+ wheels/
30
+ share/python-wheels/
31
+ *.egg-info/
32
+ .installed.cfg
33
+ *.egg
34
+ MANIFEST
35
+
36
+ # PyInstaller
37
+ # Usually these files are written by a python script from a template
38
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
39
+ *.manifest
40
+ *.spec
41
+
42
+ # Installer logs
43
+ pip-log.txt
44
+ pip-delete-this-directory.txt
45
+
46
+ # Unit test / coverage reports
47
+ htmlcov/
48
+ .tox/
49
+ .nox/
50
+ .coverage
51
+ .coverage.*
52
+ .cache
53
+ nosetests.xml
54
+ coverage.xml
55
+ *.cover
56
+ *.py,cover
57
+ .hypothesis/
58
+ .pytest_cache/
59
+ cover/
60
+
61
+ # Translations
62
+ *.mo
63
+ *.pot
64
+
65
+ # Django stuff:
66
+ *.log
67
+ local_settings.py
68
+ db.sqlite3
69
+ db.sqlite3-journal
70
+
71
+ # Flask stuff:
72
+ instance/
73
+ .webassets-cache
74
+
75
+ # Scrapy stuff:
76
+ .scrapy
77
+
78
+ # Sphinx documentation
79
+ docs/_build/
80
+
81
+ # PyBuilder
82
+ .pybuilder/
83
+ target/
84
+
85
+ # Jupyter Notebook
86
+ .ipynb_checkpoints
87
+
88
+ # IPython
89
+ profile_default/
90
+ ipython_config.py
91
+
92
+ # pyenv
93
+ # For a library or package, you might want to ignore these files since the code is
94
+ # intended to run in multiple environments; otherwise, check them in:
95
+ # .python-version
96
+
97
+ # pipenv
98
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
99
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
100
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
101
+ # install all needed dependencies.
102
+ #Pipfile.lock
103
+
104
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
105
+ __pypackages__/
106
+
107
+ # Celery stuff
108
+ celerybeat-schedule
109
+ celerybeat.pid
110
+
111
+ # SageMath parsed files
112
+ *.sage.py
113
+
114
+ # Environments
115
+ .env
116
+ .venv
117
+ env/
118
+ venv/
119
+ ENV/
120
+ env.bak/
121
+ venv.bak/
122
+
123
+ # Spyder project settings
124
+ .spyderproject
125
+ .spyproject
126
+
127
+ # Rope project settings
128
+ .ropeproject
129
+
130
+ # mkdocs documentation
131
+ /site
132
+
133
+ # mypy
134
+ .mypy_cache/
135
+ .dmypy.json
136
+ dmypy.json
137
+
138
+ # Pyre type checker
139
+ .pyre/
140
+
141
+ # pytype static type analyzer
142
+ .pytype/
143
+
144
+ # Cython debug symbols
145
+ cython_debug/
146
+
147
+ # Claude code specifics
148
+ .claude/settings.local.json
149
+
150
+ # JetBrains IDEs - most of .idea/ is shared, which is what PyCharm's own
151
+ # generated .idea/.gitignore already assumes: vcs.xml, modules.xml, the project
152
+ # .iml, inspectionProfiles/ and runConfigurations/ describe the project, not the
153
+ # machine. These entries follow github/gitignore's Global/JetBrains.gitignore,
154
+ # plus misc.xml, which names the local Python interpreter, and sonarlint/, whose
155
+ # binary index files neither list covers.
156
+ .idea/**/workspace.xml
157
+ .idea/**/tasks.xml
158
+ .idea/**/usage.statistics.xml
159
+ .idea/**/dictionaries
160
+ .idea/**/shelf
161
+ .idea/**/dataSources/
162
+ .idea/**/dataSources.local.xml
163
+ .idea/**/sqlDataSources.xml
164
+ .idea/misc.xml
165
+ .idea/sonarlint/
166
+
167
+ # project build plan specific ignores
168
+ # 'co' is CMEM orchestration output, which is sometimes part of a build plan.
169
+ co
170
+ *.bak
171
+ artifacts
172
+ .DS_Store
173
+ .task
174
+ # uv's package cache, which the gitlab pipeline keeps inside the project so it
175
+ # can be cached between jobs.
176
+ .uv-cache
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2021 CMEM
189
+ Copyright eccenca GmbH
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -1,20 +1,15 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: cmem-plugin-random
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Select random samples and generate random values.
5
- License: Apache-2.0
5
+ Author-email: eccenca GmbH <cmempy-developer@eccenca.com>
6
+ License-Expression: Apache-2.0
6
7
  License-File: LICENSE
7
8
  Keywords: eccenca Corporate Memory,plugin
8
- Author: eccenca GmbH
9
- Author-email: cmempy-developer@eccenca.com
10
- Requires-Python: >=3.13,<4.0
11
9
  Classifier: Development Status :: 4 - Beta
12
10
  Classifier: Environment :: Plugins
13
- Classifier: License :: OSI Approved :: Apache Software License
14
- Classifier: Programming Language :: Python :: 3
15
- Classifier: Programming Language :: Python :: 3.13
16
- Classifier: Programming Language :: Python :: 3.14
17
- Requires-Dist: cmem-plugin-base (>=4.19.0,<5.0.0)
11
+ Requires-Python: <4,>=3.13
12
+ Requires-Dist: cmem-plugin-base<5,>=4.20.0
18
13
  Description-Content-Type: text/markdown
19
14
 
20
15
  # cmem-plugin-random
@@ -23,18 +18,18 @@ Select random samples and generate random values.
23
18
 
24
19
  [![eccenca Corporate Memory][cmem-shield]][cmem-link]
25
20
 
26
- This is a plugin for [eccenca](https://eccenca.com) [Corporate Memory](https://documentation.eccenca.com). You can install it with the [cmemc](https://eccenca.com/go/cmemc) command line client like this:
21
+ This is a plugin for [eccenca Corporate Memory](https://documentation.eccenca.com). You can install it with the [cmemc](https://eccenca.com/go/cmemc) command line client like this:
27
22
 
28
23
  ```
29
24
  cmemc admin workspace python install cmem-plugin-random
30
25
  ```
31
26
  [![pypi version](https://img.shields.io/pypi/v/cmem-plugin-random)](https://pypi.org/project/cmem-plugin-random) [![license](https://img.shields.io/pypi/l/cmem-plugin-random)](https://pypi.org/project/cmem-plugin-random)
32
- [![poetry][poetry-shield]][poetry-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier]
27
+ [![uv][uv-shield]][uv-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier]
33
28
 
34
29
  [cmem-link]: https://documentation.eccenca.com
35
- [cmem-shield]: https://img.shields.io/endpoint?url=https://dev.documentation.eccenca.com/badge.json
36
- [poetry-link]: https://python-poetry.org/
37
- [poetry-shield]: https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json
30
+ [cmem-shield]: https://img.shields.io/endpoint?url=https://documentation.eccenca.com/latest/badge.json
31
+ [uv-link]: https://docs.astral.sh/uv/
32
+ [uv-shield]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json
38
33
  [ruff-link]: https://docs.astral.sh/ruff/
39
34
  [ruff-shield]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json&label=Code%20Style
40
35
  [mypy-link]: https://mypy-lang.org/
@@ -42,4 +37,3 @@ cmemc admin workspace python install cmem-plugin-random
42
37
  [copier]: https://copier.readthedocs.io/
43
38
  [copier-shield]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-purple.json
44
39
 
45
-
@@ -4,18 +4,18 @@ Select random samples and generate random values.
4
4
 
5
5
  [![eccenca Corporate Memory][cmem-shield]][cmem-link]
6
6
 
7
- This is a plugin for [eccenca](https://eccenca.com) [Corporate Memory](https://documentation.eccenca.com). You can install it with the [cmemc](https://eccenca.com/go/cmemc) command line client like this:
7
+ This is a plugin for [eccenca Corporate Memory](https://documentation.eccenca.com). You can install it with the [cmemc](https://eccenca.com/go/cmemc) command line client like this:
8
8
 
9
9
  ```
10
10
  cmemc admin workspace python install cmem-plugin-random
11
11
  ```
12
12
  [![pypi version](https://img.shields.io/pypi/v/cmem-plugin-random)](https://pypi.org/project/cmem-plugin-random) [![license](https://img.shields.io/pypi/l/cmem-plugin-random)](https://pypi.org/project/cmem-plugin-random)
13
- [![poetry][poetry-shield]][poetry-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier]
13
+ [![uv][uv-shield]][uv-link] [![ruff][ruff-shield]][ruff-link] [![mypy][mypy-shield]][mypy-link] [![copier][copier-shield]][copier]
14
14
 
15
15
  [cmem-link]: https://documentation.eccenca.com
16
- [cmem-shield]: https://img.shields.io/endpoint?url=https://dev.documentation.eccenca.com/badge.json
17
- [poetry-link]: https://python-poetry.org/
18
- [poetry-shield]: https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json
16
+ [cmem-shield]: https://img.shields.io/endpoint?url=https://documentation.eccenca.com/latest/badge.json
17
+ [uv-link]: https://docs.astral.sh/uv/
18
+ [uv-shield]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json
19
19
  [ruff-link]: https://docs.astral.sh/ruff/
20
20
  [ruff-shield]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json&label=Code%20Style
21
21
  [mypy-link]: https://mypy-lang.org/
@@ -83,7 +83,7 @@ already in a 1.3 GB CSV file.
83
83
  class GenerateEntities(WorkflowPlugin):
84
84
  """Workflow Task: Generate Entities"""
85
85
 
86
- def __init__( # noqa: PLR0913
86
+ def __init__( # noqa: PLR0913 PLR0917
87
87
  self,
88
88
  random_function: str,
89
89
  number_of_entities: int = 10,
@@ -0,0 +1,120 @@
1
+ [project]
2
+ name = "cmem-plugin-random"
3
+ description = "Select random samples and generate random values."
4
+ license = "Apache-2.0"
5
+ license-files = ["LICENSE"]
6
+ readme = "README-public.md"
7
+ authors = [
8
+ { name = "eccenca GmbH", email = "cmempy-developer@eccenca.com" },
9
+ ]
10
+ # if you need to change the python version here, change it also in .python-version
11
+ requires-python = ">=3.13,<4"
12
+ dynamic = ["version"]
13
+ classifiers = [
14
+ "Development Status :: 4 - Beta",
15
+ "Environment :: Plugins",
16
+ ]
17
+ keywords = [
18
+ "eccenca Corporate Memory", "plugin"
19
+ ]
20
+ dependencies = [
21
+ "cmem-plugin-base>=4.20.0,<5",
22
+ ]
23
+
24
+ [dependency-groups]
25
+ dev = [
26
+ "cmem-cmemc>=24.2.0",
27
+ "deptry>=0.25.1,<0.26",
28
+ "genbadge[coverage]>=1.1.3,<2",
29
+ "mypy>=2.3.0,<3",
30
+ "pytest>=9.1.1,<10",
31
+ "pytest-cov>=7.1.0,<8",
32
+ "pytest-dotenv>=0.5.2,<0.6",
33
+ "pytest-html>=4.2.0,<5",
34
+ "pytest-memray>=1.10.0,<2 ; platform_system != 'Windows'",
35
+ "ruff>=0.16.2,<0.17",
36
+ "trivy-py-ecc>=0.76.0.1,<0.77",
37
+ ]
38
+
39
+ [build-system]
40
+ requires = ["hatchling", "uv-dynamic-versioning"]
41
+ build-backend = "hatchling.build"
42
+
43
+ [tool.hatch.version]
44
+ source = "uv-dynamic-versioning"
45
+
46
+ [tool.hatch.build.targets.sdist]
47
+ # The sdist ships the package directory and nothing else. hatchling
48
+ # force-includes the readme, the license and .gitignore from the metadata, so
49
+ # they need no entry here.
50
+ only-include = ["cmem_plugin_random"]
51
+
52
+ [tool.uv-dynamic-versioning]
53
+ vcs = "git"
54
+ bump = true
55
+ dirty = true
56
+
57
+ [tool.uv]
58
+ required-version = ">=0.11.7"
59
+ # uv's cache is aggressive and does not know this project's version is dynamic.
60
+ # Without these keys a stale version is served after a new tag.
61
+ cache-keys = [{ file = "pyproject.toml" }, { git = { commit = true, tags = true } }]
62
+
63
+ [tool.mypy]
64
+ warn_return_any = true
65
+ ignore_missing_imports = true
66
+
67
+ # Deliberately empty. pytest walks upward until a file *loads* a configuration,
68
+ # and only the presence of this table makes pyproject.toml one - without it the
69
+ # walk carries on into the parent directories, where any pytest.ini, tox.ini or
70
+ # setup.cfg, even an empty one, would set this project's rootdir and could push
71
+ # its own addopts into this test suite. Do not tidy it away.
72
+ [tool.pytest.ini_options]
73
+
74
+ [tool.coverage.report]
75
+ exclude_also = [
76
+ "def __repr__",
77
+ "if self.debug:",
78
+ "if settings.DEBUG",
79
+ "raise AssertionError",
80
+ "raise NotImplementedError",
81
+ "if TYPE_CHECKING:",
82
+ "class .*\\bProtocol\\):",
83
+ "@(abc\\.)?abstractmethod",
84
+ ]
85
+
86
+ [tool.ruff]
87
+ line-length = 100
88
+ target-version = "py313"
89
+
90
+ [tool.ruff.format]
91
+ line-ending = "lf" # Use `\n` line endings for all files
92
+
93
+ [tool.ruff.lint]
94
+ select = ["ALL"]
95
+ ignore = [
96
+ "ANN204", # Missing return type annotation for special method `__init__`
97
+ "COM812", # missing-trailing-comma
98
+ "CPY001", # Missing copyright notice
99
+ "D107", # Missing docstring in __init__
100
+ "D203", # [*] 1 blank line required before class docstring
101
+ "D211", # No blank lines allowed before class docstring
102
+ "D213", # Multi-line docstring summary should start at the second line
103
+ "D400", # First line should end with a period
104
+ "D415", # First line should end with a period, question mark, or exclamation point
105
+ "EM", # Exception texts - https://docs.astral.sh/ruff/rules/#flake8-errmsg-em
106
+ "FBT", # The Boolean Trap - https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt
107
+ "FIX002", # Allow to add TODO notes in the code
108
+ "G004", # Logging statement uses f-string
109
+ "ISC001", # single-line-implicit-string-concatenation
110
+ "PD", # opinionated linting for pandas code
111
+ "TRY003", # Avoid specifying long messages outside the exception class
112
+ "TRY400", # PluginLogger has no exception(), so error() is the only option
113
+ ]
114
+
115
+ [tool.ruff.lint.per-file-ignores]
116
+ "tests/**/*.py" = [
117
+ "S101", # asserts allowed in tests
118
+ "ARG", # unused function args (pytest fixtures)
119
+ "PLR2004", # in an assertion the expected value is the literal
120
+ ]
@@ -1,99 +0,0 @@
1
- [tool.poetry]
2
- name = "cmem-plugin-random"
3
- version = "0.7.0"
4
- license = "Apache-2.0"
5
- description = "Select random samples and generate random values."
6
- authors = ["eccenca GmbH <cmempy-developer@eccenca.com>"]
7
- classifiers = [
8
- "Development Status :: 4 - Beta","Environment :: Plugins",
9
- ]
10
- readme = "README-public.md"
11
- keywords = [
12
- "eccenca Corporate Memory", "plugin"
13
- ]
14
-
15
-
16
- [tool.poetry.requires-plugins]
17
- poetry-plugin-export = "^1.10.0"
18
- poetry-plugin-shell = "^1.0.1"
19
- poetry-dynamic-versioning = "^1.10.0"
20
-
21
- [tool.poetry.dependencies]# if you need to change python version here, change it also in .python-version
22
- python = "^3.13"
23
-
24
- [tool.poetry.dependencies.cmem-plugin-base]
25
- version = "^4.19.0"
26
- allow-prereleases = false
27
-
28
- [tool.poetry.group.dev.dependencies.cmem-cmemc]
29
- version = ">=24.2.0"
30
-
31
- [tool.poetry.group.dev.dependencies]
32
- deptry = "^0.25.1"
33
- genbadge = {extras = ["coverage"], version = "^1.1.3"}
34
- mypy = "^2.1.0"
35
- pip = "^26"
36
- pytest = "^9.1.0"
37
- pytest-cov = "^7.1.0"
38
- pytest-dotenv = "^0.5.2"
39
- pytest-html = "^4.2.0"
40
- pytest-memray = { version = "^1.8.0", markers = "platform_system != 'Windows'" }
41
- ruff = "^0.15.17"
42
- trivy-py-ecc = "^0.71.2.1"
43
-
44
- [build-system]
45
- requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
46
- build-backend = "poetry_dynamic_versioning.backend"
47
-
48
- [tool.poetry-dynamic-versioning]
49
- enable = false
50
- vcs = "git"
51
- dirty = true
52
- bump = true
53
-
54
- [tool.mypy]
55
- warn_return_any = true
56
- ignore_missing_imports = true
57
-
58
- [tool.pytest.ini_options]
59
- addopts = ""
60
-
61
- [tool.coverage.report]
62
- exclude_also = [
63
- "def __repr__",
64
- "if self.debug:",
65
- "if settings.DEBUG",
66
- "raise AssertionError",
67
- "raise NotImplementedError",
68
- "if TYPE_CHECKING:",
69
- "class .*\\bProtocol\\):",
70
- "@(abc\\.)?abstractmethod",
71
- ]
72
-
73
- [tool.ruff]
74
- line-length = 100
75
- target-version = "py313"
76
-
77
- [tool.ruff.format]
78
- line-ending = "lf" # Use `\n` line endings for all files
79
-
80
- [tool.ruff.lint]
81
- select = ["ALL"]
82
- ignore = [
83
- "ANN204", # Missing return type annotation for special method `__init__`
84
- "COM812", # missing-trailing-comma
85
- "D107", # Missing docstring in __init__
86
- "D203", # [*] 1 blank line required before class docstring
87
- "D211", # No blank lines allowed before class docstring
88
- "D213", # Multi-line docstring summary should start at the second line
89
- "D400", # First line should end with a period
90
- "D415", # First line should end with a period, question mark, or exclamation point
91
- "EM", # Exception texts - https://docs.astral.sh/ruff/rules/#flake8-errmsg-em
92
- "FBT", # The Boolean Trap - https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt
93
- "FIX002", # Allow to add TODO notes in the code
94
- "G004", # Logging statement uses f-string
95
- "ISC001", # single-line-implicit-string-concatenation
96
- "PD", # opinionated linting for pandas code
97
- "S101", # use of assert detected
98
- "TRY003", # Avoid specifying long messages outside the exception class
99
- ]