argmerge 0.0.1__tar.gz → 0.0.3__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 (58) hide show
  1. {argmerge-0.0.1 → argmerge-0.0.3}/.github/workflows/build.yml +1 -1
  2. argmerge-0.0.3/.github/workflows/publish-documentation.yml +29 -0
  3. {argmerge-0.0.1 → argmerge-0.0.3}/PKG-INFO +2 -14
  4. {argmerge-0.0.1 → argmerge-0.0.3}/README.md +1 -4
  5. {argmerge-0.0.1 → argmerge-0.0.3}/pyproject.toml +0 -11
  6. {argmerge-0.0.1 → argmerge-0.0.3}/src/argmerge/cli.py +2 -2
  7. argmerge-0.0.3/tests/decorator/__init__.py +0 -0
  8. {argmerge-0.0.1 → argmerge-0.0.3}/uv.lock +0 -1
  9. {argmerge-0.0.1 → argmerge-0.0.3}/.coveragerc +0 -0
  10. {argmerge-0.0.1 → argmerge-0.0.3}/.github/workflows/github-actions-demo.yml +0 -0
  11. /argmerge-0.0.1/src/argmerge/py.typed → /argmerge-0.0.3/.github/workflows/publish-to-test-pypi.yaml +0 -0
  12. {argmerge-0.0.1 → argmerge-0.0.3}/.gitignore +0 -0
  13. {argmerge-0.0.1 → argmerge-0.0.3}/LICENSE +0 -0
  14. {argmerge-0.0.1 → argmerge-0.0.3}/docs/examples.md +0 -0
  15. {argmerge-0.0.1 → argmerge-0.0.3}/docs/img/argmerge.svg +0 -0
  16. {argmerge-0.0.1 → argmerge-0.0.3}/docs/img/bracket-logo.svg +0 -0
  17. {argmerge-0.0.1 → argmerge-0.0.3}/docs/img/favicon-.ico +0 -0
  18. {argmerge-0.0.1 → argmerge-0.0.3}/docs/img/favicon.ico +0 -0
  19. {argmerge-0.0.1 → argmerge-0.0.3}/docs/img/initial-description1.svg +0 -0
  20. {argmerge-0.0.1 → argmerge-0.0.3}/docs/img/logo.svg +0 -0
  21. {argmerge-0.0.1 → argmerge-0.0.3}/docs/index.md +0 -0
  22. {argmerge-0.0.1 → argmerge-0.0.3}/docs/stylesheets/extra.css +0 -0
  23. {argmerge-0.0.1 → argmerge-0.0.3}/main.py +0 -0
  24. {argmerge-0.0.1 → argmerge-0.0.3}/mkdocs.yml +0 -0
  25. {argmerge-0.0.1 → argmerge-0.0.3}/src/argmerge/__init__.py +0 -0
  26. {argmerge-0.0.1 → argmerge-0.0.3}/src/argmerge/base.py +0 -0
  27. {argmerge-0.0.1 → argmerge-0.0.3}/src/argmerge/decorator.py +0 -0
  28. {argmerge-0.0.1 → argmerge-0.0.3}/src/argmerge/env.py +0 -0
  29. {argmerge-0.0.1 → argmerge-0.0.3}/src/argmerge/func.py +0 -0
  30. {argmerge-0.0.1 → argmerge-0.0.3}/src/argmerge/json.py +0 -0
  31. /argmerge-0.0.1/tests/base/__init__.py → /argmerge-0.0.3/src/argmerge/py.typed +0 -0
  32. {argmerge-0.0.1 → argmerge-0.0.3}/src/argmerge/trace.py +0 -0
  33. {argmerge-0.0.1 → argmerge-0.0.3}/src/argmerge/utils.py +0 -0
  34. {argmerge-0.0.1 → argmerge-0.0.3}/src/argmerge/yaml.py +0 -0
  35. {argmerge-0.0.1 → argmerge-0.0.3}/tests/__init__.py +0 -0
  36. {argmerge-0.0.1/tests/cli → argmerge-0.0.3/tests/base}/__init__.py +0 -0
  37. {argmerge-0.0.1 → argmerge-0.0.3}/tests/base/test_base.py +0 -0
  38. {argmerge-0.0.1/tests/decorator → argmerge-0.0.3/tests/cli}/__init__.py +0 -0
  39. {argmerge-0.0.1 → argmerge-0.0.3}/tests/cli/test_cli.py +0 -0
  40. {argmerge-0.0.1 → argmerge-0.0.3}/tests/decorator/test_decorator.py +0 -0
  41. {argmerge-0.0.1 → argmerge-0.0.3}/tests/env/__init__.py +0 -0
  42. {argmerge-0.0.1 → argmerge-0.0.3}/tests/env/test_env.py +0 -0
  43. {argmerge-0.0.1 → argmerge-0.0.3}/tests/func/__init__.py +0 -0
  44. {argmerge-0.0.1 → argmerge-0.0.3}/tests/func/test_func.py +0 -0
  45. {argmerge-0.0.1 → argmerge-0.0.3}/tests/json/__init__.py +0 -0
  46. {argmerge-0.0.1 → argmerge-0.0.3}/tests/json/bad_config.json +0 -0
  47. {argmerge-0.0.1 → argmerge-0.0.3}/tests/json/good_config.json +0 -0
  48. {argmerge-0.0.1 → argmerge-0.0.3}/tests/json/test_json.py +0 -0
  49. {argmerge-0.0.1 → argmerge-0.0.3}/tests/trace/__init__.py +0 -0
  50. {argmerge-0.0.1 → argmerge-0.0.3}/tests/trace/test_trace.py +0 -0
  51. {argmerge-0.0.1 → argmerge-0.0.3}/tests/utils.py +0 -0
  52. {argmerge-0.0.1 → argmerge-0.0.3}/tests/yaml/__init__.py +0 -0
  53. {argmerge-0.0.1 → argmerge-0.0.3}/tests/yaml/bad_config.yaml +0 -0
  54. {argmerge-0.0.1 → argmerge-0.0.3}/tests/yaml/good_config.yaml +0 -0
  55. {argmerge-0.0.1 → argmerge-0.0.3}/tests/yaml/test_yaml.py +0 -0
  56. {argmerge-0.0.1 → argmerge-0.0.3}/threshold.json +0 -0
  57. {argmerge-0.0.1 → argmerge-0.0.3}/threshold.yaml +0 -0
  58. {argmerge-0.0.1 → argmerge-0.0.3}/tox.ini +0 -0
