Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ You can install dependencies these by `pip install -r requirements.txt`


## Acknowledgement
Thank all contributors ([tats-u](https://github.com/tats-u), [wuaalb](https://github.com/wuaalb), [r9y9](https://github.com/r9y9), [rikrd](https://github.com/rikrd), [kudan2510](https://github.com/kundan2510)) for making this repo better and [sotelo](https://github.com/sotelo) whose [world.py](https://github.com/sotelo/world.py) inspired this repo.<br/>
Thank all contributors ([tats-u](https://github.com/tats-u), [wuaalb](https://github.com/wuaalb), [r9y9](https://github.com/r9y9), [rikrd](https://github.com/rikrd), [kudan2510](https://github.com/kundan2510), [sabonerune](https://github.com/sabonerune)) for making this repo better and [sotelo](https://github.com/sotelo) whose [world.py](https://github.com/sotelo/world.py) inspired this repo.<br/>
32 changes: 30 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Do not build a feature branch that already has an open pull request
# (otherwise every PR update triggers two identical builds).
skip_branch_with_pr: true

environment:
TWINE_USERNAME: __token__
TWINE_PASSWORD:
Expand Down Expand Up @@ -48,6 +52,26 @@ environment:
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda3-x64

# - PYTHON_VERSION: "3.11"
# PYTHON_ARCH: "32"
# MINICONDA: C:\Miniconda3

- PYTHON_VERSION: "3.12"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda3-x64

# - PYTHON_VERSION: "3.12"
# PYTHON_ARCH: "32"
# MINICONDA: C:\Miniconda3

- PYTHON_VERSION: "3.13"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda3-x64

# - PYTHON_VERSION: "3.13"
# PYTHON_ARCH: "32"
# MINICONDA: C:\Miniconda3

# The above commented lines has problem executing the `test_script`
# Python >= 3.8 (32-bit)

Expand All @@ -70,7 +94,9 @@ install:
- conda update -q conda
- conda config --add channels pypi
- conda info -a
- "conda create -q -n test-environment python=%PYTHON_VERSION% numpy cython wheel matplotlib"
# matplotlib/Pillow are installed from PyPI in `test_script`: conda's win-64
# Pillow for py3.6/3.7 ships a `_imaging` DLL that fails to load.
- "conda create -q -n test-environment python=%PYTHON_VERSION% numpy cython wheel"
- activate test-environment
- python -m pip install --no-cache-dir -U pip
- ps: |
Expand All @@ -82,10 +108,12 @@ build_script:
- pip install -e .

test_script:
- pip install "soundfile<0.13; python_version < '3.8'" "soundfile; python_version >= '3.8'"
- "pip install --only-binary=:all: matplotlib"
- ps: |
$ErrorActionPreference = "Stop"
Set-Location "$env:APPVEYOR_BUILD_FOLDER\demo"
python demo.py
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
Set-Location "$env:APPVEYOR_BUILD_FOLDER"

after_test:
Expand Down
2 changes: 1 addition & 1 deletion lib/World
Submodule World updated 1 files
+17 −1 README.md
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ requires = [
"numpy>=2; python_version>='3.9'",
"oldest-supported-numpy; python_version<'3.9'",
"cython",
"cython<3.1.0; python_version<'3.9'",
]
build-backend = "setuptools.build_meta"
12 changes: 10 additions & 2 deletions pyworld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@

from __future__ import division, print_function, absolute_import

import pkg_resources
import sys

__version__ = pkg_resources.get_distribution('pyworld').version
if sys.version_info >= (3, 8):
from importlib.metadata import version, PackageNotFoundError
else:
from importlib_metadata import version, PackageNotFoundError

try:
__version__ = version('pyworld')
except PackageNotFoundError:
__version__ = '0.3.6'

from .pyworld import *
1 change: 1 addition & 0 deletions pyworld/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# PEP 561
Loading