update version to 1.1.1.

This commit is contained in:
Yoshihiro OKUMURA 2023-07-26 17:59:35 +09:00
parent 4d87b55b40
commit 8588c6ce70
Signed by: orrisroot
GPG Key ID: 470AA444C92904B2
5 changed files with 7 additions and 13 deletions

View File

@ -1 +0,0 @@
1.1.0

1
mdrsclient/VERSION Normal file
View File

@ -0,0 +1 @@
1.1.1

View File

@ -1,8 +1,8 @@
import os import os
here = os.path.realpath(os.path.dirname(__file__)) here = os.path.realpath(os.path.dirname(__file__))
__all__ = ["__version__"]
with open(os.path.join(here, "VERSION")) as version_file:
with open(os.path.join(os.path.dirname(here), "VERSION")) as version_file:
__version__ = version_file.read().strip() __version__ = version_file.read().strip()
__all__ = ["__version__"]

View File

@ -3,10 +3,9 @@ from typing import Final
from setuptools import find_packages, setup from setuptools import find_packages, setup
BASE_DIR: Final[str] = os.path.abspath(os.path.dirname(__file__)) from mdrsclient import __version__
with open(os.path.join(BASE_DIR, "VERSION")) as f: BASE_DIR: Final[str] = os.path.realpath(os.path.dirname(__file__))
__version__ = f.read().strip()
with open(os.path.join(BASE_DIR, "requirements.txt")) as f: with open(os.path.join(BASE_DIR, "requirements.txt")) as f:
__requirements__ = f.read().splitlines() __requirements__ = f.read().splitlines()
@ -34,12 +33,7 @@ setup(
packages=find_packages(), packages=find_packages(),
include_package_data=True, include_package_data=True,
package_data={ package_data={
"": [ "mdrsclient": ["VERSION"],
os.path.join(BASE_DIR, "README.md"),
os.path.join(BASE_DIR, "LICENSE"),
os.path.join(BASE_DIR, "VERSION"),
os.path.join(BASE_DIR, "requirements.txt"),
]
}, },
install_requires=__requirements__, install_requires=__requirements__,
entry_points={"console_scripts": ["mdrs=mdrsclient.__main__:main"]}, entry_points={"console_scripts": ["mdrs=mdrsclient.__main__:main"]},