Skip to content

Commit

Permalink
Don't use the __about__ file - all part of pyproject.toml now.
Browse files Browse the repository at this point in the history
  • Loading branch information
dougthor42 committed Nov 6, 2023
1 parent c8dbe5f commit a4a3cf9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 47 deletions.
19 changes: 9 additions & 10 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,17 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import importlib.metadata
import logging
import os
import sys
from typing import Dict

logging.disable(logging.CRITICAL)

sys.path.insert(0, os.path.abspath(".."))

base_dir = os.path.join(os.path.dirname(__file__), os.pardir)
about = {}
with open(os.path.join(base_dir, "wafer_map", "__about__.py")) as f:
exec(f.read(), about)
__version__ = importlib.metadata.version("wafer_map")


# -- General configuration ------------------------------------------------
Expand Down Expand Up @@ -74,18 +73,18 @@
master_doc = "index"

# General information about the project.
project = about["__project_name__"]
copyright = "2017, {}".format(about["__author__"])
author = about["__author__"]
project = "wafer_map"
copyright = "2017, Douglas Thor"
author = "Douglas Thor"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = about["__version__"]
version = __version__
# The full version, including alpha/beta/rc tags.
release = about["__version__"]
release = __version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -133,7 +132,7 @@

# -- Options for LaTeX output ---------------------------------------------

latex_elements = {
latex_elements: Dict[str, str] = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
Expand Down
37 changes: 0 additions & 37 deletions src/wafer_map/__about__.py

This file was deleted.

0 comments on commit a4a3cf9

Please sign in to comment.