Skip to content

Commit 2b92500

Browse files
authored
Merge pull request #5 from ptomulik/issue-4
Fixed issue #4
2 parents c40a215 + b87801f commit 2b92500

45 files changed

Lines changed: 72 additions & 52 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ python:
55
- 2.7
66
- 3.5
77
- 3.6
8-
- 3.7-dev
8+
- 3.7
9+
- 3.8
10+
- 3.9-dev
911

1012
addons:
1113
apt:

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
RELEASE 0.7.4 - Fri, Apr 17 2020
2+
- fixed issue #4 - review and update
13
RELEASE 0.7.3 - Wed, Feb 26 2020
24
- declared all *.py sources as utf8 (PEP 263)
35
- modified scripts such that CI tests shall pass also under py2.7.

Pipfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ url = "https://pypi.org/simple"
33
verify_ssl = true
44
name = "pypi"
55

6-
76
[dev-packages]
8-
scons = ">=3.0.1"
7+
scons-select = { path = "./deps/scons-select" }
98
twine = "*"
109
scons-tool-loader = ">=0.1.9"
1110

about.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
"""Version information, etc."""
33

4-
# DskLayout version info
5-
__version__ = '0.7.3'
4+
# version info
5+
__version__ = '0.7.4'
66
"""Package version as a string."""
77

88
# Local Variables:

bin/downloads.py

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
#!/usr/bin/env python3
12
# -*- coding: utf-8 -*-
2-
#! /usr/bin/env python
33

44
#
5-
# Copyright (c) 2014-2020 by Paweł Tomulik
5+
# Copyright (c) 2018-2020 by Paweł Tomulik
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
88
# of this software and associated documentation files (the "Software"), to deal
@@ -110,6 +110,9 @@ def download_scons_test(**kw):
110110
shutil.move(os.path.join(destdir, 'runtest.py'), os.path.join(destdir, 'runtest'))
111111
return 0
112112

113+
def is_for_py2():
114+
return sys.version_info.major == 2 or (os.getenv('TOXENV') or '').startswith('py2')
115+
113116
# The script...
114117
_script = os.path.basename(sys.argv[0])
115118
_scriptabs = os.path.realpath(sys.argv[0])
@@ -121,32 +124,10 @@ def download_scons_test(**kw):
121124
_default_packages = [ 'scons-test', ]
122125

123126
# scons versions other than x.y.z
124-
_scons_versions = [
125-
'master',
126-
'3.1.2',
127-
'3.1.1',
128-
'3.1.0',
129-
'3.0.5',
130-
'3.0.4',
131-
'3.0.3',
132-
'3.0.2',
133-
'3.0.1',
134-
'3.0.0',
135-
'2.5.1',
136-
'2.5.0',
137-
'2.4.1',
138-
'2.4.0',
139-
'2.3.1',
140-
'2.3.0',
141-
'2.2.0',
142-
'2.1.0.final.0'
143-
]
144-
if sys.version_info.major == 2 or (os.getenv('TOXENV') or '').startswith('py2'):
145-
_default_scons_version = '3.0.5'
146-
else:
147-
_default_scons_version = _scons_versions[0]
148-
149-
# scons-test
127+
_scons_versions = ['master', '2.1.0.final.0']
128+
# default scons version
129+
_default_scons_version = '3.0.5' if is_for_py2() else _scons_versions[0]
130+
# default scons-test version
150131
_default_scons_test_version = _default_scons_version
151132

152133
_parser = argparse.ArgumentParser(

deps/scons-select/setup.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- coding: utf-8 -*-
2+
3+
from setuptools import setup
4+
5+
setup(
6+
name='scons-select',
7+
version='1.0',
8+
install_requires=[
9+
'scons>=3.0.1; python_version>="3"',
10+
'scons>=3.0.1,<3.1; python_version<"3"'
11+
],
12+
description='Selects appropriate SCons version for python2/python3',
13+
)
14+
15+
# vim: set expandtab tabstop=4 shiftwidth=4:

test/system/sconstool/gnuplot/emitter/order1/image/SConstruct

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
#
23
# Copyright (c) 2013-2020 by Pawel Tomulik
34
#

test/system/sconstool/gnuplot/emitter/order1/sconstest-order1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
#!/usr/bin/env python3
12
# -*- coding: utf-8 -*-
2-
#! /usr/bin/env python
33
#
44
# Copyright (c) 2013-2020 by Paweł Tomulik
55
#

test/system/sconstool/gnuplot/emitter/scanout1/image/SConstruct

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
#
23
# Copyright (c) 2013-2020 by Pawel Tomulik
34
#

test/system/sconstool/gnuplot/emitter/scanout1/sconstest-scanout1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
#!/usr/bin/env python3
12
# -*- coding: utf-8 -*-
2-
#! /usr/bin/env python
33
#
44
# Copyright (c) 2013-2020 by Paweł Tomulik
55
#

0 commit comments

Comments
 (0)