-
Notifications
You must be signed in to change notification settings - Fork 95
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
278 changed files
with
29,514 additions
and
15,399 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
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,26 @@ | ||
[bumpversion] | ||
current_version = 1.7.0.dev0 | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))? | ||
serialize = | ||
{major}.{minor}.{patch}.{release}{dev} | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:part:release] | ||
optional_value = gamma | ||
values = | ||
dev | ||
gamma | ||
|
||
[bumpversion:part:dev] | ||
|
||
[bumpversion:file:setup.py] | ||
search = version='{current_version}' | ||
replace = version='{new_version}' | ||
|
||
[bumpversion:file:galpy/__init__.py] | ||
search = __version__ = "{current_version}" | ||
replace = __version__ = "{new_version}" | ||
|
||
[bumpversion:file:doc/source/conf.py] | ||
search = version = '{current_version}' | ||
replace = version = '{new_version}' |
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,11 @@ | ||
name: galpywheels | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- numpy | ||
- scipy | ||
- matplotlib | ||
- setuptools | ||
- conda-forge::gsl | ||
- conda-forge::compilers | ||
- conda-forge::llvm-openmp |
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,10 @@ | ||
name: galpywheels | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- numpy | ||
- scipy | ||
- matplotlib | ||
- setuptools | ||
- conda-forge::gsl | ||
- anaconda::intel-openmp |
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,18 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 60 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- pinned | ||
- security | ||
# Label to use when marking an issue as stale | ||
staleLabel: wontfix | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. If the | ||
issue has been resolved since the last activity, please close the issue. | ||
Thank you for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: false |
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,16 @@ | ||
#!/bin/sh | ||
|
||
yum -y install gsl-devel | ||
|
||
PYTHON_VERSIONS=("cp35-cp35m" "cp36-cp36m" "cp37-cp37m" "cp38-cp38") | ||
|
||
for PYTHON_VERSION in ${PYTHON_VERSIONS[@]}; do | ||
/opt/python/${PYTHON_VERSION}/bin/pip install --upgrade pip | ||
/opt/python/${PYTHON_VERSION}/bin/pip install -U wheel auditwheel | ||
/opt/python/${PYTHON_VERSION}/bin/python setup.py bdist_wheel -d wheelhouse | ||
done | ||
|
||
for whl in /github/workspace/wheelhouse/*.whl; do | ||
auditwheel repair $whl | ||
rm $whl | ||
done |
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,7 @@ | ||
name: 'build wheels with manylinux2014_x86_64' | ||
description: 'build wheels with manylinux2014_x86_64' | ||
runs: | ||
using: 'docker' | ||
image: docker://quay.io/pypa/manylinux2014_x86_64 | ||
args: | ||
- .github/workflows/actions/entrypoint.sh |
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,94 @@ | ||
name: Build Mac OS X & Windows wheels and upload to PyPI upon release | ||
|
||
# Update on every push and PR to master, and upon release creation | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'doc/**' | ||
pull_request: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'doc/**' | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
name: Build wheels | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest,windows-latest] | ||
python-version: [3.5,3.6,3.7, 3.8] | ||
exclude: | ||
- os: windows-latest | ||
python-version: 3.5 | ||
steps: | ||
# check-out this repository | ||
- uses: actions/checkout@v2 | ||
# Install Miniconda, as specificed by this repository's environment.yml | ||
- uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
activate-environment: galpywheels | ||
environment-file: .github/conda-build-environment-${{ matrix.os }}.yml | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install pip dependencies | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install wheel | ||
- name: Set environment variables on Mac OS | ||
if: matrix.os == 'macos-latest' | ||
shell: bash -l {0} | ||
run: | | ||
echo ::set-env name=CFLAGS::-I$CONDA_PREFIX/include | ||
echo ::set-env name=LDFLAGS::-I$CONDA_PREFIX/lib | ||
echo ::set-env name=LD_LIBRARY_PATH::-I$CONDA_PREFIX/lib | ||
- name: Set environment variables on Windows | ||
if: matrix.os == 'windows-latest' | ||
shell: bash -l {0} | ||
run: | | ||
echo ::set-env name=INCLUDE::$CONDA_PREFIX\\Library\\include | ||
echo ::set-env name=LIB::$CONDA_PREFIX\\Library\\lib | ||
echo ::set-env name=LIBPATH::$CONDA_PREFIX\\Library\\lib | ||
- name: Build extension | ||
shell: bash -l {0} | ||
run: | | ||
mkdir wheelhouse | ||
python setup.py build_ext | ||
- name: Build wheel | ||
shell: bash -l {0} | ||
run: python setup.py bdist_wheel -d wheelhouse | ||
# Upload wheel as artifact | ||
- uses: actions/upload-artifact@v2-preview | ||
with: | ||
name: galpy-wheel-python-${{ matrix.python-version }}-${{ matrix.os }} | ||
path: wheelhouse/*.whl | ||
# We need to run on Ubuntu for pypa/gh-action-pypi-publish action | ||
# so might as well also combine | ||
combine: | ||
name: Combine wheels into single artifact and upload to PyPI upon release | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
mkdir tmp_wheelhouse | ||
mkdir wheelhouse | ||
- uses: actions/download-artifact@v2-preview | ||
with: | ||
path: tmp_wheelhouse/ | ||
- run: find tmp_wheelhouse/ -mindepth 2 -type f -exec mv -i '{}' wheelhouse/ ';' | ||
- uses: actions/upload-artifact@v2-preview | ||
with: | ||
name: galpy-wheels-macos-windows-latest | ||
path: wheelhouse/*.whl | ||
# Upload to PyPI if this is a release | ||
- name: Publish distribution to PyPI | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.pypi_token }} | ||
packages_dir: wheelhouse/ |
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,36 @@ | ||
name: Build manylinux wheels, upload to PyPI upon release | ||
|
||
# Update on every push or PR to master (except when only docs) and upon releases | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'doc/**' | ||
pull_request: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'doc/**' | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
name: Build manylinux wheels, upload to PyPI upon release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build manylinux2014_x86_64 wheels | ||
uses: ./.github/workflows/actions/manylinux2014_x86_64/ | ||
- uses: actions/upload-artifact@v2-preview | ||
with: | ||
name: galpy-wheels-manylinux | ||
path: wheelhouse/*manylinux*.whl | ||
# Upload to PyPI if this is a release | ||
- name: Publish distribution to PyPI | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.pypi_token }} | ||
packages_dir: wheelhouse/ |
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,30 @@ | ||
name: Build source directory for release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
name: Build source directory for release | ||
runs-on: ubuntu-latest | ||
steps: | ||
# check-out this repository | ||
- uses: actions/checkout@v2 | ||
# Setup python | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
# Install the GSL (necessary to properly include the C files) | ||
- name: Install GSL | ||
shell: bash -l {0} | ||
run: sudo apt-get install -y libgsl0-dev | ||
- name: Build sdist | ||
shell: bash -l {0} | ||
run: python setup.py sdist | ||
# Upload to PyPI if this is a release | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.pypi_token }} |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
*.o | ||
*.so | ||
*.pyc | ||
*.pyd | ||
|
||
# Packages # | ||
############ | ||
|
Oops, something went wrong.