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:
"""Get API version"""
return "3.4.0"
return "3.5.0"

View file

@ -54,11 +54,7 @@ class ServiceManager(Service):
@staticmethod
def get_enabled_services() -> list[Service]:
return [
service
for service in get_services()
if service.is_enabled()
]
return [service for service in get_services() if service.is_enabled()]
# This one is not currently used by any code.
@staticmethod
@ -82,7 +78,7 @@ class ServiceManager(Service):
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!
# try:
# dns_records.append(
@ -333,11 +329,10 @@ def get_services(exclude_remote=False) -> List[Service]:
if module in service_ids:
continue
try:
# TODO: Replace the branch!
templated_services.append(
get_remote_service(
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),
)
)

View file

@ -256,7 +256,7 @@ class TemplatedService(Service):
raise FileNotFoundError("Suggested modules file not found")
with FlakeServiceManager() as service_manager:
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:
with WriteUserData() as user_data:

View file

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