Skip to content

Commit

Permalink
rename retro/VERSION to retro/VERSION.txt (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeucler2018 authored Oct 3, 2023
1 parent 332bd1e commit ec90897
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ find_package(Git QUIET)

find_package(PythonInterp REQUIRED)

file(READ "${CMAKE_SOURCE_DIR}/retro/VERSION" PROJECT_VERSION)
file(READ "${CMAKE_SOURCE_DIR}/retro/VERSION.txt" PROJECT_VERSION)
string(REGEX REPLACE "\n$" "" PROJECT_VERSION "${PROJECT_VERSION}")
set_property(
DIRECTORY
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = "Farama Foundation"

# The full version, including alpha/beta/rc tags
with open(os.path.join(os.path.dirname(__file__), "../retro/VERSION")) as f:
with open(os.path.join(os.path.dirname(__file__), "../retro/VERSION.txt")) as f:
release = f.read()


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion retro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
core_path(os.path.join(os.path.dirname(__file__), "cores"))

with open(os.path.join(os.path.dirname(__file__), "VERSION")) as f:
with open(os.path.join(os.path.dirname(__file__), "VERSION.txt")) as f:
__version__ = f.read()


Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
from setuptools import Extension, setup
from setuptools.command.build_ext import build_ext

VERSION_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "retro/VERSION")
VERSION_PATH = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
"retro/VERSION.txt",
)

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
README = open(os.path.join(SCRIPT_DIR, "README.md")).read()
Expand Down

0 comments on commit ec90897

Please sign in to comment.