splent-feature-github 0.3.0__tar.gz → 0.4.0__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 (27) hide show
  1. {splent_feature_github-0.3.0/src/splent_feature_github.egg-info → splent_feature_github-0.4.0}/PKG-INFO +1 -1
  2. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/pyproject.toml +13 -1
  3. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0/src/splent_feature_github.egg-info}/PKG-INFO +1 -1
  4. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/config.py +6 -0
  5. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/COPYING +0 -0
  6. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/COPYING.LESSER +0 -0
  7. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/MANIFEST.in +0 -0
  8. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/README.md +0 -0
  9. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/setup.cfg +0 -0
  10. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_feature_github.egg-info/SOURCES.txt +0 -0
  11. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_feature_github.egg-info/dependency_links.txt +0 -0
  12. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_feature_github.egg-info/top_level.txt +0 -0
  13. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/__init__.py +0 -0
  14. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/assets/css/github.css +0 -0
  15. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/hooks.py +0 -0
  16. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/migrations/alembic.ini +0 -0
  17. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/migrations/env.py +0 -0
  18. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/migrations/script.py.mako +0 -0
  19. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/migrations/versions/7ace6050fb3f_splent_feature_github.py +0 -0
  20. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/migrations/versions/github0002_into_ext_identity.py +0 -0
  21. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/models.py +0 -0
  22. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/routes.py +0 -0
  23. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/services.py +0 -0
  24. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/templates/hooks/github_login_button.html +0 -0
  25. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/templates/hooks/github_profile_row.html +0 -0
  26. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/translations/es/LC_MESSAGES/messages.mo +0 -0
  27. {splent_feature_github-0.3.0 → splent_feature_github-0.4.0}/src/splent_io/splent_feature_github/translations/es/LC_MESSAGES/messages.po +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: splent_feature_github
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  License-Expression: LGPL-3.0-or-later
5
5
  Requires-Python: >=3.13
6
6
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "splent_feature_github"
7
- version = "0.3.0"
7
+ version = "0.4.0"
8
8
  readme = "README.md"
9
9
  requires-python = ">=3.13"
10
10
  license = "LGPL-3.0-or-later"
@@ -85,3 +85,15 @@ GITHUB_CLIENT_SECRET = ""
85
85
  # person's addresses it verified; without it every new account asks for an
86
86
  # address, which then has to be confirmed by mail.
87
87
  GITHUB_SCOPE = "user:email"
88
+
89
+ # ── Parameters ────────────────────────────────────────────────────────────────
90
+ # The type of each key above, which product:validate checks a product's
91
+ # value against and the framework (1.22.0 and later) resolves at boot:
92
+ # default < product < environment. An older framework ignores it. deploy:
93
+ # the deployment's .env decides it; derivation: the product decides it, and
94
+ # an environment that changes it is drift. A secret never goes in a
95
+ # committed file: product:validate refuses it in the product's pyproject.
96
+ [tool.splent.config_schema]
97
+ GITHUB_CLIENT_ID = { type = "str", bind = "deploy", help = "The client ID of the OAuth app registered at https://github.com/settings/developers." }
98
+ GITHUB_CLIENT_SECRET = { type = "secret", help = "The client secret of that OAuth app." }
99
+ GITHUB_SCOPE = { type = "str", bind = "derivation", help = "What the sign-in asks GitHub for." }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: splent_feature_github
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  License-Expression: LGPL-3.0-or-later
5
5
  Requires-Python: >=3.13
6
6
  Description-Content-Type: text/markdown
@@ -4,6 +4,12 @@ github feature configuration.
4
4
  The OAuth app registered at https://github.com/settings/developers.
5
5
  Without both values GitHub sign-in is off: the app logs a warning at start,
6
6
  and whoever tries is told it is not available.
7
+
8
+ [tool.splent.config_schema] in pyproject.toml declares each one's type, the
9
+ secret among them. A framework that reads it (1.22.0 and later) resolves
10
+ them itself right after inject_config, and the product's value reaches
11
+ app.config as written, so services.py reads the scope with its default. An
12
+ older one leaves them to this module.
7
13
  """
8
14
 
9
15
  import os