Skip to content

Commit

Permalink
In more files, rename :mod:apt_mirror_updater to apt_smart
Browse files Browse the repository at this point in the history
  • Loading branch information
martin68 committed Sep 14, 2019
1 parent 41f179a commit 0832dc4
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[run]
source = apt_mirror_updater
omit = apt_mirror_updater/tests.py
source = apt_smart
omit = apt_smart/tests.py
8 changes: 4 additions & 4 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ the wrong keyring when setting up chroots of old releases. For more information
refer to issue `#8`_.

I've bumped the major version number for this release because the highly
specific ``apt_mirror_updater.eol`` module changed into the much more generic
``apt_mirror_updater.releases`` module. Also the ``release_label`` property was
specific ``apt_smart.eol`` module changed into the much more generic
``apt_smart.releases`` module. Also the ``release_label`` property was
removed.

.. _Release 6.0: https://github.com/xolox/python-apt-mirror-updater/compare/5.2...6.0
Expand Down Expand Up @@ -170,9 +170,9 @@ This release includes pull requests `#2`_ and `#4`_, fixing issues `#1`_ and
- Refactoring: Improve HTTP request exception handling:

- 404 responses and timeouts are no longer subject to retrying.
- The exception ``apt_mirror_updater.http.NotFoundError`` is now raised on
- The exception ``apt_smart.http.NotFoundError`` is now raised on
HTTP 404 responses. Other unexpected HTTP response codes raise
``apt_mirror_updater.http.InvalidResponseError``.
``apt_smart.http.InvalidResponseError``.
- The specific distinction between 404 and !200 was made because the 404
response has become significant in checking for EOL status.

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ default:
@echo ' make check check coding style (PEP-8, PEP-257)'
@echo ' make test run the test suite, report coverage'
@echo ' make tox run the tests on all Python versions'
@echo ' make eol update apt_mirror_updater.eol module'
@echo ' make eol update apt_smart.eol module'
@echo ' make readme update usage in readme'
@echo ' make docs update documentation using Sphinx'
@echo ' make publish publish changes to GitHub/PyPI'
Expand Down Expand Up @@ -66,7 +66,7 @@ cog: install
@pip-accel install --quiet cogapp

releases: cog
@cog.py -r apt_mirror_updater/releases.py
@cog.py -r apt_smart/releases.py

readme: cog
@cog.py -r README.rst
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ The command line interface is described below.
..
.. [[[cog
.. from humanfriendly.usage import inject_usage
.. inject_usage('apt_mirror_updater.cli')
.. inject_usage('apt_smart.cli')
.. ]]]
**Usage:** `apt-smart [OPTIONS]`
Expand Down
24 changes: 12 additions & 12 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,38 @@ the `apt-mirror-updater` package. The following modules are available:
.. contents::
:local:

:mod:`apt_mirror_updater`
:mod:`apt_smart`
-------------------------

.. automodule:: apt_mirror_updater
.. automodule:: apt_smart
:members:

:mod:`apt_mirror_updater.backends.debian`
:mod:`apt_smart.backends.debian`
-----------------------------------------

.. automodule:: apt_mirror_updater.backends.debian
.. automodule:: apt_smart.backends.debian
:members:

:mod:`apt_mirror_updater.backends.ubuntu`
:mod:`apt_smart.backends.ubuntu`
-----------------------------------------

.. automodule:: apt_mirror_updater.backends.ubuntu
.. automodule:: apt_smart.backends.ubuntu
:members:

:mod:`apt_mirror_updater.cli`
:mod:`apt_smart.cli`
-----------------------------

.. automodule:: apt_mirror_updater.cli
.. automodule:: apt_smart.cli
:members:

:mod:`apt_mirror_updater.http`
:mod:`apt_smart.http`
------------------------------

.. automodule:: apt_mirror_updater.http
.. automodule:: apt_smart.http
:members:

:mod:`apt_mirror_updater.releases`
:mod:`apt_smart.releases`
----------------------------------

.. automodule:: apt_mirror_updater.releases
.. automodule:: apt_smart.releases
:members:
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ commands = py.test {posargs}

[pytest]
addopts = --capture=no --verbose
python_files = apt_mirror_updater/tests.py
python_files = apt_smart/tests.py

[flake8]
exclude = .tox
Expand Down

0 comments on commit 0832dc4

Please sign in to comment.