-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
45 lines (41 loc) · 1.45 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import sys
from cx_Freeze import setup, Executable
from setuptools import find_packages
# Load README and requirements
with open("README.md", "r", encoding="utf-8") as fh:
readme = fh.read()
with open("requirements.txt", "r", encoding="utf-8") as fh:
requirements = fh.read().splitlines()
# Dependencies to be included
build_exe_options = {
"packages": ["os", "seleniumbase", "distance", "Levenshtein"],
"include_files": ["SemanticScholarScrapper.py", "requirements.txt"],
"excludes": ["tkinter.test"],
}
# Main setup configuration
setup(
name="Zotero2SemanticScholar",
version="0.1",
author="David Algis",
author_email="[email protected]",
description=
"A package to send Zotero library entries to Semantic Scholar and add alerts for them.",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/davidAlgis/zotero2SemanticScholar",
packages=find_packages(),
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
options={"build_exe": build_exe_options},
executables=[
Executable(
script="main.py", # Your main Python file
base=None,
target_name="Zotero2SemanticScholar.exe", # Name of the executable
icon=None, # Add an icon path here if you have one
)
],
)