Skip to content

Commit 4944e41

Browse files
authored
Merge pull request #511 from OmkarPh/py3Support
Add support for python3
2 parents 56901d8 + 48fc443 commit 4944e41

5 files changed

Lines changed: 43 additions & 31 deletions

File tree

.travis.yml

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,67 @@
11
matrix:
22
include:
3-
- os: linux
4-
dist: xenial
3+
- os: macos
54
sudo: required
65
language: node_js
7-
node_js: 10
8-
python: 2.7.13
6+
node_js: 16
7+
python: 3.7
8+
osx_image: xcode11
99
env:
1010
- CC=clang
1111
- CXX=clang++
1212
- npm_config_clang=1
1313
script:
14-
- sudo apt install build-essential -y
1514
- npm install
1615
- npm test
1716
- python build.py
18-
19-
- os: macos
17+
18+
- os: linux
19+
dist: focal
2020
sudo: required
2121
language: node_js
22-
node_js: 10
23-
osx_image: xcode11
22+
node_js: 16
23+
python: 3.7
2424
env:
2525
- CC=clang
2626
- CXX=clang++
2727
- npm_config_clang=1
2828
script:
29+
- sudo apt install build-essential -y
2930
- npm install
3031
- npm test
3132
- python build.py
3233

3334
- os: linux
34-
dist: xenial
35-
python: 2.7.13
35+
dist: bionic
3636
sudo: required
37+
language: node_js
38+
node_js: 16
39+
python: 3.7
40+
env:
41+
- CC=clang
42+
- CXX=clang++
43+
- npm_config_clang=1
3744
script:
38-
- sudo pip install Sphinx sphinx_rtd_theme doc8
39-
- chmod +x ./docs/scripts/sphinx_build_link_check.sh
40-
- chmod +x ./docs/scripts/doc8_style_check.sh
41-
- "./docs/scripts/sphinx_build_link_check.sh"
42-
- "./docs/scripts/doc8_style_check.sh"
43-
45+
- sudo apt install build-essential -y
46+
- npm install
47+
- npm test
48+
- python build.py
49+
4450
- os: linux
4551
dist: xenial
46-
python: 3.6
4752
sudo: required
53+
language: node_js
54+
node_js: 16
55+
python: 3.7
56+
env:
57+
- CC=clang
58+
- CXX=clang++
59+
- npm_config_clang=1
4860
script:
49-
- sudo pip install Sphinx sphinx_rtd_theme doc8
50-
- chmod +x ./docs/scripts/sphinx_build_link_check.sh
51-
- chmod +x ./docs/scripts/doc8_style_check.sh
52-
- "./docs/scripts/sphinx_build_link_check.sh"
53-
- "./docs/scripts/doc8_style_check.sh"
54-
61+
- sudo apt install build-essential -y
62+
- npm install
63+
- npm test
64+
- python build.py
5565

5666
addons:
5767
ssh_known_hosts: web.sourceforge.net

build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def get_git_version():
134134
# this may fail with exceptions
135135
cmd = 'git', 'describe', '--tags', '--long', '--dirty',
136136
version = subprocess.check_output(cmd, stderr=subprocess.STDOUT).strip()
137+
version = version.decode('utf-8')
137138
dirty = version.endswith('-dirty')
138139
if dirty:
139140
version, _, _ = version.rpartition('-')
@@ -193,6 +194,7 @@ def build(clean=True, app_name=APP_NAME,
193194
npm_bin = subprocess.check_output(['npm', 'bin'], stderr=subprocess.STDOUT, shell=True)
194195
else:
195196
npm_bin = subprocess.check_output(['npm', 'bin'], stderr=subprocess.STDOUT,)
197+
npm_bin = npm_bin.decode('utf-8')
196198
npm_bin = npm_bin.strip()
197199
print('using NPM bin at:', npm_bin)
198200

docs/source/contribute/building.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ Building Requirements
3535
Linux
3636
-----
3737

38-
- Python 2.7
38+
- Python 3.7
3939
- `Node.js version <https://nodejs.org/en/download/package-manager/>`_ 6.x or later
4040
- npm 3.10.x or later but <= 5.2.0 (run ``npm install npm@5.2.0 -g``)
4141

4242
MacOS
4343
-----
4444

45-
- Python 2.7
45+
- Python 3.7
4646
- `Node.js <https://nodejs.org/en/>`_ >=6.x or later but <=8.9.4
4747
- npm 3.10.x or later but <= 5.2.0 (run ``npm install npm@5.2.0 -g``)
4848
- Command Line Tools for `Xcode <https://developer.apple.com/xcode/downloads/>`_
@@ -53,7 +53,7 @@ Windows
5353

5454
- `Node.js <https://nodejs.org/en/>`_ 6.x or later
5555
- npm 3.10.x or later but <= 5.2.0 (``run npm install npm@5.2.0 -g``)
56-
- Python v2.7.x
56+
- Python v3.7.x
5757

5858
* Make sure your Python path is set. To verify, open a command prompt and type
5959
``python --version``. Then, the version of python will be displayed.

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"asar": "^3.1.0",
3131
"chai": "^4.3.4",
3232
"chai-subset": "^1.6.0",
33-
"electron": "^13.0.0",
33+
"electron": "13.0.0",
3434
"electron-packager": "^15.4.0",
3535
"electron-rebuild": "^3.2.5",
3636
"eslint": "^8.6.0",
@@ -46,7 +46,7 @@
4646
"@electron/remote": "^2.0.1",
4747
"JSONStream": "^1.3.5",
4848
"packageurl-js": "^0.0.5",
49-
"sequelize": "^4.44.3",
49+
"sequelize": "4.44.3",
5050
"sequelize-cli": "6.3.0",
5151
"sqlite3": "^4.2.0"
5252
}

0 commit comments

Comments
 (0)