Skip to content

Commit

Permalink
Add docstring for version_files
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Apr 9, 2023
1 parent 88b0224 commit a5f2ced
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flit_core/flit_core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ def file(self):

@property
def version_files(self):
"""Files which will be parsed to find a version number
Files later in this list take precedence over earlier ones.
"""
if self.is_package:
paths = [self.path / '__init__.py']
for filename in ('version.py', '_version.py', '__version__.py'):
Expand Down

0 comments on commit a5f2ced

Please sign in to comment.