Skip to content

Commit

Permalink
Update dependencies and reformat code for readability
Browse files Browse the repository at this point in the history
Replaced "cachecontrol<=0.12.11" and "lockfile" with "cachecontrol[filecache]" in `install_requires` #149. Reformatted various sections for better readability. Minor fixes to ensure consistency in quotations and syntax.
  • Loading branch information
dvershinin committed Jul 28, 2024
1 parent a302d65 commit bac2f51
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@
# https://github.com/ionrock/cachecontrol/issues/137
"requests>=2.6.1",
"packaging",
# Cachecontrol 0.12.12 uses filelock instead of lockfile, and reverts to lockfile in 0.12.14.
# Newer versions use filelock, but most distros package cachecontrol 0.12.11.
# Ideally we can specify 0.12.14, but pip doesn't allow this, so just pin to what we can
"cachecontrol<=0.12.11",
"lockfile",
"cachecontrol[filecache]",
"appdirs",
"feedparser",
"python-dateutil",
Expand All @@ -48,15 +44,17 @@
"mkdocs==1.5.3",
"mkdocs-material==9.5.3",
"mkdocstrings[python]",
"markdown-include"
"markdown-include",
]

with io.open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

base_dir = os.path.join(os.path.dirname(__file__), "src")

with open(os.path.join(base_dir, "lastversion", "__about__.py"), "r", encoding="utf-8") as f:
with open(
os.path.join(base_dir, "lastversion", "__about__.py"), "r", encoding="utf-8"
) as f:
version = _version_re.search(f.read()).group(1)

setup(
Expand All @@ -68,8 +66,8 @@
description="A CLI tool to find the latest stable version of an arbitrary project",
long_description=long_description,
long_description_content_type="text/markdown",
package_dir={'': 'src'},
packages=find_packages(where='src'),
package_dir={"": "src"},
packages=find_packages(where="src"),
zip_safe=False,
license="BSD",
install_requires=install_requires,
Expand Down Expand Up @@ -100,6 +98,6 @@
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
python_requires='>=3.6',
keywords="version, release, latest, stable, pypi, github, gitlab, bitbucket, mercurial, hg, wordpress"
python_requires=">=3.6",
keywords="version, release, latest, stable, pypi, github, gitlab, bitbucket, mercurial, hg, wordpress",
)

0 comments on commit bac2f51

Please sign in to comment.