Make Review Board package develop mode install wheels/npm packages.
Review Request #8494 — Created Oct. 26, 2016 and submitted
This simplifies getting going with a Review Board source tree. Before,
Review Board would require a few steps to get set up, which included
installing runningsetup.py develop
(and having everything in place to
compile Pillow and other modules), installing the packages in
dev-requirements.txt, and installing the required node modules. That was
a lot of steps, and caused problems for those getting started
(particularly as some complex dependencies are no longer shipped as
eggs).Now,
setup.py develop
takes care of installing dependencies as wheels,
installing development packages, and installing modules from npm. It's a
far simpler process than we've had in the past.Like in the accompanying Djblets change, the package dependencies now
live in areviewboard.dependencies
module. This will help simplify
things for us in some ways (such as with RBCommons packaging and
extension packaging).The
prepare-dev.py
script has been updated to no longer install
modules itself, and to allowdevelop
to do more work.
Used a new virtualenv consisting of just the Djblets source tree and
dependencies. Used a clean copy of the Review Board source tree. Ran
./setup.py develop
and saw it install wheels and node modules. Ran
unit tests and they passed.Created a new environment and installed Djblets into it. Then I set up
the Review Board tree using./contrib/internal/prepare-dev.py
and
repeated tests. Everything worked.
Description | From | Last Updated |
---|---|---|
Can you remove the django_version definition from reviewboard/__init__.py? |
david | |
Docstring? |
david | |
Docstring? |
david | |
Docstring? |
david | |
Docstring? |
david | |
Docstring? |
david | |
Docstring? |
david | |
Docstring? |
david | |
Col: 1 E402 module level import not at top of file |
reviewbot | |
Col: 1 E402 module level import not at top of file |
reviewbot | |
'reviewboard' imported but unused |
reviewbot | |
Why not super(...).initialize_options() ? |
brennie | |
"Mercurial" |
brennie | |
Col: 1 E402 module level import not at top of file |
reviewbot | |
Col: 1 E402 module level import not at top of file |
reviewbot | |
'reviewboard' imported but unused |
reviewbot | |
Col: 1 E402 module level import not at top of file |
reviewbot | |
'pkg_resources' imported but unused |
reviewbot | |
Col: 1 E402 module level import not at top of file |
reviewbot | |
Col: 1 E402 module level import not at top of file |
reviewbot | |
'reviewboard' imported but unused |
reviewbot |
- Change Summary:
-
- Added a
Command
suffix to the new command classes. - Added docstrings.
- Removed the Django constants from
reviewboard/__init__.py
. - Fixed doc generation.
- Added a
- Commit:
-
61bf5c741fe7da2d1a407c43654adb6610e9e0eb06f24fef4880982d61a9067ac7fa04fc6052306f
-
Tool: Pyflakes Processed Files: reviewboard/__init__.py reviewboard/dependencies.py docs/releasenotes/conf.py contrib/internal/prepare-dev.py docs/manual/conf.py setup.py Ignored Files: package.json Tool: PEP8 Style Checker Processed Files: reviewboard/__init__.py reviewboard/dependencies.py docs/releasenotes/conf.py contrib/internal/prepare-dev.py docs/manual/conf.py setup.py Ignored Files: package.json
-
-
-
- Change Summary:
-
Added a
--use-npm-cache
option to enable usingnpm-cache
. Otherwise,npm
is used. - Commit:
-
06f24fef4880982d61a9067ac7fa04fc6052306f56fbfc9927c021605210d04d2641639f3d93ebe3
-
Tool: Pyflakes Processed Files: reviewboard/__init__.py reviewboard/dependencies.py docs/releasenotes/conf.py contrib/internal/prepare-dev.py docs/manual/conf.py setup.py Ignored Files: package.json Tool: PEP8 Style Checker Processed Files: reviewboard/__init__.py reviewboard/dependencies.py docs/releasenotes/conf.py contrib/internal/prepare-dev.py docs/manual/conf.py setup.py Ignored Files: package.json
-
-
-
- Change Summary:
-
- Fixed static media building.
- Made
bdist_wheel
generate static media. - Broke the Djblets version out into its own variable. This is because we modify this
more than any other dependency, and it often leads to conflicts when merging branches
or into RBCommons.
- Commit:
-
56fbfc9927c021605210d04d2641639f3d93ebe358a805bcbd824e84928b672bcb3e96c8dff79220
-
Tool: Pyflakes Processed Files: reviewboard/__init__.py reviewboard/dependencies.py docs/releasenotes/conf.py contrib/internal/build-media.py docs/manual/conf.py setup.py contrib/internal/prepare-dev.py Ignored Files: package.json Tool: PEP8 Style Checker Processed Files: reviewboard/__init__.py reviewboard/dependencies.py docs/releasenotes/conf.py contrib/internal/build-media.py docs/manual/conf.py setup.py contrib/internal/prepare-dev.py Ignored Files: package.json
-
-
-
-
-