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

Sharing Requirements and conf.py Between Multiple Repos #7120

Closed
gbroques opened this issue May 23, 2020 · 1 comment
Closed

Sharing Requirements and conf.py Between Multiple Repos #7120

gbroques opened this issue May 23, 2020 · 1 comment

Comments

@gbroques
Copy link

gbroques commented May 23, 2020

Details

How would I share a Requirements file (i.e. requirements.txt) and Sphinx configuration file (i.e. conf.py) between multiple repositories, each with their own hosted Read the Docs website?

I'm planning on maintaining something on the order of 50 or 100 repositories for an enterprise level non-profit organization, and would like each repository to share the same docs requirements and parameterized Sphinx configuration for maintainability.

My plan was to have a parent repo that individual repository maintainers in the organization install as a dev-time dependency. In this repo, I'd have the requirements.txt for the docs, and parent conf.py file with the bulk of Sphinx configuration.

Options

Git Submodules

I see you support Git Submodules. This might be one approach that could work.

Host Parent Repo on PyPi

I could also host the parent repo as a dependency on PyPi. Then each child repo has this as a dependency in their requirements.txt and their conf.py can import and exec and imported common configuration (see this StackOverflow).

Any recommendations or thoughts on either option, or a different option?

Remote Requirements File

Also, it might be nice if you supported a remote URL to a requirements file.

If I could provide a link to the requirements.txt in this parent GitHub repository, then that would solve 1-half of my desire to share what's needed for the docs site.

Related Issues

Read the Docs Project URL

@gbroques gbroques changed the title Question: Sharing Requirements and conf.py Between Multiple Repos Sharing Requirements and conf.py Between Multiple Repos May 23, 2020
@stsewd
Copy link
Member

stsewd commented May 26, 2020

Also, it might be nice if you supported a remote URL to a requirements file.

We don't plan in supporting something like that.

Git submodules and importing the common configurations from the conf.py in the submodule should work.

@stsewd stsewd closed this as completed May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants