diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index ea1d52b..fde7c89 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -35,6 +35,10 @@ jobs: - name: Test with pytest run: | poetry run pytest . + release: + runs-on: ubuntu-latest + if: github.ref_name == 'tag' || github.event.action == 'published' + steps: - name: Build wheel run: python -m build - name: Publish package on PyPi diff --git a/pyproject.toml b/pyproject.toml index a5fcede..c3aa00d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "djkit" -version = "1.0.8" +version = "1.0.9" description = "A library for handling common stuff in Django" authors = ["leondaz "] license = "MIT" diff --git a/setup.py b/setup.py index 70d4d95..dd1af95 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="djkit", - version="1.0.8", + version="1.0.9", description="Django rest framework common utilities", author="LeOndaz", author_email="ahmeddark369@gmail.com", diff --git a/source/conf.py b/source/conf.py deleted file mode 100644 index adf6f21..0000000 --- a/source/conf.py +++ /dev/null @@ -1,39 +0,0 @@ -import sys -from pathlib import Path - -from dotenv import load_dotenv - -# project path -ROOT_PATH = Path(".").resolve().parent.as_posix() -ENV_FILE = (Path(".").resolve() / ".env").parent.as_posix() - -load_dotenv(ENV_FILE) - -sys.path.insert(0, ROOT_PATH) - -# Configuration file for the Sphinx documentation builder. -# -# For the full list of built-in configuration values, see the documentation: -# https://www.sphinx-doc.org/en/master/usage/configuration.html - -# -- Project information ----------------------------------------------------- -# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information - -project = "drf-common" -copyright = "2023, LeOndaz" -author = "LeOndaz" -release = "1.0.6" - -# -- General configuration --------------------------------------------------- -# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration - -extensions = ["sphinx.ext.autodoc"] - -templates_path = ["_templates"] -exclude_patterns = [] - -# -- Options for HTML output ------------------------------------------------- -# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output - -html_theme = "alabaster" -html_static_path = ["_static"] diff --git a/source/drf_common.rst b/source/drf_common.rst deleted file mode 100644 index 30807d1..0000000 --- a/source/drf_common.rst +++ /dev/null @@ -1,34 +0,0 @@ -drf\_common package -=================== - -drf\_common.mixins module -------------------------- - -.. automodule:: drf_common.mixins - :members: - :undoc-members: - :show-inheritance: - -drf\_common.serializers module ------------------------------- - -.. automodule:: drf_common.serializers - :members: - :undoc-members: - :show-inheritance: - -drf\_common.viewsets module ---------------------------- - -.. automodule:: drf_common.viewsets - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: drf_common - :members: - :undoc-members: - :show-inheritance: diff --git a/source/index.rst b/source/index.rst deleted file mode 100644 index 5d918a0..0000000 --- a/source/index.rst +++ /dev/null @@ -1,16 +0,0 @@ -drf-common -====================================== - -.. toctree:: - :maxdepth: 3 - :caption: Contents: - - drf_common - - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/source/modules.rst b/source/modules.rst deleted file mode 100644 index 0388799..0000000 --- a/source/modules.rst +++ /dev/null @@ -1,7 +0,0 @@ -drf_common -========== - -.. toctree:: - :maxdepth: 4 - - drf_common