%global _empty_manifest_terminate_build 0 Name: python-casaconfig Version: 0.0.54 Release: 1 Summary: CASA Operational Configuration Package License: Apache-2.0 URL: https://github.com/casangi/casadata Source0: https://mirrors.aliyun.com/pypi/web/packages/41/fc/975a65992ab8f3d0e05219874e27aeef1ff1e43370ce20a952a788000b9a/casaconfig-0.0.54.tar.gz BuildArch: noarch %description # casaconfig Runtime data necessary for CASA operation. - Latest documentation [![Documentation Status](https://readthedocs.org/projects/casaconfig/badge/?version=latest)](https://casaconfig.readthedocs.io/en/latest/?badge=latest) - Stable documentation [![Documentation Status](https://readthedocs.org/projects/casaconfig/badge/?version=stable)](https://casaconfig.readthedocs.io/en/stable/?badge=stable) ## Release Instructions 1. Create a release branch with a version name (ie v1.6.2) 2. Ensure the version number in setup.py on the branch is set correctly 3. Create a tag of the release branch (ie v1.6.2-1) 4. Github Action runs automatically to publish a pip package to pypi ## Installation ``` $: pip install casaconfig ``` ## Usage The Python package installs with an empty ```__data__``` subdirectory. The contents must be populated by calling ```pull_data()``` to download the tables from the Github repo ```data``` folder. ```python from casaconfig import pull_data pull_data() ``` Within this folder is a stale version of the IERS measures tables needed for accurate measurement. Generally users will want to update to the latest measures data and keep current each day. ```python from casaconfig import measures_update measures_update() ``` A default config.py necessary for CASA operation is included in this package. Users may make their own local copy with any desired modifications. ```python from casaconfig import write_default_config write_default_config('~/.casa/config.py') ``` ``` $: cat ~/.casa/config.py import os, time, pkg_resources # list of paths where CASA should search for data subdirectories datapath = [pkg_resources.resource_filename('casaconfig', '__data__/')] # location of required runtime measures data, takes precedence over location(s) in datapath list measurespath = os.path.expanduser("~/.casa/measures") # automatically update measures data if not current (measurespath must be user-writable) measures_update = True # log file path/name logfile='casalog-%s.log' % time.strftime("%Y-%m-%d", time.localtime()) # do not create a log file when True, If True, then any logfile value is ignored and there is no log file nologfile = False # print log output to terminal when True (in addition to any logfile and CASA logger) log2term = False # do not start the CASA logger when True nologger = False # avoid starting GUI tools when True. If True then the CASA logger is not started even if nologger is False nogui = False # the IPython prompt color scheme. Must be one of "Neutral", "NoColor", "Linux" or "LightBG", default "Neutral" # if an invalid color is given a warning message is printed and logged but CASA continues using the default color colors = "LightBG" # startup without a graphical backend if True agg = False # attempt to load the pipeline modules and set other options appropriate for pipeline use if True # when pipeline is True then agg will be assumed to be true even if agg is set to False here or on the command line pipeline = False # create and use an IPython log using the iplogfile path iplog = True # IPython log path/name used when iplog is True iplogfile = 'ipython-%s.log' % time.strftime("%Y-%m-%d", time.localtime()) # allow anonymous usage reporting telemetry_enabled = True # location to place telemetry data prior to reporting telemetry_log_directory = os.path.expanduser("~/.casa/telemetry") # maximum size of telemetry recording telemetry_log_limit = 1650 # telemetry recording size that triggers a report telemetry_log_size_interval = 30 # telemetry recording report frequency telemetry_submit_interval = 20 # allow anonymous crash reporting crashreporter_enabled = True # include the users local site-packages in the python path if True. # normally these are excluded to avoid any conflicts with CASA modules user_site = False ``` %package -n python3-casaconfig Summary: CASA Operational Configuration Package Provides: python-casaconfig BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-casaconfig # casaconfig Runtime data necessary for CASA operation. - Latest documentation [![Documentation Status](https://readthedocs.org/projects/casaconfig/badge/?version=latest)](https://casaconfig.readthedocs.io/en/latest/?badge=latest) - Stable documentation [![Documentation Status](https://readthedocs.org/projects/casaconfig/badge/?version=stable)](https://casaconfig.readthedocs.io/en/stable/?badge=stable) ## Release Instructions 1. Create a release branch with a version name (ie v1.6.2) 2. Ensure the version number in setup.py on the branch is set correctly 3. Create a tag of the release branch (ie v1.6.2-1) 4. Github Action runs automatically to publish a pip package to pypi ## Installation ``` $: pip install casaconfig ``` ## Usage The Python package installs with an empty ```__data__``` subdirectory. The contents must be populated by calling ```pull_data()``` to download the tables from the Github repo ```data``` folder. ```python from casaconfig import pull_data pull_data() ``` Within this folder is a stale version of the IERS measures tables needed for accurate measurement. Generally users will want to update to the latest measures data and keep current each day. ```python from casaconfig import measures_update measures_update() ``` A default config.py necessary for CASA operation is included in this package. Users may make their own local copy with any desired modifications. ```python from casaconfig import write_default_config write_default_config('~/.casa/config.py') ``` ``` $: cat ~/.casa/config.py import os, time, pkg_resources # list of paths where CASA should search for data subdirectories datapath = [pkg_resources.resource_filename('casaconfig', '__data__/')] # location of required runtime measures data, takes precedence over location(s) in datapath list measurespath = os.path.expanduser("~/.casa/measures") # automatically update measures data if not current (measurespath must be user-writable) measures_update = True # log file path/name logfile='casalog-%s.log' % time.strftime("%Y-%m-%d", time.localtime()) # do not create a log file when True, If True, then any logfile value is ignored and there is no log file nologfile = False # print log output to terminal when True (in addition to any logfile and CASA logger) log2term = False # do not start the CASA logger when True nologger = False # avoid starting GUI tools when True. If True then the CASA logger is not started even if nologger is False nogui = False # the IPython prompt color scheme. Must be one of "Neutral", "NoColor", "Linux" or "LightBG", default "Neutral" # if an invalid color is given a warning message is printed and logged but CASA continues using the default color colors = "LightBG" # startup without a graphical backend if True agg = False # attempt to load the pipeline modules and set other options appropriate for pipeline use if True # when pipeline is True then agg will be assumed to be true even if agg is set to False here or on the command line pipeline = False # create and use an IPython log using the iplogfile path iplog = True # IPython log path/name used when iplog is True iplogfile = 'ipython-%s.log' % time.strftime("%Y-%m-%d", time.localtime()) # allow anonymous usage reporting telemetry_enabled = True # location to place telemetry data prior to reporting telemetry_log_directory = os.path.expanduser("~/.casa/telemetry") # maximum size of telemetry recording telemetry_log_limit = 1650 # telemetry recording size that triggers a report telemetry_log_size_interval = 30 # telemetry recording report frequency telemetry_submit_interval = 20 # allow anonymous crash reporting crashreporter_enabled = True # include the users local site-packages in the python path if True. # normally these are excluded to avoid any conflicts with CASA modules user_site = False ``` %package help Summary: Development documents and examples for casaconfig Provides: python3-casaconfig-doc %description help # casaconfig Runtime data necessary for CASA operation. - Latest documentation [![Documentation Status](https://readthedocs.org/projects/casaconfig/badge/?version=latest)](https://casaconfig.readthedocs.io/en/latest/?badge=latest) - Stable documentation [![Documentation Status](https://readthedocs.org/projects/casaconfig/badge/?version=stable)](https://casaconfig.readthedocs.io/en/stable/?badge=stable) ## Release Instructions 1. Create a release branch with a version name (ie v1.6.2) 2. Ensure the version number in setup.py on the branch is set correctly 3. Create a tag of the release branch (ie v1.6.2-1) 4. Github Action runs automatically to publish a pip package to pypi ## Installation ``` $: pip install casaconfig ``` ## Usage The Python package installs with an empty ```__data__``` subdirectory. The contents must be populated by calling ```pull_data()``` to download the tables from the Github repo ```data``` folder. ```python from casaconfig import pull_data pull_data() ``` Within this folder is a stale version of the IERS measures tables needed for accurate measurement. Generally users will want to update to the latest measures data and keep current each day. ```python from casaconfig import measures_update measures_update() ``` A default config.py necessary for CASA operation is included in this package. Users may make their own local copy with any desired modifications. ```python from casaconfig import write_default_config write_default_config('~/.casa/config.py') ``` ``` $: cat ~/.casa/config.py import os, time, pkg_resources # list of paths where CASA should search for data subdirectories datapath = [pkg_resources.resource_filename('casaconfig', '__data__/')] # location of required runtime measures data, takes precedence over location(s) in datapath list measurespath = os.path.expanduser("~/.casa/measures") # automatically update measures data if not current (measurespath must be user-writable) measures_update = True # log file path/name logfile='casalog-%s.log' % time.strftime("%Y-%m-%d", time.localtime()) # do not create a log file when True, If True, then any logfile value is ignored and there is no log file nologfile = False # print log output to terminal when True (in addition to any logfile and CASA logger) log2term = False # do not start the CASA logger when True nologger = False # avoid starting GUI tools when True. If True then the CASA logger is not started even if nologger is False nogui = False # the IPython prompt color scheme. Must be one of "Neutral", "NoColor", "Linux" or "LightBG", default "Neutral" # if an invalid color is given a warning message is printed and logged but CASA continues using the default color colors = "LightBG" # startup without a graphical backend if True agg = False # attempt to load the pipeline modules and set other options appropriate for pipeline use if True # when pipeline is True then agg will be assumed to be true even if agg is set to False here or on the command line pipeline = False # create and use an IPython log using the iplogfile path iplog = True # IPython log path/name used when iplog is True iplogfile = 'ipython-%s.log' % time.strftime("%Y-%m-%d", time.localtime()) # allow anonymous usage reporting telemetry_enabled = True # location to place telemetry data prior to reporting telemetry_log_directory = os.path.expanduser("~/.casa/telemetry") # maximum size of telemetry recording telemetry_log_limit = 1650 # telemetry recording size that triggers a report telemetry_log_size_interval = 30 # telemetry recording report frequency telemetry_submit_interval = 20 # allow anonymous crash reporting crashreporter_enabled = True # include the users local site-packages in the python path if True. # normally these are excluded to avoid any conflicts with CASA modules user_site = False ``` %prep %autosetup -n casaconfig-0.0.54 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-casaconfig -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Jun 09 2023 Python_Bot - 0.0.54-1 - Package Spec generated