How do I treat rental property repairs before placing it into service?

I purchased a property in the fall of 2016.  I made a few repairs and upgrades in 2016.  The property was placed in service in 2017.  Do I capitalize the repairs? If so, over what period do I capitalize them?