The four earliest (that I could find so far) interpretations of Revelation 12 either state or imply that the woman of Revelation 12 is not Mary. Irenaeus, for example, treats the dragon's attack as a still-future event, implying that the woman is not Mary.
Hippolytus, Methodius, and Victorinus are more explicit in identifying the woman as the Church.
Irenaeus (130-202), Against Heresies, Book II, Chapter XXI:
But they are altogether full of deceit of every kind, apostate inspiration, demoniacal working, and the phantasms of idolatry, and are in reality the predecessors of that dragon [Rev. xii. 14.] who, by means of a deception of the same kind, will with his tail cause a third part of the stars to fall from their place, and will cast them down to the earth.
Hippolytus (170-235), Treatise on Christ and Antichrist: (previously discussed here)
60. Now, concerning the tribulation of the persecution which is to fall upon the Church from the adversary, John also speaks thus: And I saw a great and wondrous sign in heaven; a woman clothed with the sun, and the moon under her feet, and upon her head a crown of twelve stars. And she, being with child, cries, travailing in birth, and pained to be delivered. And the dragon stood before the woman which was ready to be delivered, for to devour her child as soon as it was born. And she brought forth a man-child, who is to rule all the nations: and the child was caught up unto God and to His throne. And the woman fled into the wilderness, where she has the place prepared of God, that they should feed her there a thousand two hundred and threescore days. And then when the dragon saw it, he persecuted the woman which brought forth the man- child. And to the woman were given two wings of the great eagle, that she might fly into the wilderness, where she is nourished for a time, and times, and half a time, from the face of the serpent. And the serpent cast (out of his mouth water as a flood after the woman, that he might cause her to be carried away of the flood. And the earth helped the woman, and opened her mouth, and swallowed up the flood which the dragon cast) out of his mouth. And the dragon was angry with the woman, and went to make war with the saints of her seed, which keep the commandments of God, and have the testimony of Jesus.
61. By the woman then clothed with the sun, he meant most manifestly the Church, endued with the Father's word, whose brightness is above the sun. And by the moon under her feet he referred to her being adorned, like the moon, with heavenly glory. And the words, upon her head a crown of twelve stars, refer to the twelve apostles by whom the Church was founded. And those, she, being with child, cries, travailing in birth, and pained to be delivered, mean that the Church will not cease to bear from her heart the Word that is persecuted by the unbelieving in the world. And she brought forth, he says, a man-child, who is to rule all the nations; by which is meant that the Church, always bringing forth Christ, the perfect man-child of God, who is declared to be God and man, becomes the instructor of all the nations. And the words, her child was caught up unto God and to His throne, signify that he who is always born of her is a heavenly king, and not an earthly; even as David also declared of old when he said, The Lord said to my Lord, Sit at my right hand, until I make Your enemies Your footstool. And the dragon, he says, saw and persecuted the woman which brought forth the man- child. And to the woman were given two wings of the great eagle, that she might fly into the wilderness, where she is nourished for a time, and times, and half a time, from the face of the serpent. That refers to the one thousand two hundred and threescore days (the half of the week) during which the tyrant is to reign and persecute the Church, which flees from city to city, and seeks conceal-meat in the wilderness among the mountains, possessed of no other defense than the two wings of the great eagle, that is to say, the faith of Jesus Christ, who, in stretching forth His holy hands on the holy tree, unfolded two wings, the right and the left, and called to Him all who believed upon Him, and covered them as a hen her chickens. For by the mouth of Malachi also He speaks thus: And unto you that fear my name shall the Sun of righteousness arise with healing in His wings.
Methodius of Olympus (250-311) Banquet of the Ten Virgins, Discourse 8, Chapters 4-8 (previously discussed here in more detail) says that the woman is the Church.
The woman who appeared in heaven clothed with the sun, and crowned with twelve stars, and having the moon for her footstool, and being with child, and travailing in birth, is certainly, according to the accurate interpretation, our mother, O virgins, being a power by herself distinct from her children; whom the prophets, according to the aspect of their subjects, have called sometimes Jerusalem, sometimes a Bride, sometimes Mount Zion, and sometimes the Temple and Tabernacle of God. For she is the power which is desired to give light in the prophet, the Spirit crying to her: Isaiah 60:1-4 Arise, shine; for your light has come, and the glory of the Lord is risen upon you. For, behold, the darkness shall cover the earth, and gross darkness the people: but the Lord shall arise upon you, and His glory shall be seen upon you. And the Gentiles shall come to your light, and kings to the brightness of your rising. Lift up your eyes round about, and see; all they gather themselves together, they come to you: your sons shall come from far, and your daughters shall be nursed at your side. It is the Church whose children shall come to her with all speed after the resurrection, running to her from all quarters. She rejoices receiving the light which never goes down, and clothed with the brightness of the Word as with a robe. For with what other more precious or honorable ornament was it becoming that the queen should be adorned, to be led as a Bride to the Lord, when she had received a garment of light, and therefore was called by the Father? Come, then, let us go forward in our discourse, and look upon this marvelous woman as upon virgins prepared for a marriage, pure and undefiled, perfect and radiating a permanent beauty, wanting nothing of the brightness of light; and instead of a dress, clothed with light itself; and instead of precious stones, her head adorned with shining stars. For instead of the clothing which we have, she had light; and for gold and brilliant stones, she had stars; but stars not such as those which are set in the invisible heaven, but better and more resplendent, so that those may rather be considered as their images and likenesses.
Victorinus of Pettau (250-303) Commentary on the Apocalypse (previously discussed here) says that the woman is "the ancient Church of the fathers, and prophets, and saints, and apostles."
11:19. And the temple of God was opened which is in heaven. The temple opened is a manifestation of our Lord. For the temple of God is the Son, as He Himself says: Destroy this temple, and in three days I will raise it up. And when the Jews said, Forty and six years was this temple in building, the evangelist says, He spoke of the temple of His body.
And there was seen in His temple the ark of the Lord's testament. The preaching of the Gospel and the forgiveness of sins, and all the gifts whatever that came with Him, he says, appeared therein.
12:1. And there was seen a great sign in heaven. A woman clothed with the sun, and the moon under her feet, and on her head a crown of twelve stars. And being with child, she cried out travailing, and bearing torments that she might bring forth. The woman clothed with the sun, and having the moon under her feet, and wearing a crown of twelve stars upon her head, and travailing in her pains, is the ancient Church of fathers, and prophets, and saints, and apostles, which had the groans and torments of its longing until it saw that Christ, the fruit of its people according to the flesh long promised to it, had taken flesh out of the selfsame people. Moreover, being clothed with the sun intimates the hope of resurrection and the glory of the promise. And the moon intimates the fall of the bodies of the saints under the obligation of death, which never can fail. For even as life is diminished, so also it is increased. Nor is the hope of those that sleep extinguished absolutely, as some think, but they have in their darkness a light such as the moon. And the crown of twelve stars signifies the choir of fathers, according to the fleshly birth, of whom Christ was to take flesh.