About extending S3QL, when I have my backend ready how am I supposed to let S3QL know about it (even on URL parsing, etc.)?
I looked through some files and I believe I have to add it to s3ql/backends/__init__.py right? But do I need to do anything more? Once again thank you for your patience, Diogo Vieira On Dec 30, 2013, at 6:11 PM, Diogo Vieira <[email protected]> wrote: > On Dec 30, 2013, at 6:09 PM, Nikolaus Rath <[email protected]> wrote: > >> On 12/30/2013 10:06 AM, Diogo Vieira wrote: >>>> Diogo Vieira <[email protected]> writes: >>>>>>>> One thing I'm having difficulties with is understanding what should be >>>>>>>> the >>>>>>>> workflow during development. Having written scripts in Python before I >>>>>>>> know the >>>>>>>> syntax well, but I never really developed on open source software, >>>>>>>> especially when >>>>>>>> it comes to more than just a script. For now what I did was to >>>>>>>> download the source (which >>>>>>>> actually contains binaries) >>>>>> >>>>>> I very much doubt that. The s3ql-2.7.tar.bz2 does not contain any >>>>>> binaries. Are you sure you downloaded the right file? >>>>> >>>>> Sorry if didn't make myself clear. I meant the python scripts in the >>>>> bin folder. >>>> >>>> Well, these are scripts, not binaries, as you said yourself :-). >>>> >>>>> And I'm using the s3ql-1.17.tar.bz2. Should I use the other one (which >>>>> I believe needs python 3)? >>>> >>>> Yes, I strongly suggest to work on S3QL 2.x. The 1.x branch is >>>> maintenance mode only, i.e. a dead end. >>>> >>>>>>>> from the website and started to work on the src folder. But how would >>>>>>>> I actually iterate between development and testing? Imagine I start >>>>>>>> to create a new backend. How would I test my new backend? I'm sorry >>>>>>>> if I sound like a newbie, but in this matter I really am :) >>>>>> >>>>>> Best way would be to add unit tests (see tests/t1_backends.py) and run >>>>>> them with "py.test tests/". After that, try to use it in daily operation >>>>>> :-). >>>>> >>>>> Okay, I'll take a look and add my own files. but if I try to literally >>>>> run `py.test tests` in the root folder it doesn't work (maybe I got >>>>> something wrong?). >>>> >>>> Yes, you forgot to include the error message in your email. >>> >>> Well, it is just a "command not found". Is there a package I need to have >>> installed? >> >> Yes, you need to install pytest (http://pytest.org/). >> > > Oh ok, Didn't get it :) > >> >> Best, >> Nikolaus >> >> PS: Please don't send CC's to my personal address, I'm reading the list :-). >> > > I'm sorry, I just kept clicking in Reply All. This should now go only to the > list :) > > Once again thank you for your patience, > Diogo Vieira > > -- > You received this message because you are subscribed to the Google Groups > "s3ql" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "s3ql" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
