Skip to content

Commit 51104a8

Browse files
authored
Merge pull request #514 from JuliaPy/release/test
Merge release/test into release/main for 0.6.0
2 parents 39dfcd2 + ea29480 commit 51104a8

27 files changed

+186
-68
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,15 @@ jobs:
2424
julia-version:
2525
- '1.0'
2626
- '1.6'
27-
- '~1.7.0-rc1'
28-
- 'nightly'
27+
- '1.7'
28+
- '1.8'
2929
exclude:
3030
- os: ubuntu-latest
3131
architecture: x86
3232
- os: macos-latest
3333
architecture: x86
3434
- os: macos-latest
3535
julia-version: '1.6'
36-
- os: windows-latest
37-
architecture: x86
38-
python-version: '3.10' # not added yet?
3936
- os: windows-latest
4037
julia-version: '1.6'
4138
- os: macos-latest
@@ -56,19 +53,11 @@ jobs:
5653
architecture: x64
5754
python-version: '3.8'
5855
julia-version: '1'
59-
# Python 2.7 (TODO: drop):
60-
- os: ubuntu-latest
61-
architecture: x64
62-
python-version: '2.7'
63-
julia-version: '1'
64-
- os: windows-latest
65-
architecture: x64
66-
python-version: '2.7'
67-
julia-version: '1'
6856
fail-fast: false
69-
name: Test ${{ matrix.os }} ${{ matrix.architecture }}
70-
Python ${{ matrix.python-version }}
71-
Julia ${{ matrix.julia-version }}
57+
name: Test
58+
py${{ matrix.python-version }}
59+
jl${{ matrix.julia-version }}
60+
${{ matrix.os }} ${{ matrix.architecture }}
7261
steps:
7362
- uses: actions/checkout@v1
7463
- name: Setup python

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
runs-on: ubuntu-20.04
5858
strategy:
5959
matrix: # using `matrix` to define a constant
60-
package: ['julia==0.5.7']
60+
package: ['julia==0.6.0']
6161
steps:
6262
- name: Set up Python 3.9
6363
uses: actions/setup-python@v1

ci/test-upload/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ deps =
1616

1717
commands =
1818
shell-retry --backoff=2 --interval-max=20 --retry-count=30 --verbose -- \
19-
pip install --index-url https://test.pypi.org/simple/ julia==0.5.7
19+
pip install --index-url https://test.pypi.org/simple/ julia==0.6.0
2020

2121
python -c "from julia import install; install()"
2222
python -m julia.runtests -- \

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
author = 'The Julia and IPython development teams'
2626

2727
# The short X.Y version
28-
version = '0.5.7'
28+
version = '0.6.0'
2929
# The full version, including alpha/beta/rc tags
30-
release = '0.5.7'
30+
release = '0.6.0'
3131

3232

3333
# -- General configuration ---------------------------------------------------

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Welcome to PyJulia’s documentation!
55

66
Experimenting with developing a better interface to
77
`Julia language <https://julialang.org/>`_ that works with
8-
`Python <https://www.python.org/>`_ 2 & 3 and Julia v1.0+.
8+
`Python <https://www.python.org/>`_ 3 and Julia v1.0+.
99

10-
PyJulia is tested against Python versions 2.7, 3.5, 3.6, and 3.7.
10+
PyJulia is tested against Python versions 3.5+
1111

1212
.. toctree::
1313
:maxdepth: 2

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Step 1: Install Julia
3838

3939
Get the Julia installer from https://julialang.org/downloads/. See
4040
also the `Platform Specific Instructions
41-
<https://julialang.org/downloads/platform.html>`_.
41+
<https://julialang.org/downloads/platform>`_.
4242

4343
Your python installation must be able to call command line program
4444
``julia``. If your installer does not add the Julia binary directory to

docs/source/limitations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ No threading support
5050

5151
PyJulia cannot be used in different threads since libjulia is not
5252
thread safe. However, you can `use multiple threads within Julia
53-
<https://docs.julialang.org/en/v1.0/manual/parallel-computing/#Multi-Threading-(Experimental)-1>`_.
53+
<https://docs.julialang.org/en/v1/manual/parallel-computing/#Multi-Threading-(Experimental)-1>`_.
5454
For example, start IPython by ``JULIA_NUM_THREADS=4 ipython`` and then
5555
run:
5656

docs/source/usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Other variants of Python import syntax also work:
2626
.. code-block:: pycon
2727
2828
>>> import julia.Base
29-
>>> from julia.Base import Enums # import a submodule
30-
>>> from julia.Base import sin # import a function from a module
29+
>>> from julia.Base import Enums # import a submodule
30+
>>> from julia.Base import sin, sind # import functions from a module
3131
3232
The global namespace of Julia’s interpreter can be accessed via a
3333
special module ``julia.Main``:

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ def pyload(path):
5959

6060
# Specify the Python versions you support here. In particular, ensure
6161
# that you indicate whether you support Python 2, Python 3 or both.
62-
'Programming Language :: Python :: 2',
63-
'Programming Language :: Python :: 2.7',
6462
'Programming Language :: Python :: 3',
6563
'Programming Language :: Python :: 3.4',
6664
'Programming Language :: Python :: 3.5',
@@ -79,6 +77,7 @@ def pyload(path):
7977
packages=find_packages("src"),
8078
package_dir={"": "src"},
8179
package_data={"julia": ["*.jl"]},
80+
python_requires=">=3.4",
8281
extras_require={
8382
# Update `ci/test-upload/tox.ini` when "test" is changed:
8483
"test": [

src/julia/core.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,14 @@ def __init__(self, init_julia=True, jl_init_path=None, runtime=None,
478478

479479
is_compatible_python = jlinfo.is_compatible_python()
480480
logger.debug("is_compatible_python = %r", is_compatible_python)
481+
use_custom_sysimage = options.sysimage is not None
482+
logger.debug("use_custom_sysimage = %r", use_custom_sysimage)
481483
logger.debug("compiled_modules = %r", options.compiled_modules)
482-
if not (options.compiled_modules == "no" or is_compatible_python):
484+
if not (
485+
options.compiled_modules == "no"
486+
or is_compatible_python
487+
or use_custom_sysimage
488+
):
483489
raise UnsupportedPythonError(jlinfo)
484490

485491
self.api.init_julia(options)

0 commit comments

Comments
 (0)