diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index e9077fea9..000000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,23 +0,0 @@ -astroquery -astropy -astroplan -django -django-bootstrap4 -django-contrib-comments -django-crispy-forms -django-extensions -django-filter -django-gravatar2 -django-guardian -djangorestframework -fits2image -numpy -plotly -pillow -python-dateutil -recommonmark -requests -specutils -sphinx>=2.1.2 -tom_antares -tom_scimma \ No newline at end of file diff --git a/releasenotes.md b/releasenotes.md deleted file mode 100644 index 192bbcad6..000000000 --- a/releasenotes.md +++ /dev/null @@ -1,160 +0,0 @@ -# Release Notes - -## 2.6.5 - -This release fixes the following: - -- Completes the upgrade to the ALeRCE v1 API. -- Updates the TNS API URL to the updated value. -- Adds ``DEFAULT_AUTO_FIELD`` to ``settings.tmpl`` for new TOMs. Existing TOMs should add ``DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'`` to their ``settings.py``, which will resolve any warning messages that include ``HINT: Configure the DEFAULT_AUTO_FIELD setting``, provided the existing TOM is on Django 3.2 or later. - -## 2.6.4 - -This release removes the MPC module as a default, given that the latest version of astroquery has an issue with it that will be fixed in the next release. - -Users of the MPC should follow the instructions listed [here](https://tom-toolkit.readthedocs.io/en/stable/api/tom_catalogs/harvesters.html#minor-planet-center) in order to ensure that it works. - -## 2.6.3 - -This release includes most, but not all, of the upgrade to the new ALeRCE API. It should be considered to be in beta as long as the disclaimer at the top of the ALeRCE query form is present. - -## 2.6.2 - -This release supercedes the mistaken 2.6.1 release and includes the fix for spectroscopic migration alluded to in 2.6.1. It also includes a stub module for the Fink broker. - -## 2.6.0 - -- Refactors user_list to use templatetags in order to facilitate introduction of new [tom_registration](https://github.com/TOMToolkit/tom_registration) installable app. -- Adds django-rest-framework API endpoint for cancelling observations. -- Adds support for assigning group permissions to observations submitted via the django-rest-framework API endpoint. -- Upgrades ``numpy``, ``astropy``, and ``astroplan``, and removes support for Python 3.6. - -### What to watch out for - -- HTML in ``user_list.html`` has been replaced by templatetags, so anyone overriding the ``user_list.html`` template should copy the changes. They can be reviewed in [this pull request](https://github.com/TOMToolkit/tom_base/pull/430/files). -- HTML for login buttons in ``base.html`` has been replaced by a templatetag. Changes can be reviewed in the above pull request. -- Support for Python 3.6 has been removed. - -## 2.5.3 - -- Retains the selected tab on reload for target detail page, as well as selected filters on target list and observation list when updating statuses. -- Adds new statuses supported by the LCO facility. - -### What to watch out for - -- In order to leverage the tab retention, you'll need to copy the changes in ``tom_targets/target_detail.html``, ``tom_observations/observation_list``, and ``tom_targets/target_list.html``. You can review [this pull request](https://github.com/TOMToolkit/tom_base/pull/436/files) to see what has changed. - -## 2.5.2 - -- Fixes the erroneous use of ``photon_flux`` and replaces it with ``flux`` for spectroscopic data processing. It also fixes past usage of ``photon_flux`` using a migration script. - -### What to watch out for - -- This release requires running ``./manage.py migrate``. -- This release will modify all ``ReducedDatum`` objects with a ``data_type`` of ``'spectroscopy'``. It is highly recommended that you back up your data prior to running the migration script. - -## 2.5.1 - -- Fixes the ObservationRecordCancelView and adds a path to it to urls.py. It is now accessible via tom_observations:cancel. - -## 2.5.0 - -- Added API endpoints for submit, list, and detail for ``ObservationRecord``s. - -## 2.4.2 - -- Fixes a bug when submitting observations for dynamic cadences produced by the photometric sequence form. -- Fixes a bug showing an inappropriate error message when LCO validation fails. - -## 2.4.1 - -Release 2.4.1 was yanked and should not be installed. - -## 2.4.0 - -- Updated TNS URL to the new URL used by TNS in the broker and harvester modules. -- Modified ``ObservationRecord``, ``ObservationTemplate``, ``BrokerQuery``, and ``ReducedDatum`` to use ``JSONField`` instead of ``TextField``. -- Dependency updates. - -### What to watch out for - -- This release requires running ``./manage.py migrate``. -- Any uses of ``ObservationRecord.serialize_parameters()``, ``ObservationRecord.parameters_as_dict``, ``BrokerQuery.parameters_as_dict``, ``ObservationTemplate.serialize_parameters()`` should be replaced with ``.parameters``. - -## 2.3.0 - -- Added a new observing form for MUSCAT submissions to LCO. -- Fixed a bug resulting in observations with unknown status not showing up in alert bubble on target detail page. - -### What to watch out for - -- If you have customized your ``target_detail.html``, the line ``{% target_unknown_statuses object %}`` was moved to be outside of the ``{% if %}`` block, and will need to be updated to correct the bug. - -## 2.2.0 - -- Added a new ``TargetNameSearchView`` that allows a user to search for a target name and be redirected to the target detail page for that name, provided there's only one result. - -## 2.1.1 - -- Fixed a bug that allowed negative exposure time and exposure count in the LCOPhotometricSequenceForm. -- Fixed out-of-date references to LCOObservationForm in documentation. -- Added links and descriptions of new supported modules to documentation. - -## 2.1.0 - -- Updated MARS and ALeRCE modules to support Dash Broker changes. -- Various documentation improvements. - -## 2.0.1 - -- Fixed a bug in SimbadHarvester due to changes in the Simbad API. -- Added a Simbad canary test. - -## 2.0.0 - -- Renamed `ALERT_CREDENTIALS` and `BROKER_CREDENTIALS` to `BROKERS` as a catchall for any broker-specific values. -- Added support for custom `CadenceStrategy` layouts. -- Moved settings for `TNSHarvester` into `settings.HARVESTERS` to maintain consistency. -- Updated `tom_alerts.GenericBroker` interface to support submission upstream to a broker, if implemented. -- Fixed `TNSBroker` to get the correct object name. -- Added stub `SCIMMABroker`. -- Removed `tom_publications` from `tom_base`, and placed it in a separate `tom_publications` repository. -- Upgraded a number of dependencies, including `astroplan`, `astropy`, and multiple `django`-related libraries. -- Added tests for `lco.py`, `soar.py`, `alerce.py`, and `mars.py`. -- Added canary tests for `mars.py` and `alerce.py`. - -### Breaking changes - -- Migrations are required for this version. -- Due to the renaming of `BROKER_CREDENTIALS` and `ALERT_CREDENTIALS` to `BROKERS`, TOM Toolkit users will need to consolidate their broker configurations in `settings.py` into the `BROKERS` dict. -- Because the built-in cadence strategies were moved into their own files, users of the cadence strategies will need to update their `settings.TOM_CADENCE_STRATEGIES` to include the values as seen in this commit: https://github.com/TOMToolkit/tom_base/blob/82101a92a9c19f0ff8ab0f59ecb758bc47824252/tom_base/settings.py#L214 -- Users of the `TNSHarvester` will need to introduce a dict in `settings` called `HARVESTERS` with a sub-dict `TNS` to store the relevant `api_key`. -- Due to the removal of `tom_publications`, TOM Toolkit users will need to either add `tom_publications` to their dependencies, or: - - Remove `tom_publications` from `INSTALLED_APPS`. - - Remove `publications_extras` from the following templates, if they've been customized: `observation_groups.html`, `target_grouping.html`. - - Remove references to `latex_button_group` from the templates referenced above, if they've been customized. -- The `LCOBaseForm` methods `instrument_choices`, `instrument_to_type`, and `filter_choices` were re-implemented as static methods, and any subclasses will need to add a `staticmethod` decorator, modify the method signature, and replace calls to `self` within the method to calls to the class name. - -## 1.6.1 - - - This release pins the Django version in order to address a security vulnerability. - -### What to watch out for - - - The Django version is now pinned at 3.0.7, where previously it allowed >=2.2. You'll need to ensure that any custom code is compatible with Django >=3.0.7. - -## 1.6.0 - - - New methods expand the Facility API to support reporting Facility status and weather: `get_facility_status()` and `get_facility_weather_url()`. When these methods are implemented by a Facility provider, this information can be made available in your TOM. - - A new template tag, `facility_status()`, is available to present this information. - -## 1.5.0 - - - Introduced a manual facility interface for classical observing. - - Introduced a view and corresponding form to add existing API-based observations to a Target. - - Introduced a view and corresponding form to update an existing manual observation with an API-based observation ID. - - -### What to watch out for - - - For facility implementers: in order to support a Manual Facility Interface, the team created a `BaseObservationFacility` and two abstract implementations of it, `BaseRoboticObservationFacility` and `BaseManualObservationFacility`. `BaseRoboticObservationFacility` was aliased as `GenericObservationFacility` to support backwards compatibility, but will be removed in 2.0. diff --git a/setup.py b/setup.py deleted file mode 100644 index d652e9af5..000000000 --- a/setup.py +++ /dev/null @@ -1,67 +0,0 @@ -from setuptools import setup, find_packages -from os import path - -here = path.abspath(path.dirname(__file__)) -with open(path.join(here, 'README.md'), encoding='utf-8') as f: - long_description = f.read() - -setup( - name='tomtoolkit', - description='The TOM Toolkit and base modules', - long_description=long_description, - long_description_content_type='text/markdown', - url='https://tomtoolkit.github.io', - author='TOM Toolkit Project', - author_email='dcollom@lco.global', - classifiers=[ - 'Development Status :: 3 - Alpha', - 'Intended Audience :: Science/Research', - 'License :: OSI Approved :: BSD License', - 'Operating System :: OS Independent', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.8', - 'Topic :: Scientific/Engineering :: Astronomy', - 'Topic :: Scientific/Engineering :: Physics' - ], - keywords=['tomtoolkit', 'astronomy', 'astrophysics', 'cosmology', 'science', 'fits', 'observatory'], - packages=find_packages(), - use_scm_version=True, - setup_requires=['setuptools_scm', 'wheel'], - install_requires=[ - 'astroquery>=0.4.2', - 'astroplan~=0.8', - 'astropy>=5.0', - 'beautifulsoup4~=4.9', - 'dramatiq[redis, watch]<2.0.0', - 'django>=3.1,<5', # TOM Toolkit requires db math functions - 'djangorestframework~=3.12', - 'django-bootstrap4>=3,<24', - 'django-contrib-comments~=2.0', # Earlier version are incompatible with Django >= 3.0 - 'django-crispy-forms~=2.0', - 'crispy-bootstrap4~=2022.0', - 'django-dramatiq<1.0.0', - 'django-extensions~=3.1', - 'django-filter>=21,<24', - 'django-gravatar2~=1.4', - 'django-guardian~=2.3', - 'fits2image>=0.4.2', - 'Markdown~=3.4', # django-rest-framework doc headers require this to support Markdown - 'numpy~=1.20', - 'pillow>=9.2,<11.0', - 'plotly~=5.0', - 'python-dateutil~=2.8', - 'requests~=2.25', - 'specutils~=1.8', - ], - extras_require={ - 'test': ['factory_boy>=3.2.1,<3.4.0', - 'responses~=0.23'], - 'docs': [ - 'recommonmark~=0.7', - 'sphinx>=4,<8', - 'tom_antares', - 'tom_scimma' - ] - }, - include_package_data=True, -)