roboherd 0.1.10__tar.gz → 0.1.11__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.

Potentially problematic release.


This version of roboherd might be problematic. Click here for more details.

Files changed (64) hide show
  1. {roboherd-0.1.10 → roboherd-0.1.11}/.woodpecker/publish_docker.yml +2 -2
  2. {roboherd-0.1.10 → roboherd-0.1.11}/CHANGES.md +5 -0
  3. {roboherd-0.1.10 → roboherd-0.1.11}/PKG-INFO +1 -1
  4. {roboherd-0.1.10 → roboherd-0.1.11}/pyproject.toml +6 -1
  5. {roboherd-0.1.10 → roboherd-0.1.11}/resources/docker/Dockerfile +2 -1
  6. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/__main__.py +18 -2
  7. roboherd-0.1.11/roboherd/version.py +1 -0
  8. {roboherd-0.1.10 → roboherd-0.1.11}/uv.lock +1 -1
  9. {roboherd-0.1.10 → roboherd-0.1.11}/.gitignore +0 -0
  10. {roboherd-0.1.10 → roboherd-0.1.11}/.woodpecker/create_release.yml +0 -0
  11. {roboherd-0.1.10 → roboherd-0.1.11}/.woodpecker/publish_pypi.yml +0 -0
  12. {roboherd-0.1.10 → roboherd-0.1.11}/.woodpecker/test.yml +0 -0
  13. {roboherd-0.1.10 → roboherd-0.1.11}/.woodpecker/website.yml +0 -0
  14. {roboherd-0.1.10 → roboherd-0.1.11}/README.md +0 -0
  15. {roboherd-0.1.10 → roboherd-0.1.11}/docs/annotations.md +0 -0
  16. {roboherd-0.1.10 → roboherd-0.1.11}/docs/assets/bull-horns.png +0 -0
  17. {roboherd-0.1.10 → roboherd-0.1.11}/docs/assets/mastodon.png +0 -0
  18. {roboherd-0.1.10 → roboherd-0.1.11}/docs/cli.md +0 -0
  19. {roboherd-0.1.10 → roboherd-0.1.11}/docs/cow.md +0 -0
  20. {roboherd-0.1.10 → roboherd-0.1.11}/docs/herd.md +0 -0
  21. {roboherd-0.1.10 → roboherd-0.1.11}/docs/index.md +0 -0
  22. {roboherd-0.1.10 → roboherd-0.1.11}/docs/main.md +0 -0
  23. {roboherd-0.1.10 → roboherd-0.1.11}/docs/util.md +0 -0
  24. {roboherd-0.1.10 → roboherd-0.1.11}/mkdocs.yml +0 -0
  25. {roboherd-0.1.10 → roboherd-0.1.11}/resources/docker/build.sh +0 -0
  26. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/__init__.py +0 -0
  27. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/annotations/__init__.py +0 -0
  28. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/annotations/bovine.py +0 -0
  29. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/annotations/common.py +0 -0
  30. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/cow/__init__.py +0 -0
  31. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/cow/const.py +0 -0
  32. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/cow/handlers.py +0 -0
  33. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/cow/profile.py +0 -0
  34. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/cow/test_handlers.py +0 -0
  35. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/cow/test_init.py +0 -0
  36. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/cow/test_profile.py +0 -0
  37. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/cow/test_util.py +0 -0
  38. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/cow/types.py +0 -0
  39. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/cow/util.py +0 -0
  40. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/examples/__init__.py +0 -0
  41. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/examples/dev_null.py +0 -0
  42. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/examples/json_echo.py +0 -0
  43. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/examples/meta.py +0 -0
  44. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/examples/moocow.py +0 -0
  45. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/examples/number.py +0 -0
  46. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/examples/rooster.py +0 -0
  47. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/examples/scarecrow.py +0 -0
  48. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/__init__.py +0 -0
  49. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/builder.py +0 -0
  50. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/manager/__init__.py +0 -0
  51. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/manager/config.py +0 -0
  52. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/manager/load.py +0 -0
  53. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/manager/test_config.py +0 -0
  54. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/manager/test_load.py +0 -0
  55. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/manager/test_manager.py +0 -0
  56. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/processor.py +0 -0
  57. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/scheduler.py +0 -0
  58. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/test_herd.py +0 -0
  59. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/test_scheduler.py +0 -0
  60. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/herd/types.py +0 -0
  61. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/register.py +0 -0
  62. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/test_validators.py +0 -0
  63. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/util.py +0 -0
  64. {roboherd-0.1.10 → roboherd-0.1.11}/roboherd/validators.py +0 -0
@@ -23,7 +23,7 @@ steps:
23
23
  - ${CI_COMMIT_TAG}
24
24
  - ${CI_COMMIT_TAG}-python${PYTHON_VERSION}
25
25
  build_args:
