@@ -84,7 +84,8 @@ Get dependencies, either manually, or using the provided script:
8484
8585.. code :: bash
8686
87- python3 open_fortran_parser/dev_dependencies.py
87+ pip3 install -U -r requirements.txt
88+ python3 -m open_fortran_parser --dev-deps
8889 export CLASSPATH=" ${CLASSPATH} :$( pwd) /lib/*"
8990
9091 Build:
@@ -217,52 +218,78 @@ Python version >= 3.6.
217218
218219Python libraries as specified in `<requirements.txt >`_.
219220
220- Building and running tests additionally requires packages listed in `<dev_requirements .txt >`_.
221+ Building and running tests additionally requires packages listed in `<test_requirements .txt >`_.
221222
222223
223224how to build
224225------------
225226
226227.. code :: bash
227228
228- pip3 install -U -r dev_requirements .txt
229+ pip3 install -U -r test_requirements .txt
229230 python3 setup.py sdist --formats=gztar,zip
230231 python3 setup.py bdist_wheel
231232
233+ how to install
234+ --------------
235+
236+ You can simply install from PyPI:
237+
238+ .. code :: bash
239+
240+ pip3 install open_fortran parser
241+
242+ Or using any of below commands, when installing from source:
243+
244+ .. code :: bash
245+
246+ pip3 install .
247+ pip3 install dist/< filename> .whl
248+ pip3 install dist/< filename> .tar.gz
249+ pip3 install dist/< filename> .zip
250+
232251
233252 how to run
234253----------
235254
236255The wrapper can be used as a script, or as a library.
237256
238- Before running, however, please make sure that dependencies are configured correctly.
239- You can do that by either following the "how to build" section for Java implementation above,
240- or by executing this:
257+ When running any installed version, even if installed from source, dependencies are automatically
258+ installed together with the wrapper.
259+
260+ Before running from source (without installation), however, please follow "how to build" section
261+ for Java implementation above.
262+ You can make sure that dependencies are configured correctly by running:
241263
242264.. code :: bash
243265
244- python3 open_fortran_parser/dependencies.py
245- export CLASSPATH= " ${CLASSPATH} : $( pwd ) /lib/* "
266+ python3 -m open_fortran_parser --deps
267+
246268
247269 as script
248270~~~~~~~~~
249271
250272.. code :: bash
251273
252274 $ python3 -m open_fortran_parser -h
253- usage: open_fortran_parser [-h] [-v VERBOSITY] input [output]
275+ usage: open_fortran_parser [-h] [--version] [-v VERBOSITY]
276+ [--get-dependencies]
277+ [input] [output]
254278
255- Python wrapper around XML generator for Open Fortran Parser 0.8.4
279+ Python wrapper around XML generator for Open Fortran Parser
256280
257281 positional arguments:
258- input path to Fortran source code file
282+ input path to Fortran source code file (default: None)
259283 output writable path for where to store resulting XML,
260284 defaults to stdout if no path provided (default: None)
261285
262286 optional arguments:
263287 -h, --help show this help message and exit
288+ --version show program' s version number and exit
264289 -v VERBOSITY, --verbosity VERBOSITY
265290 level of verbosity, from 0 to 100 (default: 100)
291+ --get-dependencies, --deps
292+ download dependencies and exit (default: False)
266293
267294 Copyright 2017 Mateusz Bysiek https://mbdevpl.github.io/, Apache License 2.0
268295
@@ -285,6 +312,6 @@ testing
285312 python3 -m pylint --load-plugins=pylint.extensions.mccabe --docstring-min-length 5 \
286313 --no-docstring-rgx "^(test)?_|.*Tests$" --unsafe-load-any-extension y \
287314 --output-format colorized --reports y $(find . -name "*.py")
288- python3 -m coverage run --branch -m unittest discover --verbose
315+ python3 -m coverage run --branch --source . - m unittest discover --verbose
289316 python3 -m coverage report --show-missing
290317 python3 -m coverage html
0 commit comments