summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hsuan Yen <yan12125@gmail.com>2020-12-25 14:42:42 +0800
committerChih-Hsuan Yen <yan12125@gmail.com>2020-12-25 14:42:42 +0800
commit731e1e6c5c7bc73519922847d116ed9ed6833f3b (patch)
treeeb96b0fe9bd398779752ce2fe594ca9726c9251d
parentadf71a781816d61db524441fcce2c097106a73b5 (diff)
downloadpython-setuptools-git-731e1e6c5c7bc73519922847d116ed9ed6833f3b.tar.gz
egg_info: avoid non-PEP440 versions from tag_date
-rw-r--r--setuptools/command/egg_info.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 0b7ad677..97e10d99 100644
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -140,7 +140,7 @@ class InfoCommon:
if self.tag_build:
version += self.tag_build
if self.tag_date:
- version += time.strftime("-%Y%m%d")
+ version += time.strftime("%Y%m%d")
return version
vtags = property(tags)