-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
123 lines (116 loc) · 3.4 KB
/
Copy pathsetup.py
File metadata and controls
123 lines (116 loc) · 3.4 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/usr/bin/env python3
"""
Setup script for PyPage - Enhanced HTML Generator Library
"""
from setuptools import setup, find_packages
import os
# Read the README file for long description
def read_readme():
with open("README.md", "r", encoding="utf-8") as fh:
return fh.read()
# Read requirements from pyproject.toml or requirements file
def read_requirements():
requirements = []
if os.path.exists("requirements.txt"):
with open("requirements.txt", "r") as f:
requirements = [
line.strip() for line in f
if line.strip() and not line.startswith("#")
]
return requirements
setup(
name="pypage",
version="3.0.0",
author="PyPage Development Team",
author_email="savvythunder219@gmail.com",
description="Enhanced HTML Generator Library with advanced features",
long_description=read_readme(),
long_description_content_type="text/markdown",
url="https://github.com/pypage/pypage",
project_urls={
"Bug Tracker": "https://github.com/pypage/pypage/issues",
"Documentation": "https://docs.pypage.org",
"Source Code": "https://github.com/pypage/pypage",
},
packages=find_packages(where="src", exclude=["tests*", "test*", "docs*", "examples*"]),
package_dir={"": "src"},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup :: HTML",
"Topic :: Software Development :: Code Generators",
"Framework :: Flask",
],
python_requires=">=3.8",
install_requires=[
"flask>=2.0.0",
"flask-sqlalchemy>=3.0.0",
"sqlalchemy>=2.0.0",
"jinja2>=3.0.0",
"markupsafe>=2.0.0",
],
extras_require={
"dev": [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=22.0.0",
"flake8>=5.0.0",
"mypy>=1.0.0",
"pre-commit>=3.0.0",
],
"pdf": [
"weasyprint>=60.0",
"reportlab>=4.0.0",
],
"charts": [
"plotly>=5.0.0",
"matplotlib>=3.5.0",
],
"full": [
"weasyprint>=60.0",
"reportlab>=4.0.0",
"plotly>=5.0.0",
"matplotlib>=3.5.0",
],
},
entry_points={
"console_scripts": [
"pypage=pypage.cli:main",
],
},
include_package_data=True,
package_data={
"pypage": [
"templates/*.html",
"static/css/*.css",
"static/js/*.js",
],
},
keywords=[
"html",
"generator",
"web",
"framework",
"bootstrap",
"css",
"javascript",
"components",
"ui",
"responsive",
"dark-mode",
"animations",
"charts",
"forms",
],
zip_safe=False,
)