Skip to content

Commit

Permalink
Merge pull request #46 from anancarv/fix-virtual-repo
Browse files Browse the repository at this point in the history
Fix virtual repo
  • Loading branch information
anancarv authored Mar 13, 2020
2 parents 06e1ae1 + 121b9ee commit 0c7f9aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyartifactory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
AccessTokenModel,
)

__version__ = "1.3.0"
__version__ = "1.3.1"
4 changes: 3 additions & 1 deletion pyartifactory/models/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ class LocalRepositoryResponse(LocalRepository):
class VirtualRepository(BaseRepositoryModel):
"""Models a virtual repository."""

rclass: RClassEnum = RClassEnum.virtual
repositories: Optional[List[str]] = None
artifactoryRequestsCanRetrieveRemoteArtifacts: bool = False
debianTrivialLayout: bool = False
Expand All @@ -194,7 +195,7 @@ class VirtualRepository(BaseRepositoryModel):
externalDependenciesRemoteRepo: Optional[str] = None


class VirtualRepositoryResponse(LocalRepository):
class VirtualRepositoryResponse(VirtualRepository):
"""Models a virtual repository response."""

dockerApiVersion: str = "V2"
Expand All @@ -218,6 +219,7 @@ class VirtualRepositoryResponse(LocalRepository):
class RemoteRepository(BaseRepositoryModel):
"""Models a remote Repository."""

rclass: RClassEnum = RClassEnum.remote
url: str
username: Optional[str] = None
password: Optional[SecretStr] = None
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "PyArtifactory"
version = "1.3.0"
version = "1.3.1"
description = "Typed interactions with the Jfrog Artifactory REST API"
authors = ["Ananias CARVALHO <[email protected]>", "Thomas GAUDIN <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 0c7f9aa

Please sign in to comment.