Skip to content

Commit

Permalink
Minor tweaks in setup.py:
Browse files Browse the repository at this point in the history
- add project_urls,
- show version as diagnostic output in setup.py meta,
- set Description-Content-Type in package metadata.
  • Loading branch information
RKrahl committed Nov 26, 2023
1 parent a4ef35a commit 8147fb8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ def finalize_options(self):
self.package_dir[name] = convert_path(path)

def run(self):
version = self.distribution.get_version()
log.info("version: %s", version)
values = {
'version': self.distribution.get_version(),
'doc': docstring
'version': version,
'doc': docstring,
}
try:
pkgname = self.distribution.packages[0]
Expand Down Expand Up @@ -129,6 +131,7 @@ def run(self):
version = version,
description = docstring.split("\n")[0],
long_description = readme,
long_description_content_type = "text/x-rst",
url = "https://github.com/RKrahl/archive-tools",
author = "Rolf Krahl",
author_email = "[email protected]",
Expand All @@ -148,6 +151,10 @@ def run(self):
"Programming Language :: Python :: 3.12",
"Topic :: System :: Archiving",
],
project_urls = dict(
Source="https://github.com/RKrahl/archive-tools",
Download="https://github.com/RKrahl/archive-tools/releases/latest",
),
packages = ["archive", "archive.cli", "archive.bt"],
python_requires = ">=3.6",
install_requires = ["PyYAML", "packaging", "lark"],
Expand Down

0 comments on commit 8147fb8

Please sign in to comment.