@@ -3,7 +3,7 @@ name: build
3
3
  on:
4
4
  push:
5
5
  tags:
6
- - v*
6
+ - '*'
7
7
 
8
8
  concurrency:
9
9
  group: build-${{ github.head_ref }}
@@ -0,0 +1,29 @@
1
+ name: publish documentation
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ permissions:
7
+ contents: write
8
+ jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - name: Configure Git Credentials
14
+ run: |
15
+ git config user.name github-actions[bot]
16
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
17
+ - uses: actions/setup-python@v5
18
+ with:
19
+ python-version: 3.x
20
+ - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21
+ - uses: actions/cache@v4
22
+ with:
23
+ key: mkdocs-material-${{ env.cache_id }}
24
+ path: ~/.cache
25
+ restore-keys: |
26
+ mkdocs-material-
27
+ - run: |
28
+ pip install mkdocs-material mkdocs-autoapi mkdocstrings[python] mkdocs-terminal mkdocs-landing
29
+ mkdocs gh-deploy --force
@@ -1,18 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: argmerge
3
- Version: 0.0.1
3
+ Version: 0.0.3
4
4
  Summary: Add your description here
5
5
  Author-email: duck-bongos <billmannd@gmail.com>
6
6
  License-File: LICENSE
7
- Classifier: Development Status :: 3 - Alpha
8
- Classifier: Intended Audience :: Developers
9
- Classifier: Programming Language :: Python
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3 :: Only
12
- Classifier: Programming Language :: Python :: 3.10
13
- Classifier: Programming Language :: Python :: 3.11
14
- Classifier: Programming Language :: Python :: 3.12
15
- Classifier: Programming Language :: Python :: 3.13
16
7
  Requires-Python: >=3.10
