Skip to content

Commit cc2c8fe

Browse files
committed
Use a virtualenv for development.
1 parent 8ecd523 commit cc2c8fe

File tree

6 files changed

+167
-4
lines changed

6 files changed

+167
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ __pycache__
22
build
33
dist
44
quickjs.egg-info
5+
*.so

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
PYTHON = python3.6
1+
PYTHON = python
22

33
test: install
44
$(PYTHON) -m unittest
55

66
install: build
7-
$(PYTHON) setup.py install --user
7+
$(PYTHON) setup.py develop
88

99
build: Makefile module.c third-party/quickjs.c third-party/quickjs.h
1010
$(PYTHON) setup.py build
1111

1212
format:
13-
$(PYTHON) -m yapf -i -r --style .style.yapf .
13+
$(PYTHON) -m yapf -i -r --style .style.yapf *.py
1414
clang-format-7 -i module.c
1515

1616
distribute: test

Pipfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
8+
[packages]
9+
yapf = "*"
10+
setuptools = "*"
11+
wheel = "*"
12+
twine = "*"
13+
14+
[requires]
15+
python_version = "3.8"

Pipfile.lock

Lines changed: 144 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
Just install with
22

33
pip install quickjs
4+
5+
# Developing
6+
Use a `pipenv shell` and `make test` should work from inside its virtual environment.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
author_email="petter.strandmark@gmail.com",
1515
name='quickjs',
1616
url='https://github.com/PetterS/quickjs',
17-
version='1.0.9',
17+
version='1.0.10',
1818
description='Wrapping the quickjs C library.',
1919
long_description=long_description,
2020
packages=["quickjs"],

0 commit comments

Comments
 (0)