Skip to content

Commit bb2f090

Browse files
committed
[fix] failure in building python package
1 parent 3ee8534 commit bb2f090

File tree

10 files changed

+12
-23
lines changed

10 files changed

+12
-23
lines changed

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
recursive-include longling *requirements*
2-
recursive-include longling/Architecture/meta_docs *
2+
recursive-include longling/infrastructure/meta_docs *
33
recursive-include longling/spider/meta_data *

longling/spider/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
from .download_data import download_file
2-
from .lib.utils import retry
2+
from longling.spider.web.utils import retry

longling/spider/lib/__init__.py

-4
This file was deleted.

longling/spider/web/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# coding: utf-8
2+
# tongshiwei@2024/4/21
File renamed without changes.
File renamed without changes.

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
[coverage:run]
22
source=longling
33
omit =
4-
longling/ML/toolkit/equipment.py
5-
longling/ML/TiMiT/*
6-
longling/ML/MxnetHelper/gallery/*
7-
longling/ML/MxnetHelper/glue/*
8-
longling/ML/PytorchHelper/tore/*
4+
longling/ml/toolkit/equipment.py
95
[coverage:report]
106
exclude_lines =
117
pragma: no cover

setup.py

+3-11
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
import io
44
import os
55
import re
6-
from distutils.core import setup
76

8-
from setuptools import find_packages
7+
from setuptools import find_packages, setup
98

109
test_deps = [
1110
'pytest>=4',
@@ -93,15 +92,8 @@ def find_version(*file_paths):
9392
packages=find_packages(
9493
include=[
9594
"longling",
96-
"*.toolbox", "*.toolbox.*",
97-
"*.lib", "*.lib.*",
98-
"*.spider", "*.spider.*",
99-
"*.Architecture", "*.Architecture.*",
100-
"*.ML*",
10195
],
10296
exclude=[
103-
"*.mx_example", "*.gluon_example*", "*.gluon_exp*",
104-
"*.mxnet_old*",
10597
]
10698
),
10799
entry_points={
@@ -135,11 +127,11 @@ def find_version(*file_paths):
135127
"full": full_deps
136128
},
137129
classifiers=[
138-
'Programming Language :: Python :: 3.6',
139-
'Programming Language :: Python :: 3.7',
140130
'Programming Language :: Python :: 3.8',
141131
'Programming Language :: Python :: 3.9',
142132
'Programming Language :: Python :: 3.10',
133+
'Programming Language :: Python :: 3.11',
134+
'Programming Language :: Python :: 3.12',
143135
"Environment :: Other Environment",
144136
"Intended Audience :: Developers",
145137
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",

tests/test_spider/test_html.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 2020/3/27 @ tongshiwei
33

44

5-
from longling.spider.lib import get_html_code
5+
from longling.spider.web.get_html import get_html_code
66

77

88
def test_get_html_code():

0 commit comments

Comments
 (0)