You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2021/05/03 18:26:14 UTC
[allura] 03/05: [#8386] move nose from a regular dependency to a
dev dependency
This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch db/8386
in repository https://gitbox.apache.org/repos/asf/allura.git
commit 4850febee3cc1e312130b997b5f70b0605272440
Author: Dave Brondsema <db...@slashdotmedia.com>
AuthorDate: Mon May 3 12:22:53 2021 -0400
[#8386] move nose from a regular dependency to a dev dependency
---
Allura/docs/development/contributing.rst | 3 +++
Allura/docs/getting_started/installation.rst | 3 ++-
requirements-dev.in | 3 ++-
requirements.in | 1 -
requirements.txt | 2 --
5 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/Allura/docs/development/contributing.rst b/Allura/docs/development/contributing.rst
index 0f4ab92..65daa7a 100644
--- a/Allura/docs/development/contributing.rst
+++ b/Allura/docs/development/contributing.rst
@@ -206,6 +206,9 @@ as ``pudb`` are also available.
Testing
-------
+First, install :code:`nose` (not bundled installed by default, since it is LGPL and deprecated)
+:code:`docker-compose run web pip install nose`
+
To run all the tests, execute ``./run_tests`` in the repo root. To run tests
for a single package, for example ``forgetracker``::
diff --git a/Allura/docs/getting_started/installation.rst b/Allura/docs/getting_started/installation.rst
index 23c75bb..d18d818 100644
--- a/Allura/docs/getting_started/installation.rst
+++ b/Allura/docs/getting_started/installation.rst
@@ -171,7 +171,8 @@ Update requirements and reinstall apps:
You may want to restart at least "taskd" container after that in order for it to
pick up changes. Run :code:`docker-compose restart taskd`
-Running all tests:
+Running all tests. First, install :code:`nose` (not bundled installed by default, since it is LGPL and deprecated)
+:code:`docker-compose run web pip install nose` then:
.. code-block:: bash
diff --git a/requirements-dev.in b/requirements-dev.in
index 506e184..04c57b0 100644
--- a/requirements-dev.in
+++ b/requirements-dev.in
@@ -6,4 +6,5 @@ q==2.3
sphinx-argparse==0.2.5
sphinx-rtd-theme==0.1.6
sphinxcontrib-programoutput==0.8
-coverage
\ No newline at end of file
+coverage
+nose
diff --git a/requirements.in b/requirements.in
index 2684516..5fc8392 100644
--- a/requirements.in
+++ b/requirements.in
@@ -56,7 +56,6 @@ wrapt==1.11.2
datadiff
ipython<6 # Ipython 7 starts to require py3
mock
-nose
pyflakes
#pylint -- disabled due to [#8346] (also requires diff versions on py2 vs 3, including transitive deps which gets tricky with pip-compile)
testfixtures
diff --git a/requirements.txt b/requirements.txt
index 4220fb6..0edabe3 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -116,8 +116,6 @@ ming==0.10.2
# via -r requirements.in
mock==3.0.5
# via -r requirements.in
-nose==1.3.7
- # via -r requirements.in
https://github.com/joestump/python-oauth2/archive/b94f69b1ad195513547924e380d9265133e995fa.zip#egg=oauth2
# via -r requirements.in
oauthlib==3.0.2