Skip to content

Commit 7aa2d28

Browse files
GH-6: Fix the ModuleNotFoundError error (GH-7)
2 parents 24a8f40 + 7c18d59 commit 7aa2d28

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
File renamed without changes.
File renamed without changes.

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
.strip()
1111
)
1212

13+
if "-" in version:
14+
# when not on tag, git describe outputs: "v1.0.0-4-g24a8f40"
15+
# pip has gotten strict with version numbers
16+
# so change it to: "1.0.0+4.git.g24a8f40"
17+
# See: https://peps.python.org/pep-0440/#local-version-segments
18+
v, i, s = version.split("-")
19+
version = v + "+" + i + ".git." + s
20+
1321
assert "-" not in version
1422
assert "." in version
1523

@@ -21,7 +29,7 @@
2129
version=version,
2230
author="Artyom Vancyan",
2331
author_email="[email protected]",
24-
description="",
32+
# description="",
2533
# long_description=long_description,
2634
# long_description_content_type="text/markdown",
2735
url="https://github.com/pysnippet/fuzzymap",

0 commit comments

Comments
 (0)