How to use os_name method in testcontainers-python

Best Python code snippet using testcontainers-python_python

operating_system_dict.py

Source:operating_system_dict.py Github

copy

Full Screen

1os_names = [{'os_maker': 'Acorn Computers', 'os_name': 'Arthur'},2 {'os_maker': 'Acorn Computers', 'os_name': 'ARX'},3 {'os_maker': 'Acorn Computers', 'os_name': 'MOS'},4 {'os_maker': 'Acorn Computers', 'os_name': 'RISC iX'},5 {'os_maker': 'Acorn Computers', 'os_name': 'RISC OS'},6 {'os_maker': 'Amazon', 'os_name': 'Fire OS'},7 {'os_maker': 'Amiga Inc.', 'os_name': 'AmigaOS'},8 {'os_maker': 'Amiga Inc.', 'os_name': 'AmigaOS 1.0-3.9'},9 {'os_maker': 'Amiga Inc.', 'os_name': 'AmigaOS 4'},10 {'os_maker': 'Amiga Inc.', 'os_name': 'Amiga Unix'},11 {'os_maker': 'Amstrad', 'os_name': 'AMSDOS'},12 {'os_maker': 'Amstrad', 'os_name': 'Contiki'},13 {'os_maker': 'Amstrad', 'os_name': 'CP/M 2.2'},14 {'os_maker': 'Amstrad', 'os_name': 'CP/M Plus'},15 {'os_maker': 'Amstrad', 'os_name': 'SymbOS'},16 {'os_maker': 'Apple Inc.', 'os_name': 'Apple II'},17 {'os_maker': 'Apple Inc.', 'os_name': 'Apple DOS'},18 {'os_maker': 'Apple Inc.', 'os_name': 'Apple Pascal'},19 {'os_maker': 'Apple Inc.', 'os_name': 'ProDOS'},20 {'os_maker': 'Apple Inc.', 'os_name': 'GS/OS'},21 {'os_maker': 'Apple Inc.', 'os_name': 'GNO/ME'},22 {'os_maker': 'Apple Inc.', 'os_name': 'Contiki'},23 {'os_maker': 'Apple Inc.', 'os_name': 'Apple III'},24 {'os_maker': 'Apple Inc.', 'os_name': 'Apple SOS'},25 {'os_maker': 'Apple Inc.', 'os_name': 'Apple Lisa'},26 {'os_maker': 'Apple Inc.', 'os_name': 'Apple Macintosh'},27 {'os_maker': 'Apple Inc.', 'os_name': 'Classic Mac OS'},28 {'os_maker': 'Apple Inc.', 'os_name': 'A/UX'},29 {'os_maker': 'Apple Inc.', 'os_name': 'UNIX System V'},30 {'os_maker': 'Apple Inc.', 'os_name': 'BSD'},31 {'os_maker': 'Apple Inc.', 'os_name': 'Copland'},32 {'os_maker': 'Apple Inc.', 'os_name': 'MkLinux'},33 {'os_maker': 'Apple Inc.', 'os_name': 'Pink'},34 {'os_maker': 'Apple Inc.', 'os_name': 'Rhapsody'},35 {'os_maker': 'Apple Inc.', 'os_name': 'macOS'},36 {'os_maker': 'Apple Inc.', 'os_name': 'macOS Server'},37 {'os_maker': 'Apple Inc.', 'os_name': 'Apple Network Server'},38 {'os_maker': 'Apple Inc.', 'os_name': 'IBM AIX'},39 {'os_maker': 'Apple Inc.', 'os_name': 'Apple MessagePad'},40 {'os_maker': 'Apple Inc.', 'os_name': 'Newton OS'},41 {'os_maker': 'Apple Inc.', 'os_name': 'iPhone'},42 {'os_maker': 'Apple Inc.', 'os_name': 'iPod Touch'},43 {'os_maker': 'Apple Inc.', 'os_name': 'iOS'},44 {'os_maker': 'Apple Inc.', 'os_name': 'iPad'},45 {'os_maker': 'Apple Inc.', 'os_name': 'iPadOS'},46 {'os_maker': 'Apple Inc.', 'os_name': 'Apple Watch'},47 {'os_maker': 'Apple Inc.', 'os_name': 'watchOS'},48 {'os_maker': 'Apple Inc.', 'os_name': 'Apple TV'},49 {'os_maker': 'Apple Inc.', 'os_name': 'tvOS'},50 {'os_maker': 'Apple Inc.', 'os_name': 'A/ROSE'},51 {'os_maker': 'Apple Inc.', 'os_name': 'bridgeOS'},52 {'os_maker': 'Apple Inc.', 'os_name': 'iPod faker_software'},53 {'os_maker': 'Apple Inc.', 'os_name': 'iPod'},54 {'os_maker': 'Apple Inc.', 'os_name': 'NetBSD'},55 {'os_maker': 'Apple Inc.', 'os_name': 'Airport Extreme'},56 {'os_maker': 'Apple Inc.', 'os_name': 'Time Capsule'},57 {'os_maker': '', 'os_name': 'Domain/OS'},58 {'os_maker': '', 'os_name': 'Apollo/Domain'},59 {'os_maker': '', 'os_name': 'Hewlett-Packard'},60 {'os_maker': 'Atari', 'os_name': 'Atari DOS'},61 {'os_maker': 'Atari', 'os_name': 'Atari TOS'},62 {'os_maker': 'Atari', 'os_name': 'Atari MultiTOS'},63 {'os_maker': 'Atari', 'os_name': 'Contiki'},64 {'os_maker': 'BAE Systems', 'os_name': 'XTS-400'},65 {'os_maker': 'Be Inc.', 'os_name': 'BeOS'},66 {'os_maker': 'Be Inc.', 'os_name': 'BeIA'},67 {'os_maker': 'Be Inc.', 'os_name': 'BeOS r5.1d0'},68 {'os_maker': 'Be Inc.', 'os_name': 'magnussoft ZETA'},69 {'os_maker': 'Be Inc.', 'os_name': 'BeOS r5.1d0'},70 {'os_maker': 'Be Inc.', 'os_name': 'yellowTAB'},71 {'os_maker': 'Bell Labs', 'os_name': 'Unix'},72 {'os_maker': 'Bell Labs', 'os_name': 'Ken Thompson'},73 {'os_maker': 'Bell Labs', 'os_name': 'Unix family'},74 {'os_maker': 'Bell Labs', 'os_name': 'UNIX Time-Sharing System v6'},75 {'os_maker': 'Bell Labs', 'os_name': 'PWB/UNIX'},76 {'os_maker': 'Bell Labs', 'os_name': 'CB Unix'},77 {'os_maker': 'Bell Labs', 'os_name': 'UNIX Time-Sharing System v7'},78 {'os_maker': 'Bell Labs', 'os_name': 'Unix System III'},79 {'os_maker': 'Bell Labs', 'os_name': 'Unix System V'},80 {'os_maker': 'Bell Labs', 'os_name': 'UNIX Time-Sharing System v8'},81 {'os_maker': 'Bell Labs', 'os_name': 'UNIX Time-Sharing System v9'},82 {'os_maker': 'Bell Labs', 'os_name': 'UNIX Time-Sharing System v10'},83 {'os_maker': '', 'os_name': 'Burroughs MCP'},84 {'os_maker': 'Commodore International', 'os_name': 'GEOS'},85 {'os_maker': 'Commodore International', 'os_name': 'AmigaOS'},86 {'os_maker': 'Commodore International',87 'os_name': 'AROS Research Operating System'},88 {'os_maker': 'CloudMosa', 'os_name': 'Puffin OS'},89 {'os_maker': 'Convergent Technologies',90 'os_name': 'Convergent Technologies Operating System'},91 {'os_maker': 'Convergent Technologies', 'os_name': 'Unisys'},92 {'os_maker': 'Cromemco', 'os_name': 'Cromemco DOS'},93 {'os_maker': 'Cromemco', 'os_name': 'CP/M'},94 {'os_maker': 'Cromemco', 'os_name': 'Cromix'},95 {'os_maker': 'Cromemco', 'os_name': 'Unix'},96 {'os_maker': 'Cromemco', 'os_name': 'Cromemco'},97 {'os_maker': 'Cromemco', 'os_name': 'Z80A'},98 {'os_maker': 'Cromemco', 'os_name': '68000'},99 {'os_maker': 'Data General', 'os_name': 'AOS'},100 {'os_maker': 'Data General', 'os_name': 'Data General Eclipse'},101 {'os_maker': 'Data General', 'os_name': 'AOS/VS'},102 {'os_maker': 'Data General', 'os_name': 'DG/UX'},103 {'os_maker': 'Data General', 'os_name': 'RDOS'},104 {'os_maker': 'Data General', 'os_name': 'PC DOS'},105 {'os_maker': 'Data General', 'os_name': 'MS-DOS'},106 {'os_maker': 'Datapoint', 'os_name': 'Datapoint 2200'},107 {'os_maker': '', 'os_name': 'Deos'},108 {'os_maker': '', 'os_name': 'HeartOS'},109 {'os_maker': '', 'os_name': 'CP/M'},110 {'os_maker': '', 'os_name': 'CP/M'},111 {'os_maker': '', 'os_name': 'Intel 8080'},112 {'os_maker': '', 'os_name': '8085'},113 {'os_maker': '', 'os_name': 'Zilog Z80'},114 {'os_maker': '', 'os_name': 'Personal CP/M'},115 {'os_maker': '', 'os_name': 'CP/M Plus'},116 {'os_maker': '', 'os_name': 'CP/M-68K'},117 {'os_maker': '', 'os_name': 'Motorola 68000'},118 {'os_maker': '', 'os_name': 'CP/M-8000'},119 {'os_maker': '', 'os_name': 'Zilog Z8000'},120 {'os_maker': '', 'os_name': 'CP/M-86'},121 {'os_maker': '', 'os_name': 'Intel 8088'},122 {'os_maker': '', 'os_name': '8086'},123 {'os_maker': '', 'os_name': 'CP/M-86 Plus'},124 {'os_maker': '', 'os_name': 'Personal CP/M-86'},125 {'os_maker': '', 'os_name': 'MP/M'},126 {'os_maker': '', 'os_name': 'MP/M II'},127 {'os_maker': '', 'os_name': 'MP/M-86'},128 {'os_maker': '', 'os_name': 'MP/M 8-16'},129 {'os_maker': '', 'os_name': 'Concurrent CP/M'},130 {'os_maker': '', 'os_name': 'Concurrent CP/M-86'},131 {'os_maker': '', 'os_name': 'Concurrent CP/M 8-16'},132 {'os_maker': '', 'os_name': 'Concurrent CP/M-68K'},133 {'os_maker': '', 'os_name': 'DOS'},134 {'os_maker': '', 'os_name': 'Concurrent DOS'},135 {'os_maker': '', 'os_name': 'Concurrent PC DOS'},136 {'os_maker': '', 'os_name': 'Concurrent DOS 8-16'},137 {'os_maker': '', 'os_name': 'Concurrent DOS 286'},138 {'os_maker': '', 'os_name': 'Concurrent DOS XM'},139 {'os_maker': '', 'os_name': 'Concurrent DOS 386'},140 {'os_maker': '', 'os_name': 'Concurrent DOS 386/MGE'},141 {'os_maker': '', 'os_name': 'Concurrent DOS 68K'},142 {'os_maker': '', 'os_name': 'FlexOS'},143 {'os_maker': '', 'os_name': 'FlexOS 186'},144 {'os_maker': '', 'os_name': 'FlexOS 286'},145 {'os_maker': '', 'os_name': 'Siemens S5-DOS/MT'},146 {'os_maker': '', 'os_name': 'IBM 4680 OS'},147 {'os_maker': '', 'os_name': 'POS'},148 {'os_maker': '', 'os_name': 'IBM 4690 OS'},149 {'os_maker': '', 'os_name': 'Toshiba 4690 OS'},150 {'os_maker': '', 'os_name': 'FlexOS 386'},151 {'os_maker': '', 'os_name': 'IBM 4690 OS'},152 {'os_maker': '', 'os_name': 'Toshiba 4690 OS'},153 {'os_maker': '', 'os_name': 'FlexOS 68K'},154 {'os_maker': '', 'os_name': 'Multiuser DOS'},155 {'os_maker': '', 'os_name': 'CCI Multiuser DOS'},156 {'os_maker': '', 'os_name': 'Datapac Multiuser DOS'},157 {'os_maker': '', 'os_name': 'Datapac System Manager'},158 {'os_maker': '', 'os_name': 'IMS Multiuser DOS'},159 {'os_maker': '', 'os_name': 'REAL/32'},160 {'os_maker': '', 'os_name': 'REAL/NG'},161 {'os_maker': '', 'os_name': 'DOS Plus'},162 {'os_maker': '', 'os_name': 'DR-DOS'},163 {'os_maker': '', 'os_name': 'PalmDOS'},164 {'os_maker': '', 'os_name': '"Star Trek"'},165 {'os_maker': '', 'os_name': 'Novell DOS'},166 {'os_maker': '', 'os_name': 'OpenDOS'},167 {'os_maker': '', 'os_name': 'DR-DOS'},168 {'os_maker': '', 'os_name': 'Batch-11/DOS-11'},169 {'os_maker': '', 'os_name': 'OS/8'},170 {'os_maker': '', 'os_name': 'RSTS/E'},171 {'os_maker': '', 'os_name': 'PDP-11s'},172 {'os_maker': '', 'os_name': 'RSX-11'},173 {'os_maker': '', 'os_name': 'RT-11'},174 {'os_maker': '', 'os_name': 'TOPS-10'},175 {'os_maker': '', 'os_name': 'TENEX'},176 {'os_maker': '', 'os_name': 'TOPS-20'},177 {'os_maker': '', 'os_name': 'BBN'},178 {'os_maker': '', 'os_name': 'TOPS-20'},179 {'os_maker': '', 'os_name': 'DEC MICA'},180 {'os_maker': '', 'os_name': 'DEC PRISM'},181 {'os_maker': '', 'os_name': 'Digital UNIX'},182 {'os_maker': '', 'os_name': 'Tru64 UNIX'},183 {'os_maker': '', 'os_name': 'Ultrix'},184 {'os_maker': '', 'os_name': 'VMS'},185 {'os_maker': '', 'os_name': 'DEC'},186 {'os_maker': '', 'os_name': 'VAX'},187 {'os_maker': '', 'os_name': 'Alpha'},188 {'os_maker': '', 'os_name': 'Itanium i2 and i4'},189 {'os_maker': '', 'os_name': 'WAITS'},190 {'os_maker': 'ENEA AB', 'os_name': 'OSE'},191 {'os_maker': 'Fujitsu', 'os_name': 'Towns OS'},192 {'os_maker': 'Fujitsu', 'os_name': 'OS/IV'},193 {'os_maker': 'Fujitsu', 'os_name': 'MSP'},194 {'os_maker': 'Fujitsu', 'os_name': 'MSP-EX'},195 {'os_maker': '',196 'os_name': 'Real-Time Multiprogramming Operating System'},197 {'os_maker': '', 'os_name': 'GCOS'},198 {'os_maker': '', 'os_name': 'Multics'},199 {'os_maker': 'Green Hills Software', 'os_name': 'INTEGRITY'},200 {'os_maker': 'Green Hills Software', 'os_name': 'INTEGRITY-178B'},201 {'os_maker': 'Green Hills Software', 'os_name': 'INTEGRITY'},202 {'os_maker': 'Green Hills Software', 'os_name': 'µ-velOSity'},203 {'os_maker': 'Green Hills Software', 'os_name': 'microkernel'},204 {'os_maker': 'Harris Corporation', 'os_name': 'Vulcan O/S'},205 {'os_maker': 'Harris Corporation', 'os_name': 'Harris UNIX'},206 {'os_maker': '', 'os_name': 'HDOS'},207 {'os_maker': '', 'os_name': 'H8'},208 {'os_maker': '', 'os_name': 'Zenith Z-89'},209 {'os_maker': '', 'os_name': 'HT-11'},210 {'os_maker': '', 'os_name': 'RT-11'},211 {'os_maker': '', 'os_name': 'Heathkit H11'},212 {'os_maker': '', 'os_name': 'HP Multi-Programming Executive'},213 {'os_maker': '', 'os_name': 'HP-UX'},214 {'os_maker': 'Honeywell', 'os_name': 'CP-6'},215 {'os_maker': 'Huawei', 'os_name': 'Harmony OS'},216 {'os_maker': 'Huawei', 'os_name': 'LiteOS'},217 {'os_maker': 'Intel Corporation', 'os_name': 'iRMX'},218 {'os_maker': 'Intel Corporation', 'os_name': 'ISIS'},219 {'os_maker': 'Intel Corporation', 'os_name': 'ISIS-II'},220 {'os_maker': 'Intel Corporation', 'os_name': 'Intellec'},221 {'os_maker': 'Intel Corporation', 'os_name': 'PL/M'},222 {'os_maker': 'International Computers Limited', 'os_name': 'J'},223 {'os_maker': 'International Computers Limited', 'os_name': 'MultiJob'},224 {'os_maker': 'International Computers Limited', 'os_name': 'GEORGE'},225 {'os_maker': 'International Computers Limited', 'os_name': 'ICL'},226 {'os_maker': 'International Computers Limited',227 'os_name': '1900 series'},228 {'os_maker': 'International Computers Limited', 'os_name': 'Executive'},229 {'os_maker': 'International Computers Limited', 'os_name': 'TME'},230 {'os_maker': 'International Computers Limited', 'os_name': 'ICL VME'},231 {'os_maker': 'International Computers Limited',232 'os_name': 'ICL 2900 Series'},233 {'os_maker': 'International Computers Limited', 'os_name': 'S3'},234 {'os_maker': 'International Computers Limited', 'os_name': 'VME/K'},235 {'os_maker': 'Jide', 'os_name': 'Remix OS'},236 {'os_maker': 'Jolla', 'os_name': 'Sailfish OS'},237 {'os_maker': 'KaiOS', 'os_name': 'KaiOS'},238 {'os_maker': '', 'os_name': 'LynxOS'},239 {'os_maker': 'Meizu', 'os_name': 'Flyme OS'},240 {'os_maker': 'Micrium Inc.', 'os_name': 'MicroC/OS-II'},241 {'os_maker': 'Micrium Inc.', 'os_name': 'MicroC/OS-III'},242 {'os_maker': 'Microsoft Corporation', 'os_name': 'Xenix'},243 {'os_maker': 'Microsoft Corporation', 'os_name': 'SCO'},244 {'os_maker': 'Microsoft Corporation', 'os_name': 'MS-DOS'},245 {'os_maker': 'Microsoft Corporation', 'os_name': 'MSX-DOS'},246 {'os_maker': 'Microsoft Corporation', 'os_name': 'DOS/V'},247 {'os_maker': 'Microsoft Corporation', 'os_name': 'OS/2'},248 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows'},249 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 1.0'},250 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 2.0'},251 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 3.0'},252 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 3.1x'},253 {'os_maker': 'Microsoft Corporation',254 'os_name': 'Windows for Workgroups 3.1'},255 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 3.2'},256 {'os_maker': 'Microsoft Corporation',257 'os_name': 'Windows for Workgroups 3.11'},258 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 95'},259 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 98'},260 {'os_maker': 'Microsoft Corporation',261 'os_name': 'Windows Millennium Edition'},262 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows NT'},263 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows NT 3.1'},264 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows NT 3.5'},265 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows NT 3.51'},266 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows NT 4.0'},267 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 2000'},268 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows XP'},269 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Server 2003'},270 {'os_maker': 'Microsoft Corporation',271 'os_name': 'Windows Fundamentals for Legacy PCs'},272 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Vista'},273 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Azure'},274 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Home Server'},275 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Server 2008'},276 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 7'},277 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Phone 7'},278 {'os_maker': 'Microsoft Corporation',279 'os_name': 'Windows Server 2008 R2'},280 {'os_maker': 'Microsoft Corporation',281 'os_name': 'Windows Home Server 2011'},282 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 8'},283 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows RT'},284 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Phone 8'},285 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Server 2012'},286 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 8.1'},287 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Phone 8.1'},288 {'os_maker': 'Microsoft Corporation',289 'os_name': 'Windows Server 2012 R2'},290 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 10'},291 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 10 Mobile'},292 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Server 2016'},293 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Server 2019'},294 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows 11'},295 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows CE'},296 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows CE 3.0'},297 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows CE 5.0'},298 {'os_maker': 'Microsoft Corporation',299 'os_name': 'Windows Embedded CE 6.0'},300 {'os_maker': 'Microsoft Corporation',301 'os_name': 'Windows Embedded Compact 7'},302 {'os_maker': 'Microsoft Corporation',303 'os_name': 'Windows Embedded Compact 2013'},304 {'os_maker': 'Microsoft Corporation', 'os_name': 'Windows Mobile'},305 {'os_maker': 'Microsoft Corporation', 'os_name': 'Singularity'},306 {'os_maker': 'Microsoft Corporation', 'os_name': 'managed code'},307 {'os_maker': 'Microsoft Corporation', 'os_name': 'C#'},308 {'os_maker': 'Microsoft Corporation', 'os_name': 'Midori'},309 {'os_maker': 'Microsoft Corporation', 'os_name': 'Xbox system faker_software'},310 {'os_maker': 'Microsoft Corporation',311 'os_name': 'Xbox 360 system faker_software'},312 {'os_maker': 'Microsoft Corporation',313 'os_name': 'Xbox One system faker_software'},314 {'os_maker': 'Microsoft Corporation', 'os_name': 'Azure Sphere'},315 {'os_maker': 'Microsoft Corporation', 'os_name': 'ThreadX'},316 {'os_maker': 'MITS', 'os_name': 'Altair DOS'},317 {'os_maker': 'MITS', 'os_name': 'Altair 8800'},318 {'os_maker': 'MITS', 'os_name': 'citation needed'},319 {'os_maker': 'MontaVista', 'os_name': 'Mobilinux'},320 {'os_maker': 'NCR Corporation', 'os_name': 'TMX'},321 {'os_maker': 'NCR Corporation', 'os_name': 'IMOS'},322 {'os_maker': 'NCR Corporation', 'os_name': 'citation needed'},323 {'os_maker': 'NCR Corporation', 'os_name': 'VRX'},324 {'os_maker': 'Nintendo', 'os_name': 'ES'},325 {'os_maker': 'NeXT', 'os_name': 'NeXTSTEP'},326 {'os_maker': 'Novell', 'os_name': 'NetWare'},327 {'os_maker': 'Novell', 'os_name': 'UnixWare'},328 {'os_maker': 'Novell', 'os_name': 'Novell "SuperNOS"'},329 {'os_maker': 'Novell', 'os_name': 'Novell "Corsair"'},330 {'os_maker': 'Novell', 'os_name': 'Novell "Exposé"'},331 {'os_maker': 'Novell', 'os_name': 'Open Enterprise Server'},332 {'os_maker': 'Open Mobile Platform', 'os_name': 'Aurora OS'},333 {'os_maker': 'Open Mobile Platform', 'os_name': 'Aurora OS'},334 {'os_maker': 'Quadros Systems', 'os_name': 'RTXC Quadros'},335 {'os_maker': 'RCA', 'os_name': 'Time Sharing Operating System'},336 {'os_maker': 'RoweBots', 'os_name': 'DSPnano RTOS'},337 {'os_maker': 'Samsung Electronics', 'os_name': 'Bada'},338 {'os_maker': 'Samsung Electronics', 'os_name': 'Tizen'},339 {'os_maker': 'Samsung Electronics', 'os_name': 'Orsay'},340 {'os_maker': 'Samsung Electronics', 'os_name': 'One UI'},341 {'os_maker': 'Sinclair Research', 'os_name': 'Sinclair BASIC'},342 {'os_maker': 'Sinclair Research', 'os_name': 'Sinclair Research'},343 {'os_maker': 'Sinclair Research', 'os_name': 'Timex Sinclair'},344 {'os_maker': '', 'os_name': 'Xenix'},345 {'os_maker': '', 'os_name': 'Xenix'},346 {'os_maker': '', 'os_name': 'Xenix'},347 {'os_maker': '', 'os_name': 'SCO Unix'},348 {'os_maker': '', 'os_name': 'SCO Open Desktop'},349 {'os_maker': '', 'os_name': 'SCO Unix'},350 {'os_maker': '', 'os_name': 'SCO OpenServer'},351 {'os_maker': '', 'os_name': 'SCO OpenServer'},352 {'os_maker': '', 'os_name': 'UnixWare'},353 {'os_maker': '', 'os_name': 'UnixWare'},354 {'os_maker': '', 'os_name': 'UnixWare'},355 {'os_maker': '', 'os_name': 'SCO'},356 {'os_maker': '', 'os_name': 'Berkeley Timesharing System'},357 {'os_maker': '', 'os_name': 'SDS 940'},358 {'os_maker': 'SYSGO', 'os_name': 'PikeOS'},359 {'os_maker': '', 'os_name': 'NonStop OS'},360 {'os_maker': 'Tandy Corporation', 'os_name': 'TRSDOS'},361 {'os_maker': 'Tandy Corporation', 'os_name': 'TRS-80'},362 {'os_maker': 'Tandy Corporation', 'os_name': 'Color BASIC'},363 {'os_maker': 'Tandy Corporation', 'os_name': 'TRS-80 Color Computer'},364 {'os_maker': 'Tandy Corporation', 'os_name': 'NewDos/80'},365 {'os_maker': 'Tandy Corporation', 'os_name': 'DeskMate'},366 {'os_maker': 'Tandy Corporation', 'os_name': 'Tandy 1000'},367 {'os_maker': 'Tandy Corporation', 'os_name': 'citation needed'},368 {'os_maker': '', 'os_name': 'Edos'},369 {'os_maker': '', 'os_name': 'DOS/360'},370 {'os_maker': '', 'os_name': 'DOS/VS'},371 {'os_maker': '', 'os_name': 'DOS/VSE'},372 {'os_maker': '', 'os_name': 'System/360'},373 {'os_maker': '', 'os_name': 'System/370'},374 {'os_maker': 'Texas Instruments', 'os_name': 'TI-RTOS Kernel'},375 {'os_maker': 'TRON Project', 'os_name': 'TRON'},376 {'os_maker': 'TRON Project', 'os_name': 'real-time operating system'},377 {'os_maker': 'TRON Project', 'os_name': 'kernel'},378 {'os_maker': 'TRON Project', 'os_name': 'T-Kernel'},379 {'os_maker': '', 'os_name': 'EXEC I'},380 {'os_maker': '', 'os_name': 'EXEC II'},381 {'os_maker': '', 'os_name': 'EXEC 8'},382 {'os_maker': '', 'os_name': 'OS 2200'},383 {'os_maker': '', 'os_name': 'VS/9'},384 {'os_maker': '', 'os_name': 'RCA TSOS'},385 {'os_maker': 'Wang Laboratories', 'os_name': 'WPS'},386 {'os_maker': 'Wang Laboratories', 'os_name': 'OIS'},387 {'os_maker': 'Wind River Systems', 'os_name': 'VxWorks'},388 {'os_maker': 'Zilog', 'os_name': 'Z80-RIO'},389 {'os_maker': 'Unix or Unix-like', 'os_name': 'MINIX'},390 {'os_maker': 'Unix or Unix-like', 'os_name': 'Andrew S. Tanenbaum'},391 {'os_maker': 'Unix or Unix-like', 'os_name': 'Netherlands'},392 {'os_maker': 'Unix or Unix-like', 'os_name': 'BSD'},393 {'os_maker': 'Unix or Unix-like', 'os_name': 'DEC'},394 {'os_maker': 'Unix or Unix-like', 'os_name': 'VAX'},395 {'os_maker': 'Unix or Unix-like', 'os_name': 'FreeBSD'},396 {'os_maker': 'Unix or Unix-like', 'os_name': 'CSRG'},397 {'os_maker': 'Unix or Unix-like', 'os_name': 'DragonFlyBSD'},398 {'os_maker': 'Unix or Unix-like', 'os_name': 'MidnightBSD'},399 {'os_maker': 'Unix or Unix-like', 'os_name': 'GhostBSD'},400 {'os_maker': 'Unix or Unix-like', 'os_name': 'TrueOS'},401 {'os_maker': 'Unix or Unix-like', 'os_name': 'NetBSD'},402 {'os_maker': 'Unix or Unix-like', 'os_name': 'OpenBSD'},403 {'os_maker': 'Unix or Unix-like', 'os_name': 'Bitrig'},404 {'os_maker': 'Unix or Unix-like', 'os_name': 'Darwin'},405 {'os_maker': 'Unix or Unix-like', 'os_name': 'GNU'},406 {'os_maker': 'Unix or Unix-like', 'os_name': 'Linux'},407 {'os_maker': 'Unix or Unix-like',408 'os_name': 'List of Linux distributions'},409 {'os_maker': 'Unix or Unix-like',410 'os_name': 'GNU/Linux naming controversy'},411 {'os_maker': 'Unix or Unix-like', 'os_name': 'Android'},412 {'os_maker': 'Unix or Unix-like', 'os_name': 'Android-x86'},413 {'os_maker': 'Unix or Unix-like', 'os_name': 'Remix OS'},414 {'os_maker': 'Unix or Unix-like', 'os_name': 'Redox'},415 {'os_maker': 'Unix or Unix-like', 'os_name': 'OpenSolaris'},416 {'os_maker': 'Unix or Unix-like', 'os_name': 'illumos'},417 {'os_maker': 'Unix or Unix-like', 'os_name': 'OpenSolaris'},418 {'os_maker': 'Unix or Unix-like', 'os_name': 'Solaris'},419 {'os_maker': 'Unix or Unix-like', 'os_name': 'OpenIndiana'},420 {'os_maker': 'Unix or Unix-like', 'os_name': 'OS/Net'},421 {'os_maker': 'Unix or Unix-like', 'os_name': 'OpenSolaris'},422 {'os_maker': 'Unix or Unix-like', 'os_name': 'Solaris'},423 {'os_maker': 'Unix or Unix-like', 'os_name': 'Nexenta OS'},424 {'os_maker': 'Unix or Unix-like', 'os_name': 'SmartOS'},425 {'os_maker': 'Unix or Unix-like',426 'os_name': 'Kernel-based Virtual Machine'},427 {'os_maker': 'Unix or Unix-like', 'os_name': 'RTEMS'},428 {'os_maker': 'Unix or Unix-like', 'os_name': 'Syllable Desktop'},429 {'os_maker': 'Unix or Unix-like', 'os_name': 'VSTa'},430 {'os_maker': 'Unix or Unix-like', 'os_name': 'Plurix'},431 {'os_maker': 'Unix or Unix-like',432 'os_name': 'Federal University of Rio de Janeiro'},433 {'os_maker': 'Unix or Unix-like', 'os_name': 'TUNIS'},434 {'os_maker': 'Unix or Unix-like', 'os_name': 'Xv6'},435 {'os_maker': 'Unix or Unix-like', 'os_name': 'SerenityOS'},436 {'os_maker': 'Unix or Unix-like', 'os_name': 'Microsoft Windows'},437 {'os_maker': 'Unix or Unix-like', 'os_name': 'Mac OS'},438 {'os_maker': 'Non-Unix', 'os_name': 'Cosmos'},439 {'os_maker': 'Non-Unix', 'os_name': 'FreeDOS'},440 {'os_maker': 'Non-Unix', 'os_name': 'Genode'},441 {'os_maker': 'Non-Unix', 'os_name': 'Ghost OS'},442 {'os_maker': 'Non-Unix', 'os_name': 'Haiku'},443 {'os_maker': 'Non-Unix', 'os_name': 'BeOS'},444 {'os_maker': 'Non-Unix', 'os_name': 'Incompatible Timesharing System'},445 {'os_maker': 'Non-Unix', 'os_name': 'macro assembler'},446 {'os_maker': 'Non-Unix', 'os_name': 'PDP-6'},447 {'os_maker': 'Non-Unix', 'os_name': 'PDP-10'},448 {'os_maker': 'Non-Unix', 'os_name': 'MIT'},449 {'os_maker': 'Non-Unix', 'os_name': 'osFree'},450 {'os_maker': 'Non-Unix', 'os_name': 'OSv'},451 {'os_maker': 'Non-Unix', 'os_name': 'Phantom OS'},452 {'os_maker': 'Non-Unix', 'os_name': 'ReactOS'},453 {'os_maker': 'Non-Unix', 'os_name': 'Windows NT'},454 {'os_maker': 'Non-Unix', 'os_name': 'Windows XP'},455 {'os_maker': 'Non-Unix', 'os_name': 'Windows 2000'},456 {'os_maker': 'Non-Unix', 'os_name': 'SharpOS'},457 {'os_maker': 'Non-Unix', 'os_name': 'TempleOS'},458 {'os_maker': 'Non-Unix', 'os_name': 'Visopsys'},459 {'os_maker': 'Unix or Unix-like', 'os_name': 'Plan 9 from Bell Labs'},460 {'os_maker': 'Unix or Unix-like', 'os_name': 'Bell Labs'},461 {'os_maker': 'Unix or Unix-like', 'os_name': 'Inferno'},462 {'os_maker': 'Unix or Unix-like', 'os_name': 'Research Unix'},463 {'os_maker': 'Non-Unix', 'os_name': 'Amoeba'},464 {'os_maker': 'Non-Unix', 'os_name': 'Andrew S. Tanenbaum'},465 {'os_maker': 'Non-Unix', 'os_name': 'Barrelfish'},466 {'os_maker': 'Non-Unix', 'os_name': 'Croquet'},467 {'os_maker': 'Non-Unix', 'os_name': 'EROS'},468 {'os_maker': 'Non-Unix', 'os_name': 'CapROS'},469 {'os_maker': 'Non-Unix', 'os_name': 'Harmony'},470 {'os_maker': 'Non-Unix', 'os_name': 'HelenOS'},471 {'os_maker': 'Non-Unix', 'os_name': 'House'},472 {'os_maker': 'Non-Unix', 'os_name': 'ILIOS'},473 {'os_maker': 'Non-Unix', 'os_name': 'L4'},474 {'os_maker': 'Non-Unix', 'os_name': 'Mach'},475 {'os_maker': 'Non-Unix', 'os_name': 'Carnegie Mellon University'},476 {'os_maker': 'Non-Unix', 'os_name': 'NeXTSTEP'},477 {'os_maker': 'Non-Unix', 'os_name': 'Nemesis'},478 {'os_maker': 'Non-Unix', 'os_name': 'Singularity'},479 {'os_maker': 'Non-Unix', 'os_name': 'managed code'},480 {'os_maker': 'Non-Unix', 'os_name': 'dependable'},481 {'os_maker': 'Non-Unix', 'os_name': 'Spring'},482 {'os_maker': 'Non-Unix', 'os_name': 'THE multiprogramming system'},483 {'os_maker': 'Non-Unix',484 'os_name': 'Eindhoven University of Technology'},485 {'os_maker': 'Non-Unix', 'os_name': 'Thoth'},486 {'os_maker': 'Non-Unix', 'os_name': 'University of Waterloo'},487 {'os_maker': 'Non-Unix', 'os_name': 'V'},488 {'os_maker': 'Non-Unix', 'os_name': 'Verve'},489 {'os_maker': 'Non-Unix', 'os_name': 'type safety'},490 {'os_maker': 'Non-Unix', 'os_name': 'memory safety'},491 {'os_maker': 'Non-Unix', 'os_name': 'Xinu'},492 {'os_maker': 'Non-Unix', 'os_name': 'Douglas E. Comer'},493 {'os_maker': 'Routers', 'os_name': 'CatOS'},494 {'os_maker': 'Routers', 'os_name': 'Cisco Systems'},495 {'os_maker': 'Routers', 'os_name': 'Cisco IOS'},496 {'os_maker': 'Routers', 'os_name': 'Cisco Systems'},497 {'os_maker': 'Routers', 'os_name': 'Inferno'},498 {'os_maker': 'Routers', 'os_name': 'Bell Labs'},499 {'os_maker': 'Routers', 'os_name': 'IOS-XR'},500 {'os_maker': 'Routers', 'os_name': 'Cisco Systems'},501 {'os_maker': 'Routers', 'os_name': 'JunOS'},502 {'os_maker': 'Routers', 'os_name': 'Juniper Networks'},503 {'os_maker': 'Routers', 'os_name': 'LANCOM Systems'},504 {'os_maker': 'Routers', 'os_name': 'Linux'},505 {'os_maker': 'Routers', 'os_name': 'OpenWrt'},506 {'os_maker': 'Routers', 'os_name': 'DD-WRT'},507 {'os_maker': 'Routers', 'os_name': 'LEDE'},508 {'os_maker': 'Routers', 'os_name': 'Gargoyle'},509 {'os_maker': 'Routers', 'os_name': 'LibreCMC'},510 {'os_maker': 'Routers', 'os_name': 'Zeroshell'},511 {'os_maker': 'Routers', 'os_name': 'RTOS'},512 {'os_maker': 'Routers', 'os_name': 'm0n0wall'},513 {'os_maker': 'Routers', 'os_name': 'OPNsense'},514 {'os_maker': 'Routers', 'os_name': 'pfsense'},515 {'os_maker': 'Routers',516 'os_name': 'List of wireless router firmware projects'},517 {'os_maker': 'Other embedded', 'os_name': 'Apache Mynewt'},518 {'os_maker': 'Other embedded', 'os_name': 'ChibiOS/RT'},519 {'os_maker': 'Other embedded', 'os_name': 'Contiki'},520 {'os_maker': 'Other embedded', 'os_name': 'ERIKA Enterprise'},521 {'os_maker': 'Other embedded', 'os_name': 'eCos'},522 {'os_maker': 'Other embedded', 'os_name': 'NetBSD'},523 {'os_maker': 'Other embedded', 'os_name': 'Nucleus RTOS'},524 {'os_maker': 'Other embedded', 'os_name': 'NuttX'},525 {'os_maker': 'Other embedded', 'os_name': 'Minix'},526 {'os_maker': 'Other embedded', 'os_name': 'NCOS'},527 {'os_maker': 'Other embedded',528 'os_name': 'freeRTOS, openRTOS, safeRTOS'},529 {'os_maker': 'Other embedded', 'os_name': 'OpenEmbedded'},530 {'os_maker': 'Other embedded', 'os_name': 'Yocto Project'},531 {'os_maker': 'Other embedded', 'os_name': 'pSOS'},532 {'os_maker': 'Other embedded', 'os_name': 'QNX'},533 {'os_maker': 'Other embedded', 'os_name': 'REX OS'},534 {'os_maker': 'Other embedded', 'os_name': 'RIOT'},535 {'os_maker': 'Other embedded', 'os_name': 'ROM-DOS'},536 {'os_maker': 'Other embedded', 'os_name': 'TinyOS'},537 {'os_maker': 'Other embedded', 'os_name': 'ThreadX'},538 {'os_maker': 'Other embedded', 'os_name': 'RT-Thread'},539 {'os_maker': 'Other embedded', 'os_name': 'DSPnano RTOS'},540 {'os_maker': 'Other embedded', 'os_name': 'Windows IoT'},541 {'os_maker': 'Other embedded', 'os_name': 'Windows Embedded'},542 {'os_maker': 'Other embedded', 'os_name': 'Windows CE'},543 {'os_maker': 'Other embedded', 'os_name': 'Windows IoT Core'},544 {'os_maker': 'Other embedded', 'os_name': 'Windows IoT Enterprise'},545 {'os_maker': 'Other embedded', 'os_name': 'VxWorks'},546 {'os_maker': 'Other embedded', 'os_name': 'Wombat'},547 {'os_maker': 'Other embedded', 'os_name': 'microkernel'},548 {'os_maker': 'Other embedded', 'os_name': 'real-time'},549 {'os_maker': 'Other embedded', 'os_name': 'embedded'},550 {'os_maker': 'Other embedded', 'os_name': 'Zephyr'},551 {'os_maker': 'LEGO Mindstorms', 'os_name': 'brickOS'},552 {'os_maker': 'LEGO Mindstorms', 'os_name': 'leJOS'},553 {'os_maker': 'Category links', 'os_name': 'Operating systems'},554 {'os_maker': 'Category links', 'os_name': 'Embedded operating systems'},...

