Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pyartifactory/models/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class SimpleRepository(BaseModel):
description: Optional[str] = None
url: str
packageType: str
environments: List[str] = ['DEV']
Copy link
Owner

@anancarv anancarv Nov 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add the environment here. The Get repositories response does not contain environment (See Artifactory API)



class BaseRepositoryModel(BaseModel):
Expand All @@ -150,6 +151,7 @@ class BaseRepositoryModel(BaseModel):
projectKey: Optional[str] = None
rclass: RClassEnum
packageType: PackageTypeEnum = PackageTypeEnum.generic
environments: List[str] = ['DEV']
description: Optional[str] = None
notes: Optional[str] = None
includesPattern: str = "**/*"
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
Comment on lines +24 to +25
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to add support to Python 3.13, you will need to add it to the test matrix here

"Topic :: Software Development :: Libraries",
"Topic :: System :: Filesystems",
"Operating System :: OS Independent"
Expand Down