Switch version management to use setuptools_scm (#283)
* use setuptools_scm * update requirements
This commit is contained in:
1 parent
71eb160572
commit
b951c594db
5 files changed
+24
-27
No files matched your search
@@ -1,3 +1,7 @@
|
||||
import pkg_resources
|
||||
from pkg_resources import get_distribution, DistributionNotFound
|
||||
|
||||
__version__ = pkg_resources.require("domdiv")[0].version
|
||||
try:
|
||||
__version__ = get_distribution("domdiv").version
|
||||
except DistributionNotFound:
|
||||
# package is not installed
|
||||
pass
|
||||
Reference in new issue
Block a user