Writes egg/dist info to files in directory `dirpath` or `self.root` if `None`.
(self, dirpath=None)
| 1167 | |
| 1168 | |
| 1169 | def _write_info(self, dirpath=None): |
| 1170 | ''' |
| 1171 | Writes egg/dist info to files in directory `dirpath` or `self.root` if |
| 1172 | `None`. |
| 1173 | ''' |
| 1174 | if dirpath is None: |
| 1175 | dirpath = self.root |
| 1176 | log2(f'Creating files in directory {dirpath}') |
| 1177 | os.makedirs(dirpath, exist_ok=True) |
| 1178 | with open(os.path.join(dirpath, 'PKG-INFO'), 'w') as f: |
| 1179 | f.write(self._metainfo()) |
| 1180 | |
| 1181 | # These don't seem to be required? |
| 1182 | # |
| 1183 | #with open(os.path.join(dirpath, 'SOURCES.txt', 'w') as f: |
| 1184 | # pass |
| 1185 | #with open(os.path.join(dirpath, 'dependency_links.txt', 'w') as f: |
| 1186 | # pass |
| 1187 | #with open(os.path.join(dirpath, 'top_level.txt', 'w') as f: |
| 1188 | # f.write(f'{self.name}\n') |
| 1189 | #with open(os.path.join(dirpath, 'METADATA', 'w') as f: |
| 1190 | # f.write(self._metainfo()) |
| 1191 | |
| 1192 | |
| 1193 | def handle_argv(self, argv): |
no test coverage detected