> 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?
>
>> BTW, when developing, after I update the code should I run `python
>> setup.py {build, Cython,build_ext}` and run the scripts in the bin
>> folder, if I mean to use it interactively (that is running the code I
>> changed)?
>
> As long as you don't touch the *.pyx files, there is no need to run
> setup.py. If you run the scripts in the bin/ folder, they'll pick up any
> changes automatically (and so do the tests).
>
> Best,
> Nikolaus
>
> --
> Encrypted emails preferred.
> PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
>
> »Time flies like an arrow, fruit flies like a Banana.«
>
> --
> 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.