File tree Expand file tree Collapse file tree 4 files changed +22
-7
lines changed Expand file tree Collapse file tree 4 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 11__pycache__
22build
3+ dist
4+ quickjs.egg-info
Original file line number Diff line number Diff line change 1+ PYTHON = python3.6
12
23test : install
3- python3 -m unittest
4+ $( PYTHON ) -m unittest
45
56install : build
6- python3 setup.py install --user
7+ $( PYTHON ) setup.py install --user
78
89build : Makefile module.c third-party/quickjs.c third-party/quickjs.h
9- python3 setup.py build
10+ $( PYTHON ) setup.py build
1011
1112format :
12- python3 -m yapf -i -r --style .style.yapf .
13+ $( PYTHON ) -m yapf -i -r --style .style.yapf .
1314 clang-format-7 -i module.c
1415
16+ distribute : test
17+ rm -rf dist/
18+ $(PYTHON ) setup.py sdist
19+
20+ upload-test : distribute
21+ $(PYTHON ) -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
22+
23+ upload : distribute
24+ $(PYTHON ) -m twine upload dist/* quickjs.egg-info/
25+
1526clean :
16- rm -rf build/
27+ rm -rf build/ dist/
Original file line number Diff line number Diff line change 1+ import setuptools
12from distutils .core import setup , Extension
23
34_quickjs = Extension ('_quickjs' ,
89 ])
910
1011setup (name = 'quickjs' ,
11- version = '1.0' ,
12+ version = '1.0.2 ' ,
1213 description = 'Wrapping the quickjs C library.' ,
1314 packages = ["quickjs" ],
1415 ext_modules = [_quickjs ])
Original file line number Diff line number Diff line change @@ -157,7 +157,8 @@ def test_json(self):
157157
158158class FunctionTest (unittest .TestCase ):
159159 def test_adder (self ):
160- f = quickjs .Function ("adder" , """
160+ f = quickjs .Function (
161+ "adder" , """
161162 function adder(x, y) {
162163 return x + y;
163164 }
You can’t perform that action at this time.
0 commit comments