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 developtakes 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.dependenciesmodule. This will help simplify
things for us in some ways (such as with RBCommons packaging and
extension packaging).The
prepare-dev.pyscript has been updated to no longer install
modules itself, and to allowdevelopto 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 developand 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.pyand
repeated tests. Everything worked.
| Description | From | Last Updated |
|---|---|---|
|
Can you remove the django_version definition from reviewboard/__init__.py? |
|
|
|
Docstring? |
|
|
|
Docstring? |
|
|
|
Docstring? |
|
|
|
Docstring? |
|
|
|
Docstring? |
|
|
|
Docstring? |
|
|
|
Docstring? |
|
|
|
Col: 1 E402 module level import not at top of file |
|
|
|
Col: 1 E402 module level import not at top of file |
|
|
|
'reviewboard' imported but unused |
|
|
|
Why not super(...).initialize_options() ? |
|
|
|
"Mercurial" |
|
|
|
Col: 1 E402 module level import not at top of file |
|
|
|
Col: 1 E402 module level import not at top of file |
|
|
|
'reviewboard' imported but unused |
|
|
|
Col: 1 E402 module level import not at top of file |
|
|
|
'pkg_resources' imported but unused |
|
|
|
Col: 1 E402 module level import not at top of file |
|
|
|
Col: 1 E402 module level import not at top of file |
|
|
|
'reviewboard' imported but unused |
|
- Change Summary:
-
- Added a
Commandsuffix 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-cacheoption to enable usingnpm-cache. Otherwise,npmis 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_wheelgenerate 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 -
-
-
-
-
Tool: PEP8 Style Checker Processed Files: reviewboard/dependencies.py setup.py contrib/internal/prepare-dev.py Ignored Files: package.json Tool: Pyflakes Processed Files: reviewboard/dependencies.py setup.py contrib/internal/prepare-dev.py Ignored Files: package.json