26
- - tag=${CI_COMMIT_TAG}
27
- - python_tag=${PYTHON_VERSION}
26
+ tag: "${CI_COMMIT_TAG}"
27
+ python_tag: "${PYTHON_VERSION}"
28
28
  when:
29
29
  - matrix: { PYTHON_VERSION: 3.13 }
@@ -1,5 +1,10 @@
1
1
  # Changes to roboherd
2
2
 
3
+ ## 0.1.11
4
+
5
+ - Add `--version` flag [roboherd#50](https://codeberg.org/bovine/roboherd/issues/50)
6
+ - Repair passing build_args to docker buildx [roboherd#51](https://codeberg.org/bovine/roboherd/issues/51)
7
+
3
8
  ## 0.1.10
4
9
 
5
10
  - Add check command [roboherd#48](https://codeberg.org/bovine/roboherd/issues/48)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: roboherd
3
- Version: 0.1.10
3
+ Version: 0.1.11
4
4
  Summary: A Fediverse bot framework
5
5
  Project-URL: Documentation, https://bovine.codeberg.page/roboherd/
6
6
  Project-URL: Repository, https://codeberg.org/bovine/roboherd
@@ -1,6 +1,5 @@
1
1
  [project]
2
2
  name = "roboherd"
3
- version = "0.1.10"
4
3
  description = "A Fediverse bot framework"
5
4
  readme = "README.md"
6
5
  requires-python = ">=3.11"
@@ -16,6 +15,8 @@ dependencies = [
16
15
  "watchfiles>=1.0.4",
17
16
  ]
18
17
 
18
+ dynamic = ["version"]
19
+
19
20
  [project.urls]
20
21
  Documentation = "https://bovine.codeberg.page/roboherd/"
21
22
  Repository = "https://codeberg.org/bovine/roboherd"
@@ -25,6 +26,10 @@ requires = ["hatchling"]
25
26
  build-backend = "hatchling.build"
26
27
 
27
28
 
29
+ [tool.hatch.version]
30
+ path = "roboherd/version.py"
31
+
32
+
28
33
  [project.scripts]
29
34
  roboherd = "roboherd.__main__:main"
30
35
 
@@ -1,4 +1,5 @@
1
- FROM helgekr/bovine:0.5.18-python3.13
1
+ ARG python_version=3.13
2
+ FROM helgekr/bovine:0.5.18-python${python_version}
2
3
 
3
4
  ARG tag=0.1.6
4
5
  RUN pip install roboherd[bovine]==${tag}
@@ -11,12 +11,13 @@ from roboherd.herd.manager import HerdManager
11
11
  from roboherd.util import create_connection
12
12
  from roboherd.register import register as run_register
13
13
  from roboherd.validators import validators
14
+ from roboherd.version import __version__
14
15
 
15
16
  logging.basicConfig(level=logging.INFO)
16
17
  logging.captureWarnings(True)
17
18
 
18
19
 
19
- @click.group()
20
+ @click.group(invoke_without_command=True)
20
21
  @click.option(
21
22
  "--connection_string",
22
23
  default=None,
@@ -28,9 +29,22 @@ logging.captureWarnings(True)
28
29
  help="Base url to create cows with",
29
30
  )
30
31
  @click.option("--config_file", default="roboherd.toml", help="Configuration file")
32
+ @click.option(
33
+ "--version", is_flag=True, default=False, help="display version then exit"
34
+ )
31
35
  @click.pass_context
32
- def main(ctx: click.Context, connection_string: str, base_url: str, config_file: str):
36
+ def main(
37
+ ctx: click.Context,
38
+ connection_string: str,
39
+ base_url: str,
40
+ config_file: str,
41
+ version: bool,
42
+ ):
33
43
  """Configuration is usually loaded from the config_file. These options can be overwritten by passing as a command line argument."""
44
+ if version:
45
+ print(f"roboherd version: {__version__}")
46
+ exit(0)
47
+
34
48
  settings = dynaconf.Dynaconf(
35
49
  settings_files=[config_file],
36
50
  envvar_prefix="ROBOHERD",
@@ -51,6 +65,8 @@ def main(ctx: click.Context, connection_string: str, base_url: str, config_file:
51
65
  else:
52
66
  ctx.obj["base_url"] = settings.base_url # type: ignore
53
67
 
68
+ print("Please specify a command")
69
+
54
70
 
55
71
  @main.command()
56
72
  @click.option("--fail", is_flag=True, default=False, help="Fail if actors do not exist")
@@ -0,0 +1 @@
1
+ __version__ = "0.1.11"
@@ -1557,7 +1557,7 @@ wheels = [
1557
1557
 
1558
1558
  [[package]]
1559
1559
  name = "roboherd"
1560
- version = "0.1.9"
1560
+ version = "0.1.10"
1561
1561
  source = { editable = "." }
1562
1562
  dependencies = [
1563
1563
  { name = "aiohttp" },
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