Skip to content
Snippets Groups Projects
Commit 43b2910f authored by Nathaniel Manista's avatar Nathaniel Manista
Browse files

Merge pull request #3315 from soltanmm/release

Fix Python docgen.
parents 83631772 38fc0bb3
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ class SphinxDocumentation(setuptools.Command): ...@@ -64,7 +64,7 @@ class SphinxDocumentation(setuptools.Command):
import sphinx.apidoc import sphinx.apidoc
metadata = self.distribution.metadata metadata = self.distribution.metadata
src_dir = os.path.join( src_dir = os.path.join(
os.getcwd(), self.distribution.package_dir['grpc']) os.getcwd(), self.distribution.package_dir[''], 'grpc')
sys.path.append(src_dir) sys.path.append(src_dir)
sphinx.apidoc.main([ sphinx.apidoc.main([
'', '--force', '--full', '-H', metadata.name, '-A', metadata.author, '', '--force', '--full', '-H', metadata.name, '-A', metadata.author,
......
...@@ -81,7 +81,7 @@ if args.submit: ...@@ -81,7 +81,7 @@ if args.submit:
assert args.doc_branch assert args.doc_branch
github_user = args.gh_user github_user = args.gh_user
github_repository_owner = ( github_repository_owner = (
args.gh_repo_owner if args.gh_repo_owner else gh_user) args.gh_repo_owner if args.gh_repo_owner else args.gh_user)
# Create a temporary directory out of tree, checkout gh-pages from the # Create a temporary directory out of tree, checkout gh-pages from the
# specified repository, edit it, and push it. It's up to the user to then go # specified repository, edit it, and push it. It's up to the user to then go
# onto GitHub and make a PR against grpc/grpc:gh-pages. # onto GitHub and make a PR against grpc/grpc:gh-pages.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment