Skip to content

Commit df4165a

Browse files
committed
Remove VERSION.txt
1 parent be176c1 commit df4165a

File tree

5 files changed

+6
-12
lines changed

5 files changed

+6
-12
lines changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
include LICENSE
22
include README.md
3-
include VERSION.txt

VERSION.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
copyright = "2022, " + author
2222

2323
# The full version, including alpha/beta/rc tags
24-
with open("../VERSION.txt", "r") as f:
25-
release = f.read().strip()
24+
with open('../inflation/_version.py') as f:
25+
exec(f.read())
26+
release = __version__
2627

2728
# -- General configuration ---------------------------------------------------
2829

inflation/_version.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
import os
2-
3-
directory_of_this_file = os.path.dirname(os.path.abspath(__file__))
4-
5-
with open(f"{directory_of_this_file}/../VERSION.txt", "r") as f:
6-
__version__ = f.read().strip()
1+
__version__ = "1.0.0"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, find_packages
22

3-
with open("VERSION.txt", "r") as f:
4-
__version__ = f.read().strip()
3+
with open('inflation/_version.py') as f:
4+
exec(f.read())
55

66
setup(
77
name="inflation",

0 commit comments

Comments
 (0)