Skip to content

Commit 8c3e56f

Browse files
committed
Release 0.4a1
1 parent 9565d8a commit 8c3e56f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

mlresearch/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
2121
#
2222

23-
__version__ = "0.3.5.dev0"
23+
__version__ = "0.4a1"

setup.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
import codecs
2+
from pathlib import Path
33
from setuptools import find_packages, setup
44

55
try:
@@ -16,6 +16,12 @@
1616
# Python import machinery.
1717
builtins.__MLRESEARCH_SETUP__ = True
1818

19+
20+
def get_long_description() -> str:
21+
CURRENT_DIR = Path(__file__).parent
22+
return (CURRENT_DIR / "README.md").read_text(encoding="utf8")
23+
24+
1925
import mlresearch._min_dependencies as min_deps
2026

2127
ver_file = os.path.join("mlresearch", "_version.py")
@@ -29,8 +35,6 @@
2935
SHORT_DESCRIPTION = (
3036
"Implementation of Machine Learning algorithms, experiments and utilities."
3137
)
32-
with codecs.open("README.md", encoding="utf-8-sig") as f:
33-
LONG_DESCRIPTION = f.read()
3438
LICENSE = "MIT"
3539
CLASSIFIERS = [
3640
"Intended Audience :: Science/Research",
@@ -60,7 +64,8 @@
6064
download_url=URL,
6165
version=VERSION,
6266
description=SHORT_DESCRIPTION,
63-
long_description=LONG_DESCRIPTION,
67+
long_description=get_long_description(),
68+
long_description_content_type="text/markdown",
6469
license=LICENSE,
6570
classifiers=CLASSIFIERS,
6671
packages=find_packages(),

0 commit comments

Comments
 (0)