-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from bioimage-io/zenodo_backup
Add backup to Zenodo
- Loading branch information
Showing
27 changed files
with
1,122 additions
and
685 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
from typing import Literal, Optional | ||
|
||
from loguru import logger | ||
from pydantic import SecretStr | ||
from pydantic_settings import BaseSettings, SettingsConfigDict | ||
|
||
|
||
class Settings(BaseSettings, extra="ignore"): | ||
"""environment variables for bioimageio.spec""" | ||
|
||
model_config = SettingsConfigDict( | ||
case_sensitive=False, | ||
env_file=".env", | ||
env_file_encoding="utf-8", | ||
) | ||
|
||
github_output: Optional[str] = None | ||
reviewers: str = ( | ||
"https://raw.githubusercontent.com/bioimage-io/collection/main/reviewers.json" | ||
) | ||
s3_bucket: str = "public-datasets" | ||
s3_folder: str = "sandbox.bioimage.io" | ||
s3_host: str = "uk1s3.embassy.ebi.ac.uk" | ||
s3_pytest_folder: str = "testing.bioimage.io/user_pytest" | ||
s3_sandbox_folder: str = "sandbox.bioimage.io" | ||
s3_test_bucket: str = "public-datasets" | ||
s3_test_folder: str = "testing.bioimage.io/user_sandbox" | ||
test_package_id: str = "frank-water-buffalo" | ||
test_package_url: str = ( | ||
"https://uk1s3.embassy.ebi.ac.uk/public-datasets/examples.bioimage.io/frank-water-buffalo_v1.zip" | ||
) | ||
zenodo_test_url: Literal["https://sandbox.zenodo.org"] = ( | ||
"https://sandbox.zenodo.org" | ||
) | ||
zenodo_url: Literal["https://sandbox.zenodo.org", "https://zenodo.org"] = ( | ||
"https://sandbox.zenodo.org" | ||
) | ||
|
||
# secrets | ||
mail_password: SecretStr = SecretStr("") | ||
s3_access_key_id: SecretStr = SecretStr("") | ||
s3_secret_access_key: SecretStr = SecretStr("") | ||
zenodo_api_access_token: SecretStr = SecretStr("") | ||
zenodo_test_api_access_token: SecretStr = SecretStr("") | ||
github_pat: SecretStr = SecretStr("") | ||
|
||
|
||
settings = Settings() | ||
logger.info("settings: {}", settings) |
Oops, something went wrong.