Closed em2er closed 3 years ago
Hi @em2er , you're absolutely right. It seems that conan
is missing from the repositories enum within in the code. I'll fix it ASAP. Thanks
Hi @anancarv , thx for quick response! Here are some packages that seems to be missed too in pyartifactory.models.repository.PackageTypeEnum (based on Artifactory Pro 7.10):
I added alpine, gitlfs & vagrant repositories to PR. However, conda
is not listed in the values accepted by the artifactory API: https://www.jfrog.com/confluence/display/JFROG/Repository+Configuration+JSON
However,
conda
is not listed in the values accepted by the artifactory API: https://www.jfrog.com/confluence/display/JFROG/Repository+Configuration+JSON
It's strange, because here is the json response for Repository Configuration request
curl -u *** -P -X https://mycompany.com/artifactory/api/repositories/conda-remote
{
"key" : "conda-remote",
"packageType" : "conda",
"description" : "",
"notes" : "",
"includesPattern" : "**/*",
"excludesPattern" : "",
"repoLayoutRef" : "simple-default",
"enableComposerSupport" : false,
"enableNuGetSupport" : false,
"enableGemsSupport" : false,
"enableNpmSupport" : false,
"enableBowerSupport" : false,
"enableCocoaPodsSupport" : false,
"enableConanSupport" : false,
"enableDebianSupport" : false,
"debianTrivialLayout" : false,
"enablePypiSupport" : false,
"enablePuppetSupport" : false,
"enableDockerSupport" : false,
"dockerApiVersion" : "V2",
"blockPushingSchema1" : true,
"forceNugetAuthentication" : false,
"enableVagrantSupport" : false,
"enableGitLfsSupport" : false,
"enableDistRepoSupport" : false,
"url" : "https://repo.anaconda.com/pkgs/main",
"username" : "",
"password" : "",
"proxy" : "***",
"handleReleases" : true,
"handleSnapshots" : true,
"suppressPomConsistencyChecks" : true,
"remoteRepoChecksumPolicyType" : "generate-if-absent",
"hardFail" : false,
"offline" : false,
"blackedOut" : false,
"storeArtifactsLocally" : true,
"socketTimeoutMillis" : 15000,
"localAddress" : "",
"retrievalCachePeriodSecs" : 7200,
"assumedOfflinePeriodSecs" : 300,
"missedRetrievalCachePeriodSecs" : 1800,
"unusedArtifactsCleanupPeriodHours" : 0,
"fetchJarsEagerly" : false,
"fetchSourcesEagerly" : false,
"shareConfiguration" : false,
"synchronizeProperties" : false,
"maxUniqueSnapshots" : 0,
"maxUniqueTags" : 0,
"propertySets" : [ "artifactory" ],
"archiveBrowsingEnabled" : false,
"listRemoteFolderItems" : true,
"rejectInvalidJars" : false,
"allowAnyHostAuth" : false,
"enableCookieManagement" : false,
"enableTokenAuthentication" : false,
"propagateQueryParams" : false,
"blockMismatchingMimeTypes" : true,
"mismatchingMimeTypesOverrideList" : "",
"bypassHeadRequests" : false,
"contentSynchronisation" : {
"enabled" : false,
"statistics" : {
"enabled" : false
},
"properties" : {
"enabled" : false
},
"source" : {
"originAbsenceDetection" : false
}
},
"externalDependenciesEnabled" : false,
"xrayIndex" : false,
"downloadRedirect" : false,
"cdnRedirect" : false,
"enabledChefSupport" : false,
"rclass" : "remote"
I am pretty sure that no plugin was installed because I am the guy who installed that Artifactory Pro instance)
Ok, they maybe forgot to add it on the documentation. We'll try to create a conda
repository through the API and see if it works even if it's not documented.
Hi @em2er , the PR has been merged. You can see the changes in the new release of pyartifactory: 1.8.3
Hi @em2er , the PR has been merged. You can see the changes in the new release of pyartifactory:
1.8.3
Hi @anancarv , great, thank you! I've just checked repo listing and it works!
Describe the bug Got "pydantic.error_wrappers.ValidationError" when called arti.repositories.get_repo(key) for Conan repository
To Reproduce
Expected behavior No error occurred
Environment:
Additional context print(r) outputs