Skip to content

Commit

Permalink
Rename uppercase files to lowercase.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Sep 3, 2020
1 parent 209b64f commit 938cc41
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://docs.python.org/2.7/distutils/sourcedist.html#the-manifest-in-template
graft docs
include CHANGES.rst
include LICENSE
include changelog.rst
include license
include MANIFEST.in
include setup.cfg
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.. include:: ../CHANGES.rst
.. include:: ../changelog.rst
8 changes: 4 additions & 4 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ released date in the changelog:

.. code-block:: bash
$ vi ./CHANGES.rst
$ vi ./changelog.rst
Create a release commit, tag it and merge it back to ``main`` branch:

.. code-block:: bash
$ git add ./mail_deduplicate/__init__.py ./CHANGES.rst
$ git add ./mail_deduplicate/__init__.py ./changelog.rst
$ git commit -m "Release vX.Y.Z"
$ git tag "vX.Y.Z"
$ git push
Expand Down Expand Up @@ -222,7 +222,7 @@ and set it back to development state by increasing the ``patch`` level.
$ git checkout develop
$ bumpversion --verbose patch
$ git add ./mail_deduplicate/__init__.py ./CHANGES.rst
$ git add ./mail_deduplicate/__init__.py ./changelog.rst
$ git commit -m "Post release version bump."
$ git push
Expand All @@ -232,6 +232,6 @@ revision level instead:
.. code-block:: bash
$ bumpversion --verbose minor
$ git add ./mail_deduplicate/__init__.py ./CHANGES.rst
$ git add ./mail_deduplicate/__init__.py ./changelog.rst
$ git commit -m "Next release no longer bug-fix only. Bump revision."
$ git push
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. include:: ../README.rst
.. include:: ../readme.rst

Contents
========
Expand Down
4 changes: 2 additions & 2 deletions docs/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ License

This software is licensed under the `GNU General Public License v2 or later
(GPLv2+)
<https://github.com/kdeldycke/mail-deduplicate/blob/main/LICENSE>`_.
<https://github.com/kdeldycke/mail-deduplicate/blob/main/license>`_.

.. include:: ../LICENSE
.. include:: ../license
:literal:
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ universal = 1
# https://github.com/peritus/bumpversion#configuration
[bumpversion]
current_version = 4.0.0
files = ./mail_deduplicate/__init__.py ./CHANGES.rst
files = ./mail_deduplicate/__init__.py ./changelog.rst
allow_dirty = True
commit = False
tag = False
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def version():
def latest_changes():
""" Extract part of changelog pertaining to version. """
lines = []
for line in read_file('CHANGES.rst').splitlines():
for line in read_file('changelog.rst').splitlines():
if line.startswith('-------'):
if len(lines) > 1:
lines = lines[:-1]
Expand All @@ -105,12 +105,12 @@ def latest_changes():


def long_description():
""" Collates project README and latest changes. """
""" Collates project readme and latest changes. """
changes = latest_changes()
changes[0] = "`Changes for v{}".format(changes[0][1:])
changes[1] = '-' * len(changes[0])
return "\n\n\n".join([
read_file('README.rst'),
read_file('readme.rst'),
'\n'.join(changes),
"`Full changelog "
"<https://maildir-deduplicate.readthedocs.io/en/develop/changelog.html"
Expand Down

0 comments on commit 938cc41

Please sign in to comment.