Version application using setuptools_scm

Version has the format X.Y.Z.postN+g12345678
This commit is contained in:
Chris Mayo 2021-11-28 18:55:46 +00:00
parent edc974e7b9
commit af93386bcc
5 changed files with 18 additions and 11 deletions

View file

@ -13,7 +13,13 @@ WORKDIR /mnt
RUN pip install --no-cache-dir \
beautifulsoup4 dnspython pyxdg requests cchardet polib
RUN pip install --no-cache-dir \
https://github.com/linkchecker/linkchecker/archive/master.zip
RUN set -x \
&& apt-get update -qq \
&& apt-get install -y -qq --no-install-recommends git \
&& pip install --no-cache-dir git+https://github.com/linkchecker/linkchecker.git \
&& apt-get -y -qq purge git \
&& apt-get autoremove -y -qq \
&& apt-get clean -y -qq all \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["linkchecker"]

View file

@ -79,3 +79,5 @@ recursive-include windows \
*.cer \
*.pfx \
*.pvk
prune .github/

View file

@ -59,7 +59,7 @@ Release process
1. check whether updated translations need committing
(`make locale; make -C doc locale; make -C doc man`)
2. bump AppVersion in `setup.py`, edit `changelog.txt`, and if applicable the
2. edit `changelog.txt`, and if applicable the
copyright date in `linkcheck/configuration/__init__.py`
3. confirm tests have passed
@ -74,6 +74,4 @@ Release process
8. check distribution files (`twine check dist/*`) and upload to PyPI (`twine upload dist/*`)
9. create release (vX.Y.Z) on GitHub (GitHub creates the .tar.gz and .zip archives)
10. increment AppVersion to vX.Y.Z+1.dev0
9. create release (vX.Y.Z) on GitHub (warn users about GitHub archives)

View file

@ -4,12 +4,11 @@ sys.path.insert(0, os.path.abspath('../..'))
# -- Project information -----------------------------------------------------
from datetime import date
import linkcheck.configuration
project = 'LinkChecker'
copyright = linkcheck.configuration.Copyright.split("Copyright (C) ")[1]
version = str(date.today())
version = linkcheck.configuration.Version
release = version
# -- General configuration ---------------------------------------------------

View file

@ -53,8 +53,6 @@ except ImportError:
else:
COMPILE_TRANSLATIONS = True
# the application version
AppVersion = "10.0.1"
# the application name
AppName = "LinkChecker"
Description = "check links in web documents or full websites"
@ -336,7 +334,10 @@ if os.name == "posix":
setup(
name=AppName,
version=AppVersion,
use_scm_version={
"local_scheme": "node-and-timestamp",
"version_scheme": "post-release",
},
description=Description,
keywords="link,url,site,checking,crawling,verification,validation",
author=myname,
@ -371,6 +372,7 @@ setup(
options={},
# Requirements, usable with setuptools or the new Python packaging module.
python_requires=">= 3.6",
setup_requires=["setuptools_scm"],
install_requires=[
"requests >= 2.4",
"dnspython >= 2.0",