chore: Prepare for release

This commit is contained in:
Inex Code 2024-12-24 18:17:56 +03:00
parent 7384413663
commit 7db93ff68a
No known key found for this signature in database
4 changed files with 6 additions and 11 deletions

View file

@ -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"

View file

@ -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),
) )
) )

View file

@ -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:

View file

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup( setup(
name="selfprivacy_api", name="selfprivacy_api",
version="3.4.0", version="3.5.0",
packages=find_packages(), packages=find_packages(),
scripts=[ scripts=[
"selfprivacy_api/app.py", "selfprivacy_api/app.py",