#12038 closed defect (fixed)
Version number is invalid
Reported by: | Ryan J Ollos | Owned by: | Dirk Stöcker |
---|---|---|---|
Priority: | normal | Milestone: | plugin - spam-filter |
Component: | plugin/spamfilter | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
This is the same issue that was found with TracMercurial in #11993. Using tag_svn_revision
in setup.cfg
generates an invalid version string. Besides, it's not supported in setuptools ≥ 10.
The result is that tracfullblog.spamfilter
doesn't load.
2015-04-24 08:01:00,789 Trac[loader] ERROR: Skipping "tracfullblog.spamfilter = tracfullblog.spamfilter [spamfilter]": (version conflict "VersionConflict: (TracSpamFilter 1.0.6dev-r0 (/srv/trac-hacks.org/pve/lib/python2.7/site-packages), Requirement.parse('TracSpamFilter>=0.2'))")
$ python Python 2.7.9 (default, Feb 10 2015, 03:28:08) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import setuptools >>> setuptools.__version__ '12.0.5' >>> from pkg_resources import parse_version >>> parse_version('1.0.6dev-r0') > parse_version('0.2') False
Attachments (0)
Change History (6)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
I haven't tested, but it may be possible to retain the revision number in the package name by requiring setuptools_svn. This was suggested in the Setuptools release notes.
follow-up: 6 comment:3 by , 9 years ago
Unrelated: Would you have any interest in publishing the package to PyPI?: https://pypi.python.org/pypi/TracSpamFilter
comment:4 by , 9 years ago
Milestone: | → plugin - spam-filter |
---|
comment:6 by , 9 years ago
Replying to rjollos:
Unrelated: Would you have any interest in publishing the package to PyPI?: https://pypi.python.org/pypi/TracSpamFilter
See #12270.
To avoid problems in the interim I have this line in my site install scripts, after extracting the source from the archive: