Skip to content

Commit

Permalink
Renaming metadata to project
Browse files Browse the repository at this point in the history
  • Loading branch information
KasukabeDefenceForce committed Jul 9, 2024
1 parent 560fa54 commit 1213977
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
9 changes: 4 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

with open(toml_conf_path, 'r') as f_toml:
toml_config = toml.load(f_toml)
toml_config_dict = toml_config["metadata"]
toml_config_dict = toml_config["project"]
for k,v in toml_config_dict.items():
print(k,v)

Expand Down Expand Up @@ -194,7 +194,7 @@

# This does not *have* to match the package name, but typically does
project = toml_config_dict["name"]
author = toml_config_dict["author"]
author = toml_config_dict["authors"][0]["name"]
copyright = "2013-{0}, {1}".format(datetime.datetime.now().year, author)

# The version info for the project you"re documenting, acts as replacement for
Expand Down Expand Up @@ -299,9 +299,8 @@
edit_on_github_doc_root = "docs"

# -- Resolving issue number to links in changelog -----------------------------
github_issues_url = "https://github.com/{0}/issues/".format(
toml_config_dict["github_project"]
)
github_issues_url = toml_config_dict['urls']['Issues']
print("HERE:", github_issues_url)


# -- Options for linkcheck output -------------------------------------------
Expand Down
15 changes: 14 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
[metadata]
name = tardis
author = TARDIS Collaboration
author_email = [email protected]
license = BSD 3-Clause
license_file = licenses/LICENSE.rst
url = https://tardis-sn.github.io/tardis
description = TARDIS - Temperature And Radiative Diffusion In Supernovae
long_description = file: README.rst
long_description_content_type = text/x-rst
edit_on_github = False
github_project = tardis-sn/tardis

[options]
zip_safe = False
packages = find:
Expand Down Expand Up @@ -75,4 +88,4 @@ exclude_lines =
[options.entry_points]
console_scripts =
cmfgen2tardis = tardis.scripts.cmfgen2tardis:main
tardis_test_runner = tardis.tests.integration_tests.runner:run_tests
tardis_test_runner = tardis.tests.integration_tests.runner:run_tests

0 comments on commit 1213977

Please sign in to comment.