Compare commits

..

No commits in common. "90f9873cadcba24947c9caa3a214c333040924c8" and "654a1234585d06e6b89c4e8e707fd01384eaf0b2" have entirely different histories.

4 changed files with 2 additions and 21 deletions

View file

@ -1,12 +0,0 @@
when:
- event: tag
steps:
- name: publish package
image: ghcr.io/astral-sh/uv:python3.11-alpine
commands:
- uv build
- uv publish --index forgejo
environment:
UV_PUBLISH_TOKEN:
from_secret: publish_token

View file

@ -1,6 +1,5 @@
when:
- event: push
- event: manual
steps:
- name: python tests

View file

@ -23,12 +23,6 @@ sentry-enabled = ["sentry_sdk>=0.19.5"]
[tool.setuptools.packages]
find = {include = ["transip_client"]}
[[tool.uv.index]]
name = "forgejo"
url = "https://forgejo.fudiggity.nl/sonny/transip-client/packages"
publish-url = "https://forgejo.fudiggity.nl/api/packages/sonny/pypi"
explicit = true
[project.scripts]
transip-update = "transip_client.cli:update"

View file

@ -1,9 +1,9 @@
import base64
import json
import logging
import time
from concurrent.futures import ThreadPoolExecutor, as_completed
from secrets import token_urlsafe
from typing import Generator
import requests
@ -28,7 +28,7 @@ def _get_token(private_key_path: str, login: str, api_url: str) -> str:
f"{api_url}/auth",
json={
"login": login,
"nonce": token_urlsafe(),
"nonce": str(int(time.time() * 1000)),
"read_only": False,
"expiration_time": "30 minutes",
"label": "Trans IP client",