Coverage for sources/emcdproj/website/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-10-14 16:02 +0000

1# vim: set filetype=python fileencoding=utf-8: 

2# -*- coding: utf-8 -*- 

3 

4#============================================================================# 

5# # 

6# Licensed under the Apache License, Version 2.0 (the "License"); # 

7# you may not use this file except in compliance with the License. # 

8# You may obtain a copy of the License at # 

9# # 

10# http://www.apache.org/licenses/LICENSE-2.0 # 

11# # 

12# Unless required by applicable law or agreed to in writing, software # 

13# distributed under the License is distributed on an "AS IS" BASIS, # 

14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # 

15# See the License for the specific language governing permissions and # 

16# limitations under the License. # 

17# # 

18#============================================================================# 

19 

20 

21''' Static website maintenance utilities for projects. ''' 

22 

23 

24from ..exceptions import ( 

25 PublicationSourceInvalidity, 

26 TrackConfigurationInvalidity, 

27) 

28from .cli import CommandDispatcher, SurveyCommand, UpdateCommand 

29from .inventory import ( 

30 extract_element_ids, 

31 validate_legacy_inventory, 

32 verify_retained_history, 

33) 

34from .locations import Locations 

35from .publication import ( 

36 copy_version_to_alias, 

37 extract_coverage, 

38 fetch_publication_branch_and_tarball, 

39 record_provenance, 

40 reject_symlinks_in_tree, 

41 safe_extractall, 

42 update_available_species, 

43 update_coverage_badge, 

44 update_index_html, 

45 update_publication_branch, 

46 update_version_coverage_badge, 

47 update_versions_json, 

48 validate_version_label, 

49 survey, 

50 update, 

51) 

52from .tracks import ( 

53 TrackConfiguration, 

54 TrackMap, 

55 DEFAULT_TRACKS, 

56 load_default_configuration, 

57 load_track_configuration, 

58 matches_namespace, 

59 validate_track_configuration, 

60)