-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
98 lines (89 loc) · 2.92 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
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
import os
from setuptools import find_packages, setup
def read_version():
with open("src/pyscript/version") as f:
return f.read().strip("\n")
def check_tag_version():
if os.getenv("CHECK_VERSION", "false").lower() == "true":
tag = os.getenv("GITHUB_REF")
expected_version = read_version()
if tag != f"refs/tags/{expected_version}":
raise Exception(
f"Tag '{tag}' does not match the expected "
f"version '{expected_version}'"
)
with open("README.md") as fh:
long_description = fh.read()
check_tag_version()
setup(
name="pyscript-cli",
version=read_version(),
description="Command Line Interface for PyScript",
package_dir={"": "src"},
packages=find_packages(where="src"),
package_data={"pyscript": ["templates/*.html"]},
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/pyscript/pyscript-cli",
author="Matt Kramer, Fabio Pliger, Nicholas Tollervey, Fabio Rosado, Madhur Tandon",
author_email=(
),
license="Apache-2.0",
install_requires=[
'importlib-metadata; python_version<"3.8"',
"Jinja2<3.2",
"pluggy==1.5.0",
"rich<=13.7.1",
"toml<0.11",
"typer<=0.9.0",
"platformdirs<4.3",
"requests<=2.31.0",
],
python_requires=">=3.9",
keywords=["pyscript", "cli", "pyodide", "micropython", "pyscript-cli"],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Pre-processors",
],
extras_require={
"dev": [
"coverage<7.3",
"mypy<=1.4.1",
"pytest<7.5",
"types-toml<0.11",
"types-requests",
],
"docs": [
"Sphinx<5.2",
"sphinx-autobuild<2021.4.0",
"sphinx-autodoc-typehints<1.20",
"myst-parser<0.19.3",
"pydata-sphinx-theme<0.13.4",
],
},
entry_points={
"console_scripts": [
"pyscript = pyscript.cli:app",
],
},
project_urls={
"Documentation": "https://docs.pyscript.net",
"Examples": "https://pyscript.com/@examples",
"Homepage": "https://pyscript.net",
"Repository": "https://github.com/pyscript/pyscript-cli",
},
zip_safe=False,
)