-
Notifications
You must be signed in to change notification settings - Fork 45
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 #7 from smoia/doc/windows_install
Doc/windows install
- Loading branch information
Showing
2 changed files
with
52 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,21 +24,21 @@ This will let you run the program with the latest modification, without requirin | |
If you want to check, type ``python --version`` in a terminal. | ||
|
||
|
||
Linux, Mac and Windows developer installation | ||
------------------------------------ | ||
Linux, Mac and Windows developer installation | ||
--------------------------------------------- | ||
|
||
Be sure to have ``git`` and ``pip`` installed. Fork the phys2bids repository in GitHub, then open a terminal and run the following code to clone the forked repository and set it as your `origin`:: | ||
|
||
git clone https://github.com/{username}/phys2bids.git | ||
# or in case you have an ssh key set up: | ||
git clone [email protected]:{username}/phys2bids.git | ||
git clone https://github.com/{username}/phys2bids.git | ||
# or in case you prefer to use ssh: | ||
git clone [email protected]:{username}/phys2bids.git | ||
|
||
We also recommend to set up the physiopy/phys2bids repository as `upstream`. | ||
In this way you can always keep your main branch up to date with the command `git pull upstream master`:: | ||
|
||
cd phys2bids | ||
git remote add upstream https://github.com/physiopy/phys2bids.git | ||
git pull upstream master | ||
cd phys2bids | ||
git remote add upstream https://github.com/physiopy/phys2bids.git | ||
git pull upstream master | ||
|
||
|
||
Basic installation | ||
|
@@ -49,7 +49,7 @@ are already installed in your system. | |
|
||
Move into the ``phys2bids`` folder and execute the command:: | ||
|
||
pip3 install -e . | ||
pip3 install -e . | ||
|
||
Full developer installation | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
@@ -59,48 +59,47 @@ to collaborate with us, you can install ``phys2bids`` with all the other package | |
|
||
Move into the ``phys2bids`` folder and execute the command:: | ||
|
||
pip3 install -e .[all] | ||
pip3 install -e .[all] | ||
|
||
This will install: | ||
|
||
- ``phys2bids`` as an editable package, which means that you can modify the program and run it without having to reinstall it every time! | ||
- All the ``phys2bids`` dependencies. | ||
- All the **interface** modules, that deal with the interfaces for all the file formats. | ||
- All the **style** modules, such as ``flake8``, to help you linter the code! | ||
- All the **documentation** modules, like ``sphinx``, so that you can build the docs locally before submitting them. | ||
- All the **test** modules, like ``pytest``, in order for you to test your code locally before committing it! | ||
- ``phys2bids`` as an editable package, which means that you can modify the program and run it without having to reinstall it every time! | ||
- All the ``phys2bids`` dependencies. | ||
- All the **interface** modules, that deal with the interfaces for all the file formats. | ||
- All the **style** modules, such as ``flake8``, to help you linter the code! | ||
- All the **documentation** modules, like ``sphinx``, so that you can build the docs locally before submitting them. | ||
- All the **test** modules, like ``pytest``, in order for you to test your code locally before committing it! | ||
|
||
Check your installation! | ||
^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Type the commands:: | ||
|
||
cd phys2bids/tests | ||
cd phys2bids/tests | ||
pytest | ||
|
||
This will execute the tests locally and check that your phys2bids installation works properly. | ||
|
||
.. code-block:: shell | ||
pytest | ||
=================================================================== test session starts =================================================================== | ||
platform win32 -- Python 3.8.6, pytest-6.1.1, py-1.9.0, pluggy-0.13.1 | ||
rootdir: C:\Users\sento\phys2bids, configfile: setup.cfg | ||
plugins: cov-2.10.1 | ||
collected 61 items | ||
test_acq.py . [ 1%] | ||
test_bids.py ................ [ 27%] | ||
test_integration.py ... [ 32%] | ||
test_phys2bids.py ... [ 37%] | ||
test_physio_obj.py ....... [ 49%] | ||
test_txt.py .................. [ 78%] | ||
test_utils.py ........... [ 96%] | ||
test_viz.py .x [100%] | ||
================================================================= short test summary info ================================================================= | ||
XFAIL test_viz.py::test_plot_trigger | ||
======================================================== 60 passed, 1 xfailed in 142.58s (0:02:22) ======================================================== | ||
Do Not worry about the xfail error in the test_viz.py, this is only happening because at the moment we cannot run this test in our Continous integration workflow. | ||
However if you do encounter any other error, check that you have all the extra dependencies install and contact us if necessary. | ||
pytest | ||
=================================== test session starts =================================== | ||
platform win32 -- Python 3.8.6, pytest-6.1.1, py-1.9.0, pluggy-0.13.1 | ||
rootdir: C:\Users\sento\phys2bids, configfile: setup.cfg | ||
plugins: cov-2.10.1 | ||
collected 61 items | ||
test_acq.py . [ 1%] | ||
test_bids.py ................ [ 27%] | ||
test_integration.py ... [ 32%] | ||
test_phys2bids.py ... [ 37%] | ||
test_physio_obj.py ....... [ 49%] | ||
test_txt.py .................. [ 78%] | ||
test_utils.py ........... [ 96%] | ||
test_viz.py .x [100%] | ||
================================= short test summary info ================================= | ||
XFAIL test_viz.py::test_plot_trigger | ||
======================== 60 passed, 1 xfailed in 142.58s (0:02:22) ======================== | ||
Do **not** worry if there is a xfail error in the log. This happens when we know that a test will fail for known reasons, and we are probably working to fix it (see `here <https://docs.pytest.org/en/latest/skipping.html#xfail-mark-test-functions-as-expected-to-fail>`_. However, if you do encounter any other error, check that you have all the extra dependencies installed and their version meets ``phys2bids`` requirements. Contact us on `gitter <https://gitter.im/physiopy/community>`_ if you need help! |
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