Skip to content

Commit 3651c3e

Browse files
committedDec 1, 2020
1. 更新版本发布脚本
2. 更新依赖
1 parent 9598209 commit 3651c3e

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-9
lines changed
 

‎.github/workflows/python-publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
python -m pip install --upgrade pip
2424
pip install setuptools wheel twine
2525
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
26+
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
2627
- name: Build and publish
2728
env:
2829
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

‎requirements-dev.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Core
2+
torch>=1.2.0
3+
seqeval>=1.1.0
4+
datasets>=1.0, <1.3.*
5+
transformers>=3.2.0, <4
6+
pytorch_lightning>=1.0.0, <1.1.*
7+
8+
# Front End
9+
pygtrie==2.3.3
10+
11+
# For Train
12+
wandb
13+
ray[tune]
14+
15+
# For Docs
16+
sphinx
17+
sphinx_rtd_theme
18+
19+
# For deploy
20+
twine
21+
wheel
22+
setuptools~=46.4.0

‎setup.py

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#! /usr/bin/env python
22
# -*- coding: utf-8 -*_
33

4-
from distutils.core import setup
54
import setuptools
5+
from distutils.core import setup
66

77
from ltp import __version__ as version
88

@@ -18,15 +18,17 @@
1818
description='Language Technology Platform',
1919
long_description=long_description,
2020
long_description_content_type="text/markdown",
21-
packages=setuptools.find_packages(exclude=['tests', 'examples', 'docs']),
21+
packages=setuptools.find_packages(exclude=[
22+
'docs'
23+
'tools',
24+
'tests',
25+
'examples',
26+
'config',
27+
]),
2228
install_requires=[
23-
'torch>=1.2.0,<=1.7.0',
24-
'torchtext>=0.5.0,<=0.7.0',
25-
'transformers>=3.0, <=3.4.0',
26-
'pygtrie==2.3.3',
27-
'tqdm',
28-
'toml',
29-
'fire'
29+
"torch>=1.2.0",
30+
"transformers>=3.2.0, <4",
31+
"pygtrie>=2.3.0, <2.4"
3032
],
3133
classifiers=[
3234
'Development Status :: 1 - Planning',

0 commit comments

Comments
 (0)
Please sign in to comment.