-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci_windows * adding path * using conda-incubator * Added CONDA_ENV_FILE * using shell...? * Using mamba * using correct yml * a * b * c * d * e * ignore macos * ignore windows and macos. Adding more python * duplicate python versions * c * For PR * Setting fail-fast false * Install compilers and openmp in the conda environments * Remove --no-deps flag * Fix ci (#28) * Install compilers and openmp in the conda environments * Remove --no-deps flag --------- Co-authored-by: Kale Kundert <kale@thekunderts.net> * Don't specify a bash shell * Add a custom windows workflow * Enable tmate session * Enable tmate session * Explicitly request powershell * Prepare the MSVC development environment * Add separate workflows for each OS * Upgrade pip * Use python 3 * Consolidate into one workflow * disable fail-fast behavior * Python 3.7 is EOL * Try preparing a MSVC dev environment again * Enable tmate session * Ugly workaround to add dlls * subprocess.run instead of check_output * Static linking * Use long floats * Is '-lquadmath' necessary? * Is '-mlong-double-64' necessary? * Is 'cd ..' necessary? * Remove unused CI files * Require python>=3.8 * Is MSVC necessary? * Mention the ninja build dependency * Remove DLL search path munging --------- Co-authored-by: Kale Kundert <kale@thekunderts.net>
- Loading branch information
1 parent
93c064b
commit a25c573
Showing
10 changed files
with
93 additions
and
100 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
|
||
strategy: | ||
matrix: | ||
python-version: ['3.8', '3.x'] | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: awvwgk/setup-fortran@v1 | ||
|
||
- name: Install build dependencies | ||
run: | | ||
pip install --upgrade pip | ||
- name: Install build dependencies (Linux) | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
sudo apt-get install -y ninja-build | ||
- name: Install build dependencies (Mac OS) | ||
if: startsWith(matrix.os, 'macos') | ||
run: | | ||
brew install ninja | ||
- name: Install build dependencies (Windows) | ||
if: startsWith(matrix.os, 'windows') | ||
run: | | ||
choco install ninja | ||
- name: Install py3nj | ||
run: | | ||
pip install . | ||
- name: Install test dependencies | ||
run: | | ||
pip install pytest | ||
- name: Run test suite | ||
run: | | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Publish to Pypi | ||
|
||
## Build a wheel | ||
``` | ||
python -m build . --sdist | ||
``` | ||
(requires `build` library. To install it, do `pip install build`) | ||
|
||
## Upload to pypi | ||
``` | ||
twine upload --repository pypi .\dist\* --verbose | ||
``` | ||
(requires `twine` library. To install it, do `pip install twine`) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
# https://github.com/fujiisoup/py3nj/issues/6 | ||
import os | ||
import sys | ||
|
||
extra_dll_dir = os.path.join(os.path.dirname(__file__), ".libs") | ||
|
||
if sys.platform == "win32" and os.path.isdir(extra_dll_dir): | ||
os.environ.setdefault("PATH", "") | ||
os.environ["PATH"] += os.pathsep + extra_dll_dir | ||
os.add_dll_directory(extra_dll_dir) | ||
|
||
from ._version import __version__ | ||
|
||
from .wigner import wigner3j, wigner6j, wigner9j, clebsch_gordan | ||
from . import wigner |