File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 17
17
exec (f .read ())
18
18
# Get the development status from the version string
19
19
parsed_version = str (parse_version (__version__ ))
20
- if any (w in ['*a' , '*alpha' ] for w in parsed_version ):
21
- devstatus = 'Development Status :: 3 - Alpha'
22
- elif any (w in ['*b' , '*beta' ] for w in parsed_version ):
20
+ # Parse the version string, looking for the "beta" suffix first, otherwise
21
+ # looking for the letter "a" will find one at the end of "beta" and flag it as
22
+ # an alpha version
23
+ if any (suffix in parsed_version for suffix in ['b' , 'beta' ]):
23
24
devstatus = 'Development Status :: 4 - Beta'
25
+ elif any (suffix in parsed_version for suffix in ['a' , 'alpha' ]):
26
+ devstatus = 'Development Status :: 3 - Alpha'
24
27
else :
25
28
devstatus = 'Development Status :: 5 - Production/Stable'
26
29
You can’t perform that action at this time.
0 commit comments