17
8
  Requires-Dist: loguru>=0.7.3
18
9
  Requires-Dist: mkdocs-material>=9.6.21
@@ -35,10 +26,7 @@ _Customize how program defaults and overrides from config files, environment var
35
26
  CI/CD |
36
27
  Package | [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/argmerge.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/hatch-vcs/) |
37
28
  Meta|[![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)]
38
-
39
-
40
- ![](https://raw.githubusercontent.com/duck-bongos/py-argmerge/ee26d70afb01489a43741ff9f88347b3ada3c25a/docs/img/argmerge.svg)
41
- ![](/img/argmerge.svg)
29
+ ![](./img/argmerge.svg)
42
30
 
43
31
  We retrieve each possible source of program arguments as Python dictionaries and then perform dictionary updates between each source before passing the final dictionary to the wrapped function. Effectively:
44
32
  ```py
@@ -7,10 +7,7 @@ _Customize how program defaults and overrides from config files, environment var
7
7
  CI/CD |
8
8
  Package | [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/argmerge.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/hatch-vcs/) |
9
9
  Meta|[![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)]
10
-
11
-
12
- ![](https://raw.githubusercontent.com/duck-bongos/py-argmerge/ee26d70afb01489a43741ff9f88347b3ada3c25a/docs/img/argmerge.svg)
13
- ![](/img/argmerge.svg)
10
+ ![](./img/argmerge.svg)
14
11
 
15
12
  We retrieve each possible source of program arguments as Python dictionaries and then perform dictionary updates between each source before passing the final dictionary to the wrapped function. Effectively:
16
13
  ```py
@@ -6,17 +6,6 @@ authors = [
6
6
  { name = "duck-bongos", email = "billmannd@gmail.com" }
7
7
  ]
8
8
  requires-python = ">=3.10"
9
- classifiers = [
10
- "Development Status :: 3 - Alpha",
11
- "Intended Audience :: Developers",
12
- "Programming Language :: Python",
13
- "Programming Language :: Python :: 3",
14
- "Programming Language :: Python :: 3 :: Only",
15
- "Programming Language :: Python :: 3.10",
16
- "Programming Language :: Python :: 3.11",
17
- "Programming Language :: Python :: 3.12",
18
- "Programming Language :: Python :: 3.13",
19
- ]
20
9
  dependencies = [
21
10
  "loguru>=0.7.3",
22
11
  "mkdocs-material>=9.6.21",
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
  ```py
5
- CLI_PATTERN: re.Pattern = re.compile(r"--([A-Za-z_-]+)=([0-9A-Za-z_-\.]+)")
5
+ CLI_PATTERN: re.Pattern = re.compile(r"--([A-Za-z_-]+)=([0-9A-Za-z._-]+)")
6
6
  ```
7
7
 
8
8
  - matches `'--arg=value'`
@@ -21,7 +21,7 @@ __all__ = ["CLI_PATTERN", "parse_cli"]
21
21
 
22
22
  # matches '--arg=value'
23
23
  # does not match '--arg value'
24
- CLI_PATTERN: re.Pattern = re.compile(r"--([A-Za-z_-]+)=([0-9A-Za-z_-\.]+)")
24
+ CLI_PATTERN: re.Pattern = re.compile(r"--([A-Za-z_-]+)=([0-9A-Za-z._-]+)")
25
25
 
26
26
 
27
27
  class CLIParser(SourceParser):
File without changes
@@ -26,7 +26,6 @@ wheels = [
26
26
 
27
27
  [[package]]
28
28
  name = "argmerge"
29
- version = "0.1.0"
30
29
  source = { editable = "." }
31
30
  dependencies = [
32
31
  { name = "loguru" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes