Skip to content

Commit

Permalink
Merge branch 'main' into chmod-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
araichoor authored Sep 21, 2023
2 parents dacd563 + 17e9ba6 commit d05444c
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 40 deletions.
28 changes: 28 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.10"

# Build documentation in the doc/ directory with Sphinx
sphinx:
configuration: doc/conf.py
fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub.
# Note ePub format does not like include files.
formats: []

# Optionally set the version of Python and requirements required to build your docs
python:
install:
- requirements: doc/rtd_requirements.txt
- method: setuptools
path: .
8 changes: 7 additions & 1 deletion doc/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,25 @@ fiberassign change log
5.7.2 (unreleased)
------------------

* Use chmod to make sure that permissions get set to their intended values (PR `#457`_).
* Update ReadTheDocs configuration (PR `#459`_).
* Add Assignment.check_avail_collisions(tile, all_matches=False) to check potential assignments for collisions (PR `#454`_).
* uses the focalplane radius from DESIMODEL instead of the hardcoded version in fiberassign (PR `#453`_).
* Use chmod to make sure that permissions get set to their intended values (PR `#457`_).

.. _`#453`: https://github.com/desihub/fiberassign/pull/453
.. _`#454`: https://github.com/desihub/fiberassign/pull/454
.. _`#459`: https://github.com/desihub/fiberassign/pull/459
.. _`#457`: https://github.com/desihub/fiberassign/pull/457

5.7.1 (2023-02-06)
------------------

* master to main in setup.py (commit 270b4e8)
* Update change log and test infrastructure (PR `#440`_).
* bugfix: correct arguments order when calling gaia_psflike (PR `#442`_).
* bugfix: fba_sv1 avoid row mixing (PR `#444`_).
* bugfix (mostly harmless): fba_launch use of too_tile argument in
get_desitarget_paths (PR `#446`_).

.. _`#440`: https://github.com/desihub/fiberassign/pull/440

Expand Down
7 changes: 3 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@
# some external dependencies are not met at build time and break the
# building process.
autodoc_mock_imports = []
for missing in ('astropy', 'numpy', 'fitsio', 'healpy',
'desitarget.skyhealpixs', 'yaml', 'scipy',
'desimodel', 'desitarget', 'desiutil',
'fiberassign._internal'):
for missing in ('astropy', 'numpy', 'fitsio', 'healpy', 'yaml', 'scipy',
'desimodel', 'desitarget', 'desiutil',
'fiberassign._internal'):
try:
foo = import_module(missing)
except ImportError:
Expand Down
10 changes: 3 additions & 7 deletions doc/rtd_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
Sphinx
pyyaml
numpy
scipy
matplotlib
astropy
fitsio
Sphinx>6,<7
sphinx-rtd-theme>1
git+https://github.com/desihub/desiutil.git@main#egg=desiutil
29 changes: 1 addition & 28 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,6 @@
#
# DESI support code.
#
# If this code is being run within the readthedocs environment, then we
# need special steps.
#
# Longer story: desimodel and desitarget are fiberassign build requirements
# but these are not pip installable from a requirements file, due to the way
# that pip handles recursive requirements files and the fact that desiutil is
# required for obtaining even basic package info (egg_info). Since this is
# such a specialized case, we just check if this is running on readthedocs
# and manually pip install things right here.
#
try:
import desiutil
except ImportError:
if os.getenv('READTHEDOCS') == 'True':
import subprocess as sp
dutil = \
'git+https://github.com/desihub/desiutil.git@main#egg=desiutil'
dmodel = \
'git+https://github.com/desihub/desimodel.git@main#egg=desimodel'
dtarget = \
'git+https://github.com/desihub/desitarget.git@main#egg=desitarget'
sp.check_call(['pip', 'install', dutil])
sp.check_call(['pip', 'install', dmodel])
sp.check_call(['pip', 'install', dtarget])
else:
raise

from desiutil.setup import DesiTest, DesiVersion, get_version
#
# Begin setup
Expand Down Expand Up @@ -101,7 +74,7 @@
'fitsio'
]
setup_keywords['zip_safe'] = False
setup_keywords['use_2to3'] = False
# setup_keywords['use_2to3'] = False
setup_keywords['packages'] = find_packages('py')
setup_keywords['package_dir'] = {'': 'py'}
setup_keywords['cmdclass'] = {'version': DesiVersion, 'test': DesiTest,
Expand Down

0 comments on commit d05444c

Please sign in to comment.