Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

Use requirements.txt as source of truth for requirements in setup.py - #153

Merged
jrconlin merged 1 commit into
masterfrom
setup_py_read_requirements_file
Dec 8, 2020
Merged

jrconlin merged 1 commit into
masterfrom
setup_py_read_requirements_file

Conversation

@rfk

@rfk rfk commented Sep 8, 2020

Copy link
Copy Markdown
Contributor

Previously, this repo had two sets of requirements: one in requirements.txt
that we'd use when building the project via make, and one in setup.py
that we'd use if installing it as a depenency via pip.

This has been causing problems for self-hosters, so let's have setup.py
just read the list of requirements out of requirements.txt and avoid
needing to keep two lists of requirements in sync.

(The logic here is copied directly from the tokenserver setup.py,
and I've taken the opportunity to copy over some other Makefile tweaks
while I'm here).

Previously, this repo had two sets of requirements: one in `requirements.txt`
that we'd use when building the project via `make`, and one in `setup.py`
that we'd use if installing it as a depenency via pip.

This has been causing problems for self-hosters, so let's have `setup.py`
just read the list of requirements out of `requirements.txt` and avoid
needing to keep two lists of requirements in sync.

(The logic here is copied directly from the tokenserver `setup.py`,
and I've taken the opportunity to copy over some other `Makefile` tweaks
while I'm here).
@rfk
rfk force-pushed the setup_py_read_requirements_file branch from 51cacd7 to fa931eb Compare September 8, 2020 03:04
@sbraz

sbraz commented Sep 8, 2020

Copy link
Copy Markdown

@rfk I guess once this is merged, mozilla-services/syncserver@69b89fd can be reverted since server-syncstorage will pull it.

@jrconlin
jrconlin merged commit a7f71f2 into master Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants