Skip to content

Commit 8a4eceb

Browse files
author
chuanchenlv
committed
Modify gitignore and add setup
1 parent c20e88c commit 8a4eceb

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ __pycache__
99
*.egg-info
1010
.DS_Store
1111
/OpenHowNet/HowNet_dict_complete
12-
/*.py
1312
/*.sh

setup.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import setuptools
2+
3+
VERSION = "test"
4+
5+
with open("README.md", "r", encoding="utf-8") as fh:
6+
long_description = '<h1 align="center">OpenHowNet</h1>\n'+fh.read().split('### [中文版本](README_ZH.md)\n\n')[1]
7+
8+
setuptools.setup(
9+
name="OpenHowNet",
10+
version=VERSION,
11+
author="THUNLP",
12+
author_email="thunlp@gmail.com",
13+
description="OpenHowNet",
14+
long_description=long_description,
15+
long_description_content_type="text/markdown",
16+
url="https://github.com/thunlp/OpenHowNet",
17+
packages=setuptools.find_packages(),
18+
classifiers=[
19+
"Programming Language :: Python :: 3",
20+
"License :: OSI Approved :: MIT License",
21+
"Operating System :: OS Independent",
22+
],
23+
python_requires=">=3.6"
24+
)

0 commit comments

Comments
 (0)