Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use the __about__ file - all part of pyproject.toml now #102

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading