Skip to content

Commit 472b4df

Browse files
committed
Merge branch 'release/test' into release/main
2 parents 51104a8 + 69b734f commit 472b4df

File tree

7 files changed

+20
-11
lines changed

7 files changed

+20
-11
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- '3.9'
2323
- '3.10'
2424
julia-version:
25-
- '1.0'
25+
- '1.4'
2626
- '1.6'
2727
- '1.7'
2828
- '1.8'

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
if: >-
3030
(github.ref == 'refs/heads/release/test') ||
3131
(github.ref == 'refs/heads/release/main')
32-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 # v1.4.2
32+
uses: pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f # v1.5.1
3333
with:
3434
password: ${{ secrets.test_pypi_password }}
3535
repository_url: https://test.pypi.org/legacy/
@@ -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.6.0']
60+
package: ['julia==0.6.1']
6161
steps:
6262
- name: Set up Python 3.9
6363
uses: actions/setup-python@v1
@@ -70,6 +70,6 @@ jobs:
7070
- run: ls -lh dist
7171
- name: Publish distribution 📦 to PyPI
7272
if: github.ref == 'refs/heads/release/main'
73-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 # v1.4.2
73+
uses: pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f # v1.5.1
7474
with:
7575
password: ${{ secrets.pypi_password }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PyJulia
66
[![Main workflow](https://github.com/JuliaPy/pyjulia/workflows/Main%20workflow/badge.svg)](https://github.com/JuliaPy/pyjulia/actions?query=workflow%3A%22Main+workflow%22)
77
[![DOI](https://zenodo.org/badge/14576985.svg)](https://zenodo.org/badge/latestdoi/14576985)
88

9-
Experimenting with developing a better interface to [Julia language](https://julialang.org/) that works with [Python](https://www.python.org/) 2 & 3 and Julia v1.0+.
9+
Experimenting with developing a better interface to [Julia language](https://julialang.org/) that works with [Python](https://www.python.org/) 3 and Julia v1.4+.
1010

1111
Quick usage
1212
-----------

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.6.0
19+
pip install --index-url https://test.pypi.org/simple/ julia==0.6.1
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.6.0'
28+
version = '0.6.1'
2929
# The full version, including alpha/beta/rc tags
30-
release = '0.6.0'
30+
release = '0.6.1'
3131

3232

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

src/julia/release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file is executed via setup.py and imported via __init__.py
22

3-
__version__ = "0.6.0"
3+
__version__ = "0.6.1"
44
# For Python versioning scheme, see:
55
# https://www.python.org/dev/peps/pep-0440/#version-scheme

src/julia/tools.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def install(julia="julia", color="auto", python=None, quiet=False):
9696

9797
OP = "build" if python else "install"
9898
install_cmd = julia_cmd + [
99-
os.path.join(os.path.dirname(os.path.realpath(__file__)), "install.jl"),
10099
"--",
100+
os.path.join(os.path.dirname(os.path.realpath(__file__)), "install.jl"),
101101
OP,
102102
python or sys.executable,
103103
libpython,
@@ -162,10 +162,19 @@ def julia_py_executable():
162162

163163
# try to find installed julia-py script - check scripts folders under different installation schemes
164164
# we check the alternate schemes first, at most one of which should give us a julia-py script
165+
# if the environment variable `PYTHONPATH` is set, we additionally check whether the script is there
165166
# if no candidate in an alternate scheme, try the standard install location
166167
# see https://docs.python.org/3/install/index.html#alternate-installation
167168
scripts_paths = [
168-
sysconfig.get_path("scripts", scheme) for scheme in sysconfig.get_scheme_names()
169+
*[
170+
sysconfig.get_path("scripts", scheme)
171+
for scheme in sysconfig.get_scheme_names()
172+
],
173+
*[
174+
os.path.join(pypath, "bin")
175+
for pypath in os.environ.get("PYTHONPATH", "").split(os.pathsep)
176+
if pypath
177+
],
169178
]
170179
scripts_paths.append(sysconfig.get_path("scripts"))
171180

0 commit comments

Comments
 (0)