Full Screen

Full Screen

release_build_file.py

Source:release_build_file.py Github

copy

Full Screen

1# Software License Agreement (BSD License)2#3# Copyright (c) 2013, Open Source Robotics Foundation, Inc.4# All rights reserved.5#6# Redistribution and use in source and binary forms, with or without7# modification, are permitted provided that the following conditions8# are met:9#10# * Redistributions of source code must retain the above copyright11# notice, this list of conditions and the following disclaimer.12# * Redistributions in binary form must reproduce the above13# copyright notice, this list of conditions and the following14# disclaimer in the documentation and/or other materials provided15# with the distribution.16# * Neither the name of Open Source Robotics Foundation, Inc. nor17# the names of its contributors may be used to endorse or promote18# products derived from this software without specific prior19# written permission.20#21# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS22# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT23# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS24# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE25# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,26# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,27# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;28# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER29# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT30# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN31# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE32# POSSIBILITY OF SUCH DAMAGE.33class ReleaseBuildFile(object):34 _type = 'release-build'35 def __init__(self, name, data):36 self.name = name37 assert 'type' in data, "Expected file type is '%s'" % ReleaseBuildFile._type38 assert data['type'] == ReleaseBuildFile._type, "Expected file type is '%s', not '%s'" % (ReleaseBuildFile._type, data['type'])39 assert 'version' in data, "Release build file for '%s' lacks required version information" % self.name40 assert int(data['version']) == 1, "Unable to handle '%s' format version '%d', please update rosdistro (e.g. on Ubuntu/Debian use: sudo apt-get update && sudo apt-get install --only-upgrade python-rosdistro)" % (ReleaseBuildFile._type, int(data['version']))41 self.version = int(data['version'])42 self.package_whitelist = []43 if 'package_whitelist' in data:44 self.package_whitelist = data['package_whitelist']45 assert isinstance(self.package_whitelist, list)46 self.package_blacklist = []47 if 'package_blacklist' in data:48 self.package_blacklist = data['package_blacklist']49 assert isinstance(self.package_blacklist, list)50 self.notify_emails = []51 self.notify_maintainers = None52 self.notify_committers = None53 if 'notifications' in data:54 if 'emails' in data['notifications']:55 self.notify_emails = data['notifications']['emails']56 assert isinstance(self.notify_emails, list)57 if 'maintainers' in data['notifications'] and data['notifications']['maintainers']:58 self.notify_maintainers = True59 if 'committers' in data['notifications'] and data['notifications']['committers']:60 self.notify_committers = True61 assert 'targets' in data62 self._targets = {}63 for os_name in data['targets'].keys():64 if os_name == '_config':65 self._targets[os_name] = data['targets'][os_name]66 continue67 self._targets[os_name] = {}68 for os_code_name in data['targets'][os_name]:69 if os_code_name == '_config':70 self._targets[os_name][os_code_name] = data['targets'][os_name][os_code_name]71 continue72 self._targets[os_name][os_code_name] = {}73 for arch in data['targets'][os_name][os_code_name]:74 self._targets[os_name][os_code_name][arch] = data['targets'][os_name][os_code_name][arch]75 assert 'jenkins_url' in data76 self.jenkins_url = str(data['jenkins_url'])77 self.jenkins_sourcedeb_job_timeout = None78 if 'jenkins_sourcedeb_job_timeout' in data:79 self.jenkins_sourcedeb_job_timeout = int(data['jenkins_sourcedeb_job_timeout'])80 self.jenkins_binarydeb_job_timeout = None81 if 'jenkins_binarydeb_job_timeout' in data:82 self.jenkins_binarydeb_job_timeout = int(data['jenkins_binarydeb_job_timeout'])83 self.sync_package_count = None84 self.sync_packages = []85 if 'sync' in data:86 if 'package_count' in data['sync']:87 self.sync_package_count = int(data['sync']['package_count'])88 if 'packages' in data['sync']:89 self.notify_maintainers = data['sync']['packages']90 assert isinstance(self.sync_packages, list)91 def get_target_os_names(self):92 return [t for t in self._targets.keys() if t != '_config']93 def get_target_os_code_names(self, os_name):94 os_code_names = self._targets[os_name]95 return [t for t in os_code_names.keys() if t != '_config']96 def get_target_arches(self, os_name, os_code_name):97 arches = self._targets[os_name][os_code_name]98 return [t for t in arches.keys() if t != '_config']99 def get_target_configuration(self, os_name=None, os_code_name=None, arch=None):100 assert os_code_name is not None or arch is None101 assert os_name is not None or os_code_name is None102 config = {}103 if '_config' in self._targets:104 config.update(self._targets['_config'])105 if os_name is not None:106 if '_config' in self._targets[os_name]:107 config.update(self._targets[os_name]['_config'])108 if os_code_name is not None:109 if '_config' in self._targets[os_name][os_code_name]:110 config.update(self._targets[os_name][os_code_name]['_config'])111 if arch is not None:112 if '_config' in self._targets[os_name][os_code_name][arch]:113 config.update(self._targets[os_name][os_code_name][arch]['_config'])114 return config115 def get_data(self):116 data = {}117 data['type'] = ReleaseBuildFile._type118 data['version'] = 1119 if self.package_whitelist:120 data['package_whitelist'] = self.package_whitelist121 if self.package_blacklist:122 data['package_blacklist'] = self.package_blacklist123 if self.notify_emails or self.notify_maintainers or self.notify_committers:124 data['notifications'] = {}125 if self.notify_emails:126 data['notifications']['emails'] = self.notify_emails127 if self.notify_maintainers is not None:128 data['notifications']['maintainers'] = bool(self.notify_maintainers)129 if self.notify_committers is not None:130 data['notifications']['committers'] = bool(self.notify_committers)131 data['targets'] = self._targets132 data['jenkins_url'] = self.jenkins_url133 if self.jenkins_sourcedeb_job_timeout:134 data['jenkins_sourcedeb_job_timeout'] = self.jenkins_sourcedeb_job_timeout135 if self.jenkins_binarydeb_job_timeout:136 data['jenkins_binarydeb_job_timeout'] = self.jenkins_binarydeb_job_timeout137 if self.sync_package_count or self.sync_packages:138 data['sync'] = {}139 if self.sync_package_count is not None:140 data['sync']['package_count'] = self.sync_package_count141 if self.sync_packages:142 data['sync']['packages'] = self.sync_packages...

