-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (44 loc) · 1.36 KB
/
Copy pathsetup.py
File metadata and controls
51 lines (44 loc) · 1.36 KB
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
46
47
48
49
50
51
from setuptools import setup, find_packages
title = "extractsql"
user = "cbaldelomar"
repo_url = f"https://github.com/{user}/{title}"
cli = f"{title}={title}.main:main"
requires = [
"pyodbc>=5.1.0",
"XlsxWriter>=3.2.0",
"pyarrow>=18.1.0",
"charset_normalizer>=3.4.1",
"tqdm>=4.67.1",
]
encoding = "utf-8"
with open("README.md", encoding=encoding) as f:
readme = f.read()
# Read the version number from __version__.py
version = {}
with open("extractsql/__version__.py", encoding=encoding) as f:
exec(f.read(), version)
setup(
name=title,
version=version["__version__"],
description="Extract data from SQL database into an output file.",
long_description=readme,
long_description_content_type="text/markdown",
author=user,
url=repo_url, # GitHub repository URL
packages=find_packages(), # Automatically find modules
python_requires=">=3.8", # Specify minimum Python version
install_requires=requires,
entry_points={
"console_scripts": [
cli, # CLI entry point
],
},
keywords="SQL Excel csv txt export data extraction",
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
],
)