Get two-digit python version, e.g. 'cp3.8' for python-3.8.6.
(self)
| 900 | return f'{self.tag_python()}-{self.tag_abi()}-{self.tag_platform()}' |
| 901 | |
| 902 | def tag_python(self): |
| 903 | ''' |
| 904 | Get two-digit python version, e.g. 'cp3.8' for python-3.8.6. |
| 905 | ''' |
| 906 | if self.tag_python_: |
| 907 | ret = self.tag_python_ |
| 908 | else: |
| 909 | ret = 'cp' + ''.join(platform.python_version().split('.')[:2]) |
| 910 | assert '-' not in ret |
| 911 | return ret |
| 912 | |
| 913 | def tag_abi(self): |
| 914 | ''' |
no outgoing calls
no test coverage detected