-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from openedx/usamasadiq/bom-2133-requirement-…
…files-structure fix: standardise requirement files structure in cookiecutter templates
- Loading branch information
Showing
23 changed files
with
179 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
cookiecutter-django-app/{{cookiecutter.repo_name}}/requirements/ci.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Requirements for running tests in CI | ||
|
||
-c constraints.txt | ||
|
||
codecov # Code coverage reporting | ||
tox # Virtualenv management for tests | ||
tox-battery # Makes tox aware of requirements file changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
cookiecutter-django-app/{{cookiecutter.repo_name}}/requirements/doc.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Requirements for documentation validation | ||
|
||
-c constraints.txt | ||
|
||
-r test.txt # Core and testing dependencies for this package | ||
|
||
doc8 # reStructuredText style checker | ||
twine # Validates README.rst for usage on PyPI | ||
build # Needed to build the wheel for twine README check | ||
Sphinx # Documentation builder |
5 changes: 5 additions & 0 deletions
5
cookiecutter-django-app/{{cookiecutter.repo_name}}/requirements/pip-tools.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Just the dependencies to run pip-tools, mainly for the "upgrade" make target | ||
|
||
-c constraints.txt | ||
|
||
pip-tools # Contains pip-compile, used to generate pip requirements files |
6 changes: 6 additions & 0 deletions
6
cookiecutter-django-app/{{cookiecutter.repo_name}}/requirements/pip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Core dependencies for installing other packages | ||
-c constraints.txt | ||
|
||
pip | ||
setuptools | ||
wheel |
10 changes: 10 additions & 0 deletions
10
cookiecutter-django-app/{{cookiecutter.repo_name}}/requirements/quality.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Requirements for code quality checks | ||
|
||
-c constraints.txt | ||
|
||
-r test.txt # Core and testing dependencies for this package | ||
|
||
edx-lint # edX pylint rules and plugins | ||
isort # to standardize order of imports | ||
pycodestyle # PEP 8 compliance validation | ||
pydocstyle # PEP 257 compliance validation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
cookiecutter-django-ida/{{cookiecutter.repo_name}}/requirements/ci.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Requirements for running tests in CI | ||
|
||
-c constraints.txt | ||
|
||
codecov # Code coverage reporting | ||
tox # Virtualenv management for tests | ||
tox-battery # Makes tox aware of requirements file changes |
10 changes: 10 additions & 0 deletions
10
cookiecutter-django-ida/{{cookiecutter.repo_name}}/requirements/doc.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Requirements for documentation validation | ||
|
||
-c constraints.txt | ||
|
||
-r test.txt # Core and testing dependencies for this package | ||
|
||
doc8 # reStructuredText style checker | ||
twine # Validates README.rst for usage on PyPI | ||
build # Needed to build the wheel for twine README check | ||
Sphinx # Documentation builder |
5 changes: 5 additions & 0 deletions
5
cookiecutter-django-ida/{{cookiecutter.repo_name}}/requirements/pip-tools.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Just the dependencies to run pip-tools, mainly for the "upgrade" make target | ||
|
||
-c constraints.txt | ||
|
||
pip-tools # Contains pip-compile, used to generate pip requirements files |
6 changes: 6 additions & 0 deletions
6
cookiecutter-django-ida/{{cookiecutter.repo_name}}/requirements/pip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Core dependencies for installing other packages | ||
-c constraints.txt | ||
|
||
pip | ||
setuptools | ||
wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,3 @@ edx-i18n-tools | |
Mako | ||
XBlock | ||
xblock-utils | ||
|
7 changes: 7 additions & 0 deletions
7
cookiecutter-xblock/{{cookiecutter.repo_name}}/requirements/ci.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Requirements for running tests in CI | ||
|
||
-c constraints.txt | ||
|
||
codecov # Code coverage reporting | ||
tox # Virtualenv management for tests | ||
tox-battery # Makes tox aware of requirements file changes |
12 changes: 12 additions & 0 deletions
12
cookiecutter-xblock/{{cookiecutter.repo_name}}/requirements/constraints.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Version constraints for pip-installation. | ||
# | ||
# This file doesn't install any packages. It specifies version constraints | ||
# that will be applied if a package is needed. | ||
# | ||
# When pinning something here, please provide an explanation of why. Ideally, | ||
# link to other information that will help people in the future to remove the | ||
# pin when possible. Writing an issue against the offending project and | ||
# linking to it here is good. | ||
|
||
# Common constraints for edx repos | ||
-c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt |
9 changes: 9 additions & 0 deletions
9
cookiecutter-xblock/{{cookiecutter.repo_name}}/requirements/dev.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Additional requirements for development of this application | ||
-c constraints.txt | ||
|
||
-r pip-tools.txt # pip-tools and its dependencies, for managing requirements files | ||
-r quality.txt # Core and quality check dependencies | ||
-r ci.txt # dependencies for setting up testing in CI | ||
|
||
diff-cover # Changeset diff test coverage | ||
edx-i18n-tools # For i18n_tool dummy |
10 changes: 10 additions & 0 deletions
10
cookiecutter-xblock/{{cookiecutter.repo_name}}/requirements/doc.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Requirements for documentation validation | ||
|
||
-c constraints.txt | ||
|
||
-r test.txt # Core and testing dependencies for this package | ||
|
||
doc8 # reStructuredText style checker | ||
twine # Validates README.rst for usage on PyPI | ||
build # Needed to build the wheel for twine README check | ||
Sphinx # Documentation builder |
5 changes: 5 additions & 0 deletions
5
cookiecutter-xblock/{{cookiecutter.repo_name}}/requirements/pip-tools.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Just the dependencies to run pip-tools, mainly for the "upgrade" make target | ||
|
||
-c constraints.txt | ||
|
||
pip-tools # Contains pip-compile, used to generate pip requirements files |
6 changes: 6 additions & 0 deletions
6
cookiecutter-xblock/{{cookiecutter.repo_name}}/requirements/pip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Core dependencies for installing other packages | ||
-c constraints.txt | ||
|
||
pip | ||
setuptools | ||
wheel |
10 changes: 10 additions & 0 deletions
10
cookiecutter-xblock/{{cookiecutter.repo_name}}/requirements/quality.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Requirements for code quality checks | ||
|
||
-c constraints.txt | ||
|
||
-r test.txt # Core and testing dependencies for this package | ||
|
||
edx-lint # edX pylint rules and plugins | ||
isort # to standardize order of imports | ||
pycodestyle # PEP 8 compliance validation | ||
pydocstyle # PEP 257 compliance validation |
8 changes: 8 additions & 0 deletions
8
cookiecutter-xblock/{{cookiecutter.repo_name}}/requirements/test.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Requirements for test runs. | ||
-c constraints.txt | ||
|
||
-r base.txt # Core dependencies for this package | ||
|
||
pytest-cov # pytest extension for code coverage statistics | ||
pytest-django # pytest extension for better Django support | ||
code-annotations # provides commands used by the pii_check make target. |