-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
39 lines (37 loc) · 1.17 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
from setuptools import setup, find_packages
def read_readme():
"""Read README.md and handle potential UTF-8 BOM."""
try:
# First try UTF-8
with open("README.md", "r", encoding="utf-8") as f:
return f.read()
except UnicodeDecodeError:
# If that fails, try UTF-8-SIG (UTF-8 with BOM)
with open("README.md", "r", encoding="utf-8-sig") as f:
return f.read()
setup(
name="jsondetective",
version="1.0.2",
packages=find_packages(),
install_requires=[
"rich>=13.0.0",
"click>=7.1.2",
],
entry_points={
"console_scripts": [
"jsondetective=jsondetective.cli:main",
],
},
author="Tim Farrelly",
author_email="[email protected]",
description="Instantly understand JSON structure through automatic schema inference",
long_description=read_readme(),
long_description_content_type="text/markdown",
url="https://github.com/timf34/jsondetective",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
)