I sold a rental property in 2020. I had a LOT of repairs AND upgrades before selling. Are any of those tax deductable? If so, where does the sale AND deductions go?

In ADDITION, the property was sold in December 2020, but I did a 1031 Exchange and the replacement property was purchased with a 1031 in 2021 (February).  How is that reported in TT?