Skip to content

Commit

Permalink
Merge pull request #63 from koladev32/62-add-migrating-documentation
Browse files Browse the repository at this point in the history
62 add migrating documentation
  • Loading branch information
koladev32 authored May 23, 2024
2 parents 6f3201d + 8dec119 commit 82398e4
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ Changelog
[Unreleased]
------------

[v2.1.0] - 2024-05-23
------------------

- Add migrating documentation (#62)

[v2.0.1] - 2024-05-23
------------------

- Renaming package

[v2.0.0] - 2024-05-23
------------------

Expand Down
10 changes: 10 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog
=========

[v2.0.1] - 2024-05-23
------------------

- Renaming package

[v2.0.0] - 2024-05-23
------------------

- Rename project (#56)

[v1.1.0] - 2024-05-23
------------------

Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Contents
authentication
rotation
analytics
migrating
development_and_contributing
changelog

Expand Down
66 changes: 66 additions & 0 deletions docs/migrating.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
Package Renaming Migration Guide
================================

As part of our efforts to streamline our package offerings, the ``djangorestframework-simple-apikey`` has been renamed to ``drf-simple-apikey``. This section provides a detailed guide on how to migrate your project to use the new package name.

Renaming the Package
--------------------

1. **Uninstall the Old Package**:
Remove the existing package by running the following command in your terminal:

.. code-block:: bash
pip uninstall djangorestframework-simple-apikey
2. **Install the New Package**:
Install the new package using pip:

.. code-block:: bash
pip install drf-simple-apikey
Updating Project Imports
------------------------

You will need to update your import statements in your Django project. Change all existing import statements from:

.. code-block:: python
import djangorestframework_simple_apikey
to:

.. code-block:: python
import drf_simple_apikey
Migrating Django Settings
-------------------------

Update your Django project settings to reflect the changes in the package configuration:

- Change any references from ``SIMPLE_API_KEY`` settings to ``DRF_API_KEY``. For example:

.. code-block:: python
# Old settings
SIMPLE_API_KEY = {
'API_KEY': 'your-api-key-here',
'OTHER_SETTINGS': 'values'
}
# New settings
DRF_API_KEY = {
'API_KEY': 'your-api-key-here',
'OTHER_SETTINGS': 'values'
}
Ensure that you update these settings throughout your project configuration files to avoid any issues during deployment or development.

Support and Feedback
--------------------

For more information, detailed support, or to provide feedback about the migration process, please visit our documentation site at [New Package Documentation URL](https://example.com/new-package-info) or contact support directly.

We appreciate your cooperation and understanding as we continue to improve our software offerings.
2 changes: 1 addition & 1 deletion drf_simple_apikey/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "2.0.1"
VERSION = "2.1.0"
2 changes: 1 addition & 1 deletion example/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Django==4.1.13
djangorestframework==3.14.0
drf-simple-apikey==0.1.2
drf-simple-apikey==2.0.1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ build-backend = "setuptools.build_meta"

[project]
name = "drf-simple-apikey"
version = "2.0.1"
version = "2.1.0"
dynamic = ["description", "readme", "optional-dependencies", "dependencies", "classifiers", "authors", "license"]
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.0.1
current_version = 2.1.0
commit = True
tag = True

Expand Down

0 comments on commit 82398e4

Please sign in to comment.