There is a weekly pass. It's called
Abono turístico . It's so popular that ChrisR didn't know about it even though she lives in Madrid :p
In my opinion, it's expensive and, unless you travel a lot, you'll save money if you buy 10 trips tickets. Note that if you are staying somewhere in a central location you won't probably need public transportation.