Skip to content

Commit 66f59c5

Browse files
committed
Fix build
1 parent 65b3d53 commit 66f59c5

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ recursive-include src *.yml
22
recursive-include src *.yaml
33
recursive-include src *.ico
44
recursive-include src *.png
5+
include VERSION

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=43.0.0", "wheel"]
2+
requires = ["setuptools>=43.0.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -76,4 +76,4 @@ robot = [
7676
Source = "https://github.com/TheDeanLab/navigate"
7777

7878
[tool.setuptools.dynamic]
79-
version = {attr = "navigate.__version__"}
79+
version = {file = "src/navigate/VERSION"}

src/navigate/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.2

src/navigate/__init__.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
from ._version import __version__ # noqa: F401
1+
import os
2+
from pathlib import Path
3+
24
from ._commit import __commit__ # noqa: F401
5+
6+
with open(os.path.join(Path(__file__).resolve().parent, 'VERSION')) as version_file:
7+
__version__ = version_file.read().strip()
8+

src/navigate/_version.py

-1
This file was deleted.

0 commit comments

Comments
 (0)