I found a lot of value in https://www.recurse.com/blog/148-what-we-have-learned-from-seven-years-working-to-make-rc-50-percent-women Bergson-Shilcock's "Having a genuine community requires that people know the other people around them, and that everyone shares some fundamental values and purpose." I'd also say that, in what I would call a community, people take care of each other. These days I'm trying to avoid saying "community" when a more accurate word might be "constituency", "industry", "hobby group", "forum", etc.
One thing I learned from working on Python packaging infrastructure is that, in my opinion, it was not helpful to think of "the community"; there was an archipelago of groups, constituencies I needed to reach and work with. There was a set of people I was more likely to easily reach, and some of those people knew and took care of each other and shared some values and purpose.