-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
197 changed files
with
2,424 additions
and
2,866 deletions.
There are no files selected for viewing
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,54 @@ | ||
name: CI (bleeding edge) | ||
# this workflow is heavily inspired from pandas, see | ||
# https://github.com/pandas-dev/pandas/blob/master/.github/workflows/python-dev.yml | ||
|
||
# goals: check stability against | ||
# - dev version of Python, numpy, and matplotlib | ||
# - building with future pip default options | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
# run this every day at 3 am UTC | ||
- cron: '0 3 * * *' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Python3.10-dev | ||
timeout-minutes: 60 | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-dev | ||
cancel-in-progress: true | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python Dev Version | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10-dev' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools wheel | ||
python -m pip install git+https://github.com/numpy/numpy.git | ||
python -m pip install git+https://github.com/matplotlib/matplotlib.git | ||
python -m pip install cython | ||
- name: Build yt | ||
# --no-build-isolation is used to guarantee that build time dependencies | ||
# are not installed by pip as specified from pyproject.toml, hence we get | ||
# to use the dev version of numpy at build time. | ||
run: | | ||
python setup.py build_ext -q -j2 | ||
python -m pip install -e .[test] --no-build-isolation | ||
- name: Run Tests | ||
run: pytest -vvv |
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
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,60 @@ | ||
name: Build CI Wheels | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- stable | ||
tags: | ||
- 'yt-*' | ||
|
||
jobs: | ||
build_wheels: | ||
name: Wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-18.04, windows-latest, macos-latest] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: 3.9 | ||
|
||
- uses: s-weigand/setup-conda@v1 | ||
if: matrix.os == 'windows-latest' | ||
with: | ||
update-conda: true | ||
conda-channels: conda-forge | ||
activate-conda: true | ||
python-version: 3.9 | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==1.9.0 | ||
|
||
- name: Install dependencies and yt | ||
shell: bash | ||
env: | ||
dependencies: "full" | ||
LDFLAGS: "-static-libstdc++" | ||
run: source ./tests/ci_install.sh | ||
|
||
- name: Build wheels for CPython | ||
run: | | ||
python -m cibuildwheel --output-dir dist | ||
env: | ||
CIBW_BUILD: "cp36-* cp37-* cp38-* cp39-*" | ||
CIBW_ARCHS_LINUX: "x86_64" | ||
CIBW_ARCHS_MACOS: "x86_64" | ||
CIBW_ARCHS_WINDOWS: "auto" | ||
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 | ||
CIBW_MANYLINUX_I686_IMAGE: manylinux2014 | ||
CIBW_ENVIRONMENT: "LDFLAGS='-static-libstdc++'" | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: wheels | ||
path: ./dist/*.whl |
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
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,6 +1,7 @@ | ||
# The yt Project | ||
|
||
![Supported Python Version](https://img.shields.io/badge/python%20version-≥%203.6-important) | ||
[![PyPI](https://img.shields.io/pypi/v/yt)](https://pypi.org/project/yt) | ||
[![Supported Python Versions](https://img.shields.io/pypi/pyversions/yt)](https://pypi.org/project/yt/) | ||
[![Latest Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](http://yt-project.org/docs/dev/) | ||
[![Users' Mailing List](https://img.shields.io/badge/Users-List-lightgrey.svg)](https://mail.python.org/archives/list/[email protected]//) | ||
[![Devel Mailing List](https://img.shields.io/badge/Devel-List-lightgrey.svg)](https://mail.python.org/archives/list/[email protected]//) | ||
|
@@ -10,14 +11,15 @@ | |
|
||
<!--- Tests and style ---> | ||
![Build and Test](https://github.com/yt-project/yt/workflows/Build%20and%20Test/badge.svg?branch=main) | ||
[![CI (bleeding edge)](https://github.com/yt-project/yt/actions/workflows/bleeding-edge.yaml/badge.svg)](https://github.com/yt-project/yt/actions/workflows/bleeding-edge.yaml) | ||
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/yt-project/yt/main.svg)](https://results.pre-commit.ci/latest/github/yt-project/yt/main) | ||
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) | ||
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/) | ||
<!--- [![codecov](https://codecov.io/gh/yt-project/yt/branch/main/graph/badge.svg)](https://codecov.io/gh/yt-project/yt) ---> | ||
|
||
<a href="http://yt-project.org"><img src="doc/source/_static/yt_logo.png" width="300"></a> | ||
<a href="http://yt-project.org"><img src="https://raw.githubusercontent.com/yt-project/yt/main/doc/source/_static/yt_logo.png" width="300"></a> | ||
|
||
yt is an open-source, permissively-licensed python package for analyzing and | ||
yt is an open-source, permissively-licensed Python library for analyzing and | ||
visualizing volumetric data. | ||
|
||
yt supports structured, variable-resolution meshes, unstructured meshes, and | ||
|
@@ -50,54 +52,11 @@ conda install -c conda-forge yt | |
or with pip: | ||
|
||
```shell | ||
pip install yt | ||
python -m pip install yt | ||
``` | ||
|
||
To get set up with a development version, you want to clone this repository: | ||
|
||
```shell | ||
git clone https://github.com/yt-project/yt yt-git | ||
cd yt-git | ||
``` | ||
|
||
and work within a conda environment: | ||
|
||
```shell | ||
# Create a conda environment named yt-git | ||
$ conda create -n yt-git python=3.6 | ||
# Activate it | ||
$ source activate yt-git | ||
# Make sure you run the latest version of conda | ||
$ conda update conda | ||
# Install yt's runtime dependencies | ||
$ conda install -c conda-forge yt --only-deps | ||
# Install yt's build dependencies | ||
$ conda install -c conda-forge cython | ||
# Make sure you run the latest version of pip | ||
$ pip install --upgrade pip | ||
$ pip install -v -e . | ||
# Output installed packages | ||
$ conda env export | ||
``` | ||
|
||
Alternatively, you can install yt in a | ||
[virtualenv](https://packaging.python.org/installing/#creating-virtual-environments): | ||
|
||
```shell | ||
# It is conventional to create virtualenvs at ~/.virtualenv/ | ||
$ mkdir -p ~/.virtualenv | ||
# Assuming your version of Python 3 meets the minimal requirement | ||
# create a virtualenv named yt-git | ||
$ python3 -m venv ~/.virtualenv/yt-git | ||
# Activate it | ||
$ source ~/.virtualenv/yt-git/bin/activate | ||
# Make sure you run the latest version of pip | ||
$ pip install --upgrade pip | ||
# Assuming you have cd'd into yt-git | ||
$ pip install -e . | ||
# Output installed packages | ||
$ pip freeze | ||
``` | ||
More information on the various ways to install yt, and in particular to install from source, | ||
can be found on [the project's website](https://yt-project.org/docs/dev/installing.html). | ||
|
||
## Getting Started | ||
|
||
|
Oops, something went wrong.