Skip to content

Commit e59ab27

Browse files
authored
Fix build and checks (#1099)
* fix setup.py * fix check
1 parent e584b95 commit e59ab27

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ requires = [
66
"setuptools>=42",
77
"wheel",
88
"ninja; sys_platform != 'win32' and platform_machine != 'arm64'",
9-
"cmake>=3.12",
10-
]
9+
"cmake>=3.12"]
1110
build-backend = "setuptools.build_meta"
1211

1312
[tool.black]

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import subprocess
99
import sys
1010

11+
from pathlib import Path
1112
from setuptools import Extension, find_packages, setup
1213
from setuptools.command.build_ext import build_ext
1314

@@ -129,6 +130,9 @@ def build_extension(self, ext):
129130
subprocess.check_call(["cmake", "--build", "."] + build_args, cwd=self.build_temp)
130131

131132

133+
this_directory = Path(__file__).parent
134+
long_description = (this_directory / "README.md").read_text()
135+
132136
# The information here can also be placed in setup.cfg - better separation of
133137
# logic and declaration, and simpler if you include description/version in a file.
134138
setup(
@@ -137,7 +141,8 @@ def build_extension(self, ext):
137141
author="Mjx Project Team",
138142
author_email="koyamada-s@sys.i.kyoto-u.ac.jp",
139143
description="",
140-
long_description="",
144+
long_description=long_description,
145+
long_description_content_type='text/markdown',
141146
packages=find_packages("."),
142147
package_dir={"": "."},
143148
package_data={"mjx": ["visualizer/*.svg", "visualizer/GL-MahjongTile.ttf"]},

0 commit comments

Comments
 (0)