Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Info #6

Merged
merged 11 commits into from
Feb 1, 2019
4 changes: 1 addition & 3 deletions hooks/github-updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# -*- coding: utf-8 -*-

from conans import tools
from conans.client import conan_api
import os
import requests
import re
Expand All @@ -17,8 +16,7 @@ def pre_export(output, conanfile, conanfile_path, reference, **kwargs):
output.info('no GITHUB_TOKEN environment variable is set, skipping GitHub updater')
return

conan_instance, _, _ = conan_api.Conan.factory()
recipe_info = conan_instance.inspect(path=conanfile_path, attributes=None)
recipe_info = conanfile.inspect(path=conanfile_path, attributes=None)
SSE4 marked this conversation as resolved.
Show resolved Hide resolved
url = recipe_info['url']
if not url:
output.info('no url attribute was specified withing recipe, skipping GitHub updater')
Expand Down