mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 04:36:39 +00:00
chore: Prepare for release
This commit is contained in:
parent
7384413663
commit
7db93ff68a
|
@ -27,4 +27,4 @@ async def get_token_header(
|
||||||
|
|
||||||
def get_api_version() -> str:
|
def get_api_version() -> str:
|
||||||
"""Get API version"""
|
"""Get API version"""
|
||||||
return "3.4.0"
|
return "3.5.0"
|
||||||
|
|
|
@ -54,11 +54,7 @@ class ServiceManager(Service):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_enabled_services() -> list[Service]:
|
def get_enabled_services() -> list[Service]:
|
||||||
return [
|
return [service for service in get_services() if service.is_enabled()]
|
||||||
service
|
|
||||||
for service in get_services()
|
|
||||||
if service.is_enabled()
|
|
||||||
]
|
|
||||||
|
|
||||||
# This one is not currently used by any code.
|
# This one is not currently used by any code.
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -82,7 +78,7 @@ class ServiceManager(Service):
|
||||||
|
|
||||||
dns_records: list[ServiceDnsRecord] = []
|
dns_records: list[ServiceDnsRecord] = []
|
||||||
|
|
||||||
# TODO: Reenable with 3.5.0 release when clients are ready.
|
# TODO: Reenable with 3.6.0 release when clients are ready.
|
||||||
# Do not forget about tests!
|
# Do not forget about tests!
|
||||||
# try:
|
# try:
|
||||||
# dns_records.append(
|
# dns_records.append(
|
||||||
|
@ -333,11 +329,10 @@ def get_services(exclude_remote=False) -> List[Service]:
|
||||||
if module in service_ids:
|
if module in service_ids:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
# TODO: Replace the branch!
|
|
||||||
templated_services.append(
|
templated_services.append(
|
||||||
get_remote_service(
|
get_remote_service(
|
||||||
module,
|
module,
|
||||||
f"git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=inex/experimental-templating&dir=sp-modules/{module}",
|
f"git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/{module}",
|
||||||
ttl_hash=get_ttl_hash(3600),
|
ttl_hash=get_ttl_hash(3600),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -256,7 +256,7 @@ class TemplatedService(Service):
|
||||||
raise FileNotFoundError("Suggested modules file not found")
|
raise FileNotFoundError("Suggested modules file not found")
|
||||||
with FlakeServiceManager() as service_manager:
|
with FlakeServiceManager() as service_manager:
|
||||||
service_manager.services[name] = (
|
service_manager.services[name] = (
|
||||||
f"git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=inex/experimental-templating&dir=sp-modules/{name}"
|
f"git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes&dir=sp-modules/{name}"
|
||||||
)
|
)
|
||||||
if "location" in self.options:
|
if "location" in self.options:
|
||||||
with WriteUserData() as user_data:
|
with WriteUserData() as user_data:
|
||||||
|
|
Loading…
Reference in a new issue