Debian Codegraph @

README.rst

raw
1 What is fades?
2 ==============
3
4
5 .. image:: https://github.com/PyAr/fades/actions/workflows/test.uaml/badge.svg
6 :target: https://github.com/PyAr/fades/actions/workflows/test.uaml/badge.svg
7 .. image:: https://readthedocs.org/projects/fades/badge/?version=latest
8 :target: http://fades.readthedocs.org/en/latest/?badge=latest
9 :alt: Documentation Status
10 .. image:: https://badge.fury.io/py/fades.svg
11 :target: https://badge.fury.io/py/fades
12 .. image:: https://coveralls.io/repos/PyAr/fades/badge.svg?branch=master&service=github
13 :target: https://coveralls.io/github/PyAr/fades?branch=master
14 .. image:: https://build.snapcraft.io/badge/PyAr/fades.svg
15 :target: https://build.snapcraft.io/user/PyAr/fades
16 :alt: Snap Status
17 .. image:: https://ci.appveyor.com/api/projects/status/crkqv82t1l731fms/branch/master?svg=true
18 :target: https://ci.appveyor.com/project/facundobatista/fades
19 :alt: Appveyor Status
20
21
22 fades is a system that automatically handles the virtual environments in the
23 cases normally found when writing scripts and simple programs, and
24 even helps to administer big projects.
25
26 .. image:: resources/logo256.png
27
28 *fades* will automagically create a new virtual environment (or reuse a previous
29 created one), installing the necessary dependencies, and execute
30 your script inside that virtual environment, with the only requirement
31 of executing the script with *fades* and also marking the required
32 dependencies.
33
34 *(If you don't have a clue why this is necessary or useful, I'd recommend you
35 to read this small text about* `Python and the Management of Dependencies
36 <https://github.com/PyAr/fades/blob/master/docs/pydepmanag.rst>`_ *.)*
37
38 The first non-option parameter (if any) would be then the child program
39 to execute, and any other parameters after that are passed as is to that
40 child script.
41
42 *fades* can also be executed without passing a child script to execute:
43 in this mode it will open a Python interactive interpreter inside the
44 created/reused virtual environment (taking dependencies from ``--dependency`` or
45 ``--requirement`` options).
46
47 .. contents::
48
49
50 How to use it?
51 ==============
52
53 Click in the following image to see a video/screencast that shows most of
54 fades features in just 5'...
55
56 .. image:: resources/video/screenshot.png
57 :target: https://www.youtube.com/watch?v=BCTd_TyCm98
58
59 ...or inspect `these several small GIFs <resources/gifs/gifs.rst>`_ that
60 show each a particular `fades` functionality, but please keep also reading
61 for more detailed information...
62
63
64 Yes, please, I want to read
65 ---------------------------
66
67 When you write an script, you have to take two special measures:
68
69 - need to execute it with *fades* (not *python*)
70
71 - need to mark those dependencies
72
73 At the moment you execute the script, fades will search a
74 virtual environment with the marked dependencies, if it doesn't exists
75 fades will create it, and execute the script in that environment.
76
77
78 How to execute the script with fades?
79 -------------------------------------
80
81 You can always call your script directly with fades::
82
83 fades myscript.py
84
85 However, for you to not forget about fades and to not execute it
86 directly with python, it's better if you put at the beggining of
87 the script the indication for the operating system that it should
88 be executed with fades... ::
89
90 #!/usr/bin/env fades
91
92 ...and also set the executable bit in the script::
93
94 chmod +x yourscript.py
95
96 You can also execute scripts directly from the web, passing directly the
97 URL of the pastebin where the script is pasted (most common pastebines are
98 supported, pastebin.com, gist, linkode.org, but also it's supported if
99 the URL points to the script directly)::
100
101 fades http://myserver.com/myscript.py
102
103
104 How to mark the dependencies to be installed?
105 ---------------------------------------------
106
107 The procedure to mark a module imported by the script as a *dependency
108 to be installed by fades* is by using a comment.
109
110 This comment will normally be in the same line of the import (recommended,
111 less confusing and less error prone in the future), but it also can be in
112 the previous one.
113
114 The simplest comment is like::
115
116 import somemodule # fades
117 from somepackage import othermodule # fades
118
119 The ``fades`` is mandatory, in this examples the repository is PyPI,
120 see `About different repositories`_ below for other examples.
121
122 With that comment, *fades* will install automatically in the virtual environment the
123 ``somemodule`` or ``somepackage`` from PyPI.
124
125 Also, you can indicate a particular version condition, examples::
126
127 import somemodule # fades == 3
128 import somemodule # fades >= 2.1
129 import somemodule # fades >=2.1,<2.8,!=2.6.5
130
131 Sometimes, the project itself doesn't match the name of the module; in
132 these cases you can specify the project name (optionally, before the
133 version)::
134
135 import bs4 # fades beautifulsoup4
136 import bs4 # fades beautifulsoup4 == 4.2
137
138
139 What if no script is given to execute?
140 --------------------------------------
141
142 If no script or program is passed to execute, *fades* will provide a virtual environment
143 with all the indicated dependencies, and then open an interactive interpreter
144 in the context of that virtual environment.
145
146 Here is where it comes very handy the ``-i/--ipython`` option, if that REPL
147 is preferred over the standard one.
148
149 In the case of using an interactive interpreter, it's also very useful to
150 make *fades* to automatically import all the indicated dependencies,
151 passing the ``--autoimport`` parameter.
152
153
154 Other ways to specify dependencies
155 ----------------------------------
156
157 Apart of marking the imports in the source file, there are other ways
158 to tell *fades* which dependencies to install in the virtual environment.
159
160 One way is through command line, passing the ``--dependency`` parameter.
161 This option can be specified multiple times (once per dependency), and
162 each time the format is ``repository::dependency``. The dependency may
163 have versions specifications, and the repository is optional (defaults
164 to 'pypi').
165
166 Another way is to specify the dependencies in a text file, one dependency
167 per line, with each line having the format previously described for
168 the ``--dependency`` parameter. This file is then indicated to fades
169 through the ``--requirement`` parameter. This option can be specified
170 multiple times.
171
172 In case of multiple definitions of the same dependency, command line
173 overrides everything else, and requirements file overrides what is
174 specified in the source code.
175
176 Finally, you can include package names in the script docstring, after
177 a line where "fades" is written, until the end of the docstring;
178 for example::
179
180 """Script to do stuff.
181
182 It's a very important script.
183
184 We need some dependencies to run ok, installed by fades:
185 request
186 otherpackage
187 """
188
189
190 About different repositories
191 ----------------------------
192
193 *fades* supports installing the required dependencies from multiples repositories: besides PyPI, you can specify URLs that can point to projects from GitHub, Launchpad, etc. (basically, everything that is supported by ``pip`` itself).
194
195 When a dependency is specified, *fades* deduces the proper repository. For example, in the following examples *fades* will install requests from the latest revision from PyPI in the first case, and in the second case the latest revision from the project itself from GitHub::
196
197 -d requests
198 -d git+https://github.com/kennethreitz/requests.git#egg=requests
199
200 If you prefer, you can be explicit about which kind of repository *fades* should use, prefixing the dependency with the special token double colon (``::``)::
201
202 -d pypi::requests
203 -d vcs::git+https://github.com/kennethreitz/requests.git#egg=requests
204
205 There are two basic repositories: ``pypi`` which will make *fades* to install the desired dependency from PyPI, and ``vcs``, which will make *fades* to treat the dependency as a URL for a version control system site. In the first case, for PyPI, a full range of version comparators can be specified, as usual. For ``vcs`` repositories, though, the comparison is always exact: if the very same dependency is specified, a *virtual environment* is reused, otherwise a new one will be created and populated.
206
207 In both cases (specifying the repository explicitly or implicitly) there is no difference if the dependency is specified in the command line, in a ``requirements.txt`` file, in the script's docstring, etc. In the case of marking the ``import`` directly in the script, it slightly different.
208
209 When marking the ``import`` it normally happens that the package itself to be installed has the name of the imported module, and because of that it can only be found in PyPI. So, in the following cases the ``pypi`` repository is not only deduced, but unavoidable::
210
211 import requests # fades
212 from foo import bar # fades
213 import requests # fades <= 3
214
215 But if the package is specified (normally needed because it's different than the module name), or if a version control system URL is specified, the same possibilities stated above are available: let *fades* to deduce the proper repository or mark it explicitly::
216
217 import bs4 # fades beautifulsoup
218 import bs4 # fades pypi::beautifulsoup
219 import requests # fades git+https://github.com/kennethreitz/requests.git#egg=requests
220 import requests # fades vcs::git+https://github.com/kennethreitz/requests.git#egg=requests
221
222 One last detail about the ``vcs`` repository: the format to write the URLs is the same (as it's passed without modifications) than what ``pip`` itself supports (see `pip docs <https://pip.readthedocs.io/en/stable/reference/pip_install/#vcs-support>`_ for more details).
223
224 Furthermore, you can install from local projects. It's just fine to use a
225 dependency that starts with ``file:``. E.g. (please note the triple slash,
226 because we're mixing the protocol indication with the path)::
227
228 fades -d file:///home/crazyuser/myproject/allstars/
229
230
231 How to control the virtual environment creation and usage?
232 ----------------------------------------------------------
233
234 You can influence several details of all the virtual environment related process.
235
236 The most important detail is which version of Python will be used in
237 the virtual environment. Of course, the corresponding version of Python needs to
238 be installed in your system, but you can control exactly which one to use.
239
240 No matter which way you're executing the script (see above), you can
241 pass a ``-p`` or ``--python`` argument, indicating the Python version to
242 be used just with the number (``3.11``), the whole name (``python3.11``) or
243 the whole path (``/usr/bin/python3.11``).
244
245 Other detail is the verbosity of *fades* when telling what is doing. By
246 default, *fades* only will use stderr to tell if a virtual environment is being
247 created, and to let the user know that is doing an operation that
248 requires an active network connection (e.g. installing a new dependency).
249
250 If you call *fades* with ``-v`` or ``--verbose``, it will send all internal
251 debugging lines to stderr, which may be very useful if any problem arises.
252 On the other hand if you pass the ``-q`` or ``--quiet`` parameter, *fades*
253 will not show anything (unless it has a real problem), so the original
254 script stderr is not polluted at all.
255
256 If you want to use IPython shell you need to call *fades* with ``-i`` or
257 ``--ipython`` option. This option will add IPython as a dependency to *fades*
258 and it will launch this shell instead of the python one.
259
260 You can also use ``--system-site-packages`` to create a venv with access to
261 the system libs.
262
263 Finally, no matter how the virtual environment was created, you can always get the
264 base directory of the virtual environment in your system using the ``--where`` (or its
265 alias ``--get-venv-dir``) option.
266
267
268 Running programs in the context of the virtual environment
269 ----------------------------------------------------------
270
271 The ``-x/--exec`` parameter allows you to execute any program (not just
272 a Python one) in the context of the virtual environment.
273
274 By default the mandatory given argument is considered the executable
275 name, relative to the environment's ``bin`` directory, so this is
276 specially useful to execute installed scripts/program by the declared
277 dependencies. E.g.::
278
279 fades -d flake8 -x flake8 my_script_to_be_verified_by_flake8.py
280
281 Take in consideration that you can pass an absolute path and it will be
282 respected (but not a relative path, as it will depend of the virtual environment
283 location).
284
285 For example, if you want to run a shell script that in turn runs a Python
286 program that needs to be executed in the context of the virtual environment, you
287 can do the following::
288
289 fades -r requirements.txt --exec /var/lib/foobar/special.sh
290
291 Finally, if the intended code to run is prepared to be executed as a module
292 (what you would normally run as `python3 -m some_module`), you can
293 use the same parameter with *fades* to run that module inside the virtual environment::
294
295 fades -r requirements.txt -m some_module
296
297
298 How to deal with packages that are upgraded in PyPI
299 ---------------------------------------------------
300
301 When you tell *fades* to create a virtual environment using one dependency and
302 don't specify a version, it will install the latest one from PyPI.
303
304 For example, you do ``fades -d foobar`` and it installs foobar in
305 version 7. At some point, there is a new version of foobar in PyPI,
306 version 8, but if do ``fades -d foobar`` it will just reuse previously
307 created virtual environment, with version 7, not downloading the new version and
308 creating a new virtual environment with it!
309
310 You can tell fades to do otherwise, just do::
311
312 fades -d foobar --check-updates
313
314 ...and *fades* will search updates for the package on PyPI, and as it will
315 found version 8, will create a new virtual environment using the latest version. You
316 can also use the ``-U`` option as an alias for ``--check-updates``::
317
318 fades -d foobar -U
319
320 From this moment on, if you request ``fades -d foobar`` it will bring the
321 virtual environment with the new version. If you want to get a virtual environment with
322 not-the-latest version for any dependency, just specify the proper versions.
323
324 You can even use the ``--check-updates`` parameter when specifying the package
325 version. Say you call ``fades -d foobar==7``, *fades* will install version 7 no
326 matter which one is the latest. But if you do::
327
328 fades -d foobar==7 --check-updates
329
330 ...it will still use version 7, but will inform you that a new version
331 is available!
332
333
334 What about pinning dependencies?
335 --------------------------------
336
337 One nice benefit of *fades* is that every time dependencies change in your
338 project, you actually get to use a new virtual environment automatically.
339
340 If you don't pin the dependencies in your requirements file, this has
341 another nice side effect: everytime you use them in a new environment (or
342 if you have `--check-updates` set) you will get latest versions, effectively
343 avoiding the trap of sticking in old versions forever.
344
345 However, this has a bad side. If it happens that a dependency of your
346 project released a revision between the moment you run the tests and the
347 moment your project is deployed to the server, it may happen that you
348 actually put in production an untested combination. Furthermore, it may
349 happen that even if you do pin your dependencies, the dependencies of
350 those dependencies may not be pinned, and you get into the same situation.
351
352 For example, you may have the ``requests == 2.19.1`` dependency, but
353 ``requests`` declares its own dependencies, for example
354 ``chardet >= 3.0.2``, and when running tests locally you may get ``chardet``
355 in version ``3.0.3``, but nothing guarantees you that when deploying your
356 project to a server (effectively building everything from scratch) you will
357 not get a newer version of ``chardet``, which may be totally fine but in fact
358 it's something that you did NOT test locally.
359
360 Here is where *fades* comes to the rescue with the ``--freeze`` option. If
361 this parameter is given, *fades* will operate exactly as it normally would,
362 but also will dump the result of ``pip freeze`` into the specified file.
363
364 So to continue with the example above, you could run your tests like::
365
366 fades -d "requests == 2.19.1" --freeze=reqs-frozen.txt -x python3 -m unittest
367
368 ...which will leave you ``reqs-frozen.txt`` with a content similar to::
369
370 certifi==2018.4.16
371 chardet==3.0.4
372 pip==18.0
373 requests==2.19.1
374 ...
375
376 And then you could use *that file* for deployment, which has *all packages*
377 pinned, so you will get exactly what you was expecting.
378
379
380 Under the hood options
381 ----------------------
382
383 For particular use cases you can send specifics arguments to the ``venv`` module, ``pip`` and ``python`` itself, using the ``--venv-options``, ``--pip-options`` and ``--python-options`` modifiers respectively. You have to use that argument for each argument sent.
384
385 Examples:
386
387 ``fades -d requests --venv-options="--symlinks"``
388
389 ``fades -d requests --pip-options="--index-url='http://example.com'"``
390
391 ``fades --python-options=-B foo.py``
392
393
394 Setting options using config files
395 ----------------------------------
396
397 You can also configure fades using `.ini` config files. fades will search config files in
398 `/etc/fades/fades.ini`, the path indicated by `xdg` for your system
399 (for example `~/config/fades/fades.ini`) and `.fades.ini`.
400
401 So you can have different settings at system, user and project level.
402
403 With fades installed you can get your config dir running::
404
405 python -c "from fades.helpers import get_confdir; print(get_confdir())"
406
407
408 The config files are in `.ini` format. (configparser) and fades will search for a `[fades]` section.
409
410 You have to use the same configurations that in the CLI. The only difference is with the config
411 options with a dash, it has to be replaced with a underscore.::
412
413 [fades]
414 ipython=true
415 verbose=true
416 python=python3
417 check_updates=true
418 dependency=requests;django>=1.8 # separated by semicolon
419
420 There is a little difference in how fades handle these settings: "dependency", "pip-options" and
421 "venv-options". In these cases you have to use a semicolon separated list.
422
423 The most important thing is that these options will be merged. So if you configure in
424 `/etc/fades/fades.ini` "dependency=requests" you will have requests in all the virtual environments
425 created by fades.
426
427
428 How to clean up old virtual environments?
429 -----------------------------------------
430
431 When using *fades* virtual environments are something you should not have to think about.
432 *fades* will do the right thing and create a new virtual environment that matches the required
433 dependencies. There are cases however when you'll want to do some clean up to remove
434 unnecessary virtual environments from disk.
435
436 By running *fades* with the ``--rm`` argument, *fades* will remove the
437 virtual environment matching the provided UUID if such environment exists (one easy
438 way to find out the environment's UUID is calling *fades* with the
439 ``--where`` option).
440
441 Another way to clean up the cache is to remove all venvs that haven't been used for some time.
442 In order to do this you need to call *fades* with ``--clean-unused-venvs``.
443 When fades it's called with this option, it runs in mantain mode, this means that fades will exit
444 after finished this task.
445
446 All virtual environments that haven't been used for more days than the value indicated in param will be
447 removed.
448
449 It is recommended to have some automatically way of run this option;
450 ie, add a cron task that perform this command::
451
452 fades --clean-unused-venvs=42
453
454
455 Some command line examples
456 --------------------------
457
458 Execute ``foo.py`` under *fades*, passing the ``--bar`` parameter to the child program, in a virtual environment with the dependencies indicated in the source code::
459
460 fades foo.py --bar
461
462 Execute ``foo.py`` under *fades*, showing all the *fades* messages (verbose mode)::
463
464 fades -v foo.py
465
466 Execute ``foo.py`` under *fades* (passing the ``--bar`` parameter to it), in a virtual environment with the dependencies indicated in the source code and also ``dependency1`` and ``dependency2`` (any version > 3.2)::
467
468 fades -d dependency1 -d "dependency2>3.2" foo.py --bar
469
470 Execute the Python interactive interpreter in a virtual environment with ``dependency1`` installed::
471
472 fades -d dependency1
473
474 Execute the Python interactive interpreter in a virtual environment after installing there all dependencies taken from the ``requirements.txt`` file::
475
476 fades -r requirements.txt
477
478 Execute the Python interactive interpreter in a virtual environment after installing there all dependencies taken from files ``requirements.txt`` and ``requirements_devel.txt``::
479
480 fades -r requirements.txt -r requirements_devel.txt
481
482 Use the ``django-admin.py`` script to start a new project named ``foo``, without having to have django previously installed::
483
484 fades -d django -x django-admin.py startproject foo
485
486 Remove a virtual environment matching the given uuid from disk and cache index::
487
488 fades --rm 89a2bf83-c280-4918-a78d-c35506efd69d
489
490 Download the script from the given pastebin and executes it (previously building a virtual environment for the dependencies indicated in that pastebin, of course)::
491
492 fades http://linkode.org/#4QI4TrPlGf1gK2V7jPBC47
493
494 Run all the tests in a project (running ``pytest`` directly as a module, for better behaviour) and at the same time freeze dependencies for later deployment::
495
496 fades -r requirements.txt --freeze -m pytest -v
497
498
499 Some examples using fades in project scripts
500 --------------------------------------------
501
502 Including *fades* in project helper scripts makes it easy to stop
503 worrying about the virtual environment activation/deactivation when working
504 in that project, and also solves the problem of needing to
505 update/change/fix an already created virtual environment if the
506 dependencies change.
507
508 This is an example of how a script to run your project may look like::
509
510 #!/bin/sh
511 if (command -v fades > /dev/null)
512 then
513 # fades FTW!
514 fades -r requirements.txt bin/start
515 else
516 echo 2
517 # hope you are in the correct virtual environment
518 python3 bin/start
519 fi
520
521 To run the tests, it's super handy to have a script that also takes care
522 of the development dependencies::
523
524 #!/bin/sh
525 fades -r requirements.txt -r reqs-dev.txt -x python -m pytest -s "$@"
526
527
528 What if Python is updated in my system?
529 ---------------------------------------
530
531 The virtual environments created by fades depend on the Python version used to
532 create them, considering its major and minor version.
533
534 This means that if run fades with a Python version and then run it again
535 with a different Python version, it may need to create a new virtual environment.
536
537 Let's see some examples. Let's say you run fades with ``python``, which
538 is a symlink in your ``/usr/bin/`` to ``python3.6`` (running it directly
539 by hand or because fades is installed to use that Python version).
540
541 If you have Python 3.6.2 installed in your system, and it's upgraded to
542 Python 3.6.3, fades will keep reusing the already created virtual environments, as
543 only the micro version changed, not minor or major.
544
545 But if Python 3.7 is installed in your system, and the default ``python``
546 is pointed to this new one, fades will start creating all the
547 virtual environments again, with this new version.
548
549 This is a good thing, because you want that the dependencies installed
550 with one specific Python in the virtual environment are kept being used by the
551 same Python version.
552
553 However, if you want to avoid this behaviour, be sure to always call fades
554 with the specific Python version (``/usr/bin/python3.6`` or ``python3.6``,
555 for example), so it won't matter if a new version is available in the
556 system.
557
558
559 How to install it
560 =================
561
562 Several instructions to install ``fades`` in different platforms.
563
564 Simplest way
565 ------------
566
567 In some systems you can install ``fades`` directly, no needing to
568 install previously any dependency.
569
570 If you are in debian unstable or testing, just do:
571
572 sudo apt-get install fades
573
574 For Arch Linux, you can install it from the **AUR** using any `AUR helper <https://wiki.archlinux.org/index.php/AUR_helpers>`_, e.g. with ``pikaur``:
575
576 pikaur -S fades
577
578 In systems with Snaps:
579
580 snap install fades --classic
581
582 (why `--classic`? Because it's the only way that `fades` could, from
583 inside the snap, access the rest of the system in case you want to
584 use a different Python version, or a dependency that needs
585 compilation, etc).
586
587 For Mac OS X (and `Homebrew <http://brew.sh/>`_):
588
589 brew install fades
590
591 Else, keep reading to know how to install the dependencies first, and
592 ``fades`` in your system next.
593
594
595 Dependencies
596 ------------
597
598 Besides needing Python 3.6 or greater, fades depends on the ``python-xdg`` package. This package should be installed on any GNU/Linux OS wiht a freedesktop.org GUI. However it is an **optional** dependency.
599
600 You can install it in Ubuntu/Debian with::
601
602 apt-get install python3-xdg
603
604 And on Arch Linux with::
605
606 pacman -S python-xdg
607
608
609 For others debian and ubuntu
610 ----------------------------
611
612 If you are NOT in debian unstable or testing (if you are, see
613 above for better instructions), you can use this
614 `.deb <http://ftp.debian.org/debian/pool/main/f/fades/fades_9.0.1-2_all.deb>`_.
615
616 Download it and install doing::
617
618 sudo dpkg -i fades_*.deb
619
620
621 Using pip if you want
622 ----------------------
623 ::
624
625 pip3 install fades
626
627
628 Multiplatform tarball
629 ---------------------
630
631 Finally you can always get the multiplatform tarball and install
632 it in the old fashion way::
633
634 wget http://ftp.debian.org/debian/pool/main/f/fades/fades_9.0.1.orig.tar.gz
635 tar -xf fades_*.tar.gz
636 cd fades-*
637 sudo ./setup.py install
638
639
640 Can I try it without installing it?
641 -----------------------------------
642
643 Yes! Branch the project and use the executable::
644
645 git clone https://github.com/PyAr/fades.git
646 cd fades
647 bin/fades your_script.py
648
649
650 What about Windows?
651 -------------------
652
653 Windows is a platform supported by fades.
654
655 However, we don't have a proper Windows installer (a ``.exe`` or
656 ``.msi``), but you can install it using ``pip``, or from the tarball,
657 or try it directly from the project. All these options are properly
658 described above.
659
660 We *do* want to have a Windows installer. If you can help us in this
661 regard, please contact us. Also we would want a Travis running in
662 Windows so that GitHub runs all the tests in this platform too before
663 landing any code. Thanks!
664
665
666 Get some help, give some feedback
667 =================================
668
669 You can ask any question or send any recommendation or request to
670 the `mailing list <http://listas.python.org.ar/mailman/listinfo/fades>`_.
671
672 Come chat with us on IRC. The #fades channel is located at the `Freenode <http://freenode.net/>`_ network.
673
674 Also, you can open an issue
675 `here <https://github.com/PyAr/fades/issues/new>`_ (please do if you
676 find any problem!).
677
678 Thanks in advance for your time.
679
680
681 How to develop fades itself
682 ===========================
683
684 Quick guide to get you up and running in fades development.
685
686
687 Getting the code
688 ----------------
689
690 Clone the project::
691
692 git clone [email protected]:PyAr/fades.git
693
694
695 Install dependencies
696 --------------------
697
698 *fades* manages it's own dependencies, so there is nothing extra you need to install.
699
700 To try it, just do::
701
702 bin/fades -V
703
704
705 How to run the tests
706 --------------------
707
708 When starting development, at all times, and specially before wrapping up
709 a new branch, you need to be sure that all tests pass ok.
710
711 This is very simple, actually, just run::
712
713 ./test
714
715 That will not only check test cases, but also that the code complies with
716 aesthetic recommendations, and that the README document has a proper format.
717
718 If you want to run *one* particular test, just specify it. Example::
719
720 ./test tests.test_main:DepsMergingTestCase.test_two_different
721
722
723 Development process
724 -------------------
725
726 Just pick an issue from `the list <https://github.com/PyAr/fades/issues>`_.
727
728 Develop, assure ``./test`` is happy, commit, push, create a pull request, etc.
729
730 Please, if you aim for creating a Pull Request with new code (functionality
731 or fixes), include tests for your changes.
732
733 Thanks! Enjoy.