Full Screen

Full Screen

test_parser.py

Source:test_parser.py Github

copy

Full Screen

1import pytest2from parsimonious.grammar import Grammar3from pip_r.grammar import spec, groups4from pip_r.parser import Parser5from pip_r.grammar import spec6bp = breakpoint7grammar = Grammar(spec)8def test_name():9 tree = grammar.parse("""10pynvim11pytest12 """)13 parser = Parser()14 doc = parser.visit(tree)15 results = groups(tree)16 assert len(doc) == 217 assert doc[0].name == "pynvim"18 assert doc[1].name == "pytest"19def test_extras():20 tree = grammar.parse("SomeProject[foo, bar]")21 parser = Parser()22 doc = parser.visit(tree)23 assert doc[0].extras == "[foo, bar]"24def test_url():25 tree = grammar.parse("pip @ file:///localbuilds/pip-1.3.1.zip")26 parser = Parser()27 doc = parser.visit(tree)28 assert doc[0].URI == "file:///localbuilds/pip-1.3.1.zip"29def test_comment():30 tree = grammar.parse("pip # trailing comment")31 parser = Parser()32 doc = parser.visit(tree)33 assert doc[0].comment == "# trailing comment"34@pytest.mark.parametrize("line, versionspec", [35 ("docopt == 0.6.1", "== 0.6.1"),36 ("keyring >= 4.1.1", ">= 4.1.1"),37 ("coverage != 3.5", "!= 3.5"),38 ("Mopidy-Dirble \t ~= 1.1", "~= 1.1"),39 ("Mopidy-Dirble \t ~= 1.1", "~= 1.1"),40 ("pkg3>=1.0,<=2.0", ">=1.0,<=2.0"),41])42def test_versionspec(line, versionspec):43 tree = grammar.parse(line)44 parser = Parser()45 doc = parser.visit(tree)46 assert doc[0].versionspec == versionspec47@pytest.mark.parametrize("line, name, marker", [48 ('argparse;python_version<"2.7"', 'argparse', ';python_version<"2.7"'),49 ("name; os_name=='a' and os_name=='b'", 'name', "; os_name=='a' and os_name=='b'"),50 ("name; os_name=='a' or os_name=='b'", 'name', "; os_name=='a' or os_name=='b'"),51 ("name; os_name=='a' and os_name=='b' or os_name=='c'", 'name', "; os_name=='a' and os_name=='b' or os_name=='c'"),52 ("name; os_name=='a' or os_name=='b' and os_name=='c'", 'name', "; os_name=='a' or os_name=='b' and os_name=='c'"),53 ("name; os_name=='a' and (os_name=='b' or os_name=='c')", "name", "; os_name=='a' and (os_name=='b' or os_name=='c')"),54 ("name; (os_name=='a' or os_name=='b') and os_name=='c'", "name", "; (os_name=='a' or os_name=='b') and os_name=='c'"),55])56def test_markers(line, name, marker):57 tree = grammar.parse(line)58 parser = Parser()59 doc = parser.visit(tree)...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run testcontainers-python automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful