Skip to content

Commit

Permalink
Deprecation: remove code for config file v1 and default config file
Browse files Browse the repository at this point in the history
This is a continuation of the work done for

* #10351
* #10342
* #10348
* #10355

In that work we added notifications, warning messages and finally a feature flag
to start failing the builds without a configuration file or using v1.

This commit removes all the code for config file v1 and building without a
configuration file. Due to that, it also removes the code that allows users to
use the older Docker images (testing, latest, stable)

This work can be merged once we enable the feature flag to fail the builds for
all the projects and we are happy with the results.
  • Loading branch information
humitos committed May 30, 2023
1 parent 9137e90 commit 9a09600
Show file tree
Hide file tree
Showing 12 changed files with 154 additions and 1,843 deletions.
546 changes: 34 additions & 512 deletions readthedocs/config/config.py

Large diffs are not rendered by default.

10 changes: 1 addition & 9 deletions readthedocs/config/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,7 @@ def as_dict(self):
}


class Build(Base):

__slots__ = ('image', 'apt_packages')

def __init__(self, **kwargs):
kwargs.setdefault('apt_packages', [])
super().__init__(**kwargs)


# TODO: rename this class to `Build`
class BuildWithOs(Base):

__slots__ = ("os", "tools", "jobs", "apt_packages", "commands")
Expand Down
Loading

0 comments on commit 9a09600

Please sign in to comment.