1
1
import os
2
+
2
3
from setuptools import setup
3
4
5
+
4
6
def read_version ():
5
- with open ("src/pyscript/version" , "r" ) as f :
7
+ with open ("src/pyscript/version" ) as f :
6
8
return f .read ().strip ("\n " )
7
9
10
+
8
11
def check_tag_version ():
9
12
tag = os .getenv ("GITHUB_REF" )
10
13
expected_version = read_version ()
11
14
if tag != f"refs/tags/{ expected_version } " :
12
- raise Exception (f"Tag '{ tag } ' does not match the expected "
13
- f"version '{ expected_version } '" )
15
+ raise Exception (
16
+ f"Tag '{ tag } ' does not match the expected " f"version '{ expected_version } '"
17
+ )
14
18
15
- with open ("README.md" , "r" ) as fh :
19
+
20
+ with open ("README.md" ) as fh :
16
21
long_description = fh .read ()
17
22
18
23
check_tag_version ()
@@ -29,53 +34,53 @@ def check_tag_version():
29
34
license = "Apache-2.0" ,
30
35
install_requires = [
31
36
'importlib-metadata; python_version<"3.8"' ,
32
- ' Jinja2<3.2' ,
33
- ' pluggy<1.3' ,
34
- ' rich<=13.7.1' ,
35
- ' toml<0.11' ,
36
- ' typer<=0.9.0' ,
37
- ' platformdirs<4.3' ,
38
- ' requests<=2.31.0' ,
37
+ " Jinja2<3.2" ,
38
+ " pluggy<1.3" ,
39
+ " rich<=13.7.1" ,
40
+ " toml<0.11" ,
41
+ " typer<=0.9.0" ,
42
+ " platformdirs<4.3" ,
43
+ " requests<=2.31.0" ,
39
44
],
40
45
python_requires = ">=3.9" ,
41
46
keywords = ["pyscript" , "cli" , "pyodide" , "micropython" , "pyscript-cli" ],
42
47
classifiers = [
43
- ' Development Status :: 4 - Beta' ,
44
- ' Environment :: Console' ,
45
- ' Intended Audience :: Developers' ,
46
- ' License :: OSI Approved :: Apache Software License' ,
47
- ' Programming Language :: Python :: 3' ,
48
- ' Programming Language :: Python :: 3.9' ,
49
- ' Programming Language :: Python :: 3.10' ,
50
- ' Topic :: Software Development :: Code Generators' ,
51
- ' Topic :: Software Development :: Libraries :: Python Modules' ,
52
- ' Topic :: Software Development :: Pre-processors' ,
48
+ " Development Status :: 4 - Beta" ,
49
+ " Environment :: Console" ,
50
+ " Intended Audience :: Developers" ,
51
+ " License :: OSI Approved :: Apache Software License" ,
52
+ " Programming Language :: Python :: 3" ,
53
+ " Programming Language :: Python :: 3.9" ,
54
+ " Programming Language :: Python :: 3.10" ,
55
+ " Topic :: Software Development :: Code Generators" ,
56
+ " Topic :: Software Development :: Libraries :: Python Modules" ,
57
+ " Topic :: Software Development :: Pre-processors" ,
53
58
],
54
59
extras_require = {
55
60
"dev" : [
56
61
"coverage<7.3" ,
57
62
"mypy<=1.4.1" ,
58
63
"pytest<7.5" ,
59
64
"types-toml<0.11" ,
60
- "types-requests"
65
+ "types-requests" ,
61
66
],
62
67
"docs" : [
63
68
"Sphinx<5.2" ,
64
69
"sphinx-autobuild<2021.4.0" ,
65
70
"sphinx-autodoc-typehints<1.20" ,
66
71
"myst-parser<0.19.3" ,
67
- "pydata-sphinx-theme<0.13.4"
68
- ]
72
+ "pydata-sphinx-theme<0.13.4" ,
73
+ ],
69
74
},
70
75
entry_points = {
71
- ' console_scripts' : [
72
- ' pyscript = pyscript.cli:app' ,
76
+ " console_scripts" : [
77
+ " pyscript = pyscript.cli:app" ,
73
78
],
74
79
},
75
80
project_urls = {
76
- ' Documentation' : ' https://docs.pyscript.net' ,
77
- ' Examples' : ' https://pyscript.com/@examples' ,
78
- ' Homepage' : ' https://pyscript.net' ,
79
- ' Repository' : ' https://github.com/pyscript/pyscript-cli' ,
81
+ " Documentation" : " https://docs.pyscript.net" ,
82
+ " Examples" : " https://pyscript.com/@examples" ,
83
+ " Homepage" : " https://pyscript.net" ,
84
+ " Repository" : " https://github.com/pyscript/pyscript-cli" ,
80
85
},
81
86
)
0 commit comments