MovieHeavens icon indicating copy to clipboard operation
MovieHeavens copied to clipboard

Project dependencies may have API risk issues

Open PyDeps opened this issue 1 year ago • 1 comments

Hi, In MovieHeavens, inappropriate dependency versioning constraints can cause risks.

Below are the dependencies and version constraints that the project is using

PyQt5
requests
fake-useragent

The version constraint == will introduce the risk of dependency conflicts because the scope of dependencies is too strict. The version constraint No Upper Bound and * will introduce the risk of the missing API Error because the latest version of the dependencies may remove some APIs.

After further analysis, in this project, The version constraint of dependency requests can be changed to >=0.2.1,<=0.2.3. The version constraint of dependency requests can be changed to >=0.7.0,<=2.24.0. The version constraint of dependency requests can be changed to ==2.26.0.

The above modification suggestions can reduce the dependency conflicts as much as possible, and introduce the latest version as much as possible without calling Error in the projects.

The invocation of the current project includes all the following methods.

The calling methods from the requests
requests.get
The calling methods from the all methods
PyQt5.QtWidgets.QGridLayout
self.init_widgets.init_layout.init_event
self.search_content_text_list.clear
self.__all_page_details_url_list.extend
re.compile
PyQt5.QtWidgets.QApplication.clipboard.clear
self.menu_bar.addMenu.addAction
len
movieSource.fake_user_agent.useragent_random
self.movie_source_combobox.addItem
self.search_push_button.clicked.connect
str
PyQt5.QtWidgets.QAction.setIcon
PyQt5.QtWidgets.QGridLayout.addWidget
PyQt5.QtWidgets.QLabel
watch_action.triggered.connect
PyQt5.QtGui.QImage
random.choice
self.search_content_text_list.itemClicked.connect
download_url_list.append
self.__get_movie_contents_url
int
self.setGeometry
ImageWindow
reward_action.triggered.connect
WorkThread
self.tr
self.setWindowTitle
self.reward_window.show
movieSource.MovieHeaven.MovieHeaven
PyQt5.QtWidgets.QApplication.exec_
PyQt5.QtGui.QIcon
self.__pool.join
self.menuBar
self.__next_page_detail
self.get_select_movie_source
re.compile.findall
self.search_content_text_list.addItems
LayoutDialog
PyQt5.QtGui.QPixmap.height
PyQt5.QtGui.QPixmap
self.movies_list.append
PyQt5.QtWidgets.QMessageBox.critical
self.movie_name_line_edit.text.encode
self.__get_movie_down_url
PyQt5.QtWidgets.QApplication.clipboard
self.__get_page_number_total
PyQt5.QtWidgets.QPushButton
range
PyQt5.QtWidgets.QLineEdit
self.ImageWindow.super.__init__
self.watch_window.show
PyQt5.QtWidgets.QVBoxLayout
search_movies.get_display_content
self.__get_headers
PyQt5.QtGui.QPixmap.width
self.setCentralWidget
PyQt5.QtWidgets.QWidget.setLayout
PyQt5.QtWidgets.QAction
PyQt5.QtWidgets.QLabel.setPixmap
PyQt5.QtWidgets.QApplication.clipboard.setText
self.work.render
self.__search_movie_results
requests.get
self.__pool.map
PyQt5.QtWidgets.QVBoxLayout.addWidget
self.__get_movies_detail_page
self.__get_search_content_by_url
PyQt5.QtWidgets.QComboBox
self.search_content_text_list.currentItem
PyQt5.QtCore.QThread.__init__
self.movie_source_combobox.currentText
magnet_down_pattern.findall.replace
PyQt5.QtWidgets.QMessageBox.information
super.__init__
self.start
super
self.search_content_text_list.currentItem.text
self.__pool.close
PyQt5.QtWidgets.QLabel.resize
LayoutDialog.show
PyQt5.QtWidgets.QWidget
self.tip_label.setText
self.menu_bar.addMenu
multiprocessing.dummy.Pool
PyQt5.QtWidgets.QApplication
self.critical
PyQt5.QtWidgets.QListWidget
self.slot_information
self.init_widgets.init_layout
self.movie_name_line_edit.text
self.init_widgets

@developer Could please help me check this issue? May I pull a request to fix it? Thank you very much.

PyDeps avatar Oct 26 '22 02:10 PyDeps