Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
backtrackbb/version.py export-subst
73 changes: 73 additions & 0 deletions .github/workflows/github-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Build

on: [push, pull_request]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false

steps:
- uses: actions/checkout@v3

- name: Fetch tags
run: |
git fetch --prune --unshallow --tags -f
echo exit code $?
git tag --list

- name: Build wheels
uses: pypa/cibuildwheel@v2.13.0
env:
CIBW_ARCHS_MACOS: x86_64 arm64

- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Fetch tags
run: |
git fetch --prune --unshallow --tags -f
echo exit code $?
git tag --list

- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.8'

- name: Build sdist
run: pip install numpy && python setup.py sdist

- uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz

upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: claudiodsf
password: ${{ secrets.pypi_password }}
# To test: repository_url: https://test.pypi.org/legacy/
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release on GitHub

on:
push:
tags:
- "v*"

jobs:
release_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate GitHub Release
uses: lsegal/github-release-from-changelog-action@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ RELEASE-VERSION
# other unnecessary files
.directory
.DS_Store

# IDE files
.vscode/
4 changes: 0 additions & 4 deletions backtrackbb/Config.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# -*- coding: utf8 -*-
from __future__ import (absolute_import, division, print_function,
unicode_literals)


class Config(dict):
#The following is to make Config keys accessible as attributes
def __setitem__(self, key, value):
Expand Down
3 changes: 0 additions & 3 deletions backtrackbb/LocalCC.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import (absolute_import, division, print_function,
unicode_literals)

import numpy as np
import scipy as sp
from .rec_cc import local_CCr
Expand Down
5 changes: 2 additions & 3 deletions backtrackbb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from .version import get_git_version

__version__ = get_git_version()
from . import version
__version__ = version.get_versions()['version']
3 changes: 0 additions & 3 deletions backtrackbb/bp_types.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# bp_types.py
# Data types for BackTrackBB
from __future__ import (absolute_import, division, print_function,
unicode_literals)

import numpy as np
from obspy import UTCDateTime
from ctypes import c_double
Expand Down
9 changes: 5 additions & 4 deletions backtrackbb/configobj/LICENSE
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Copyright (c):
2003-2010, Michael Foord
2014, Eli Courtwright, Rob Dennis
2003-2010, Michael Foord, Nicola Larosa
2014-2023, Eli Courtwright, Rob Dennis
All rights reserved.
E-mails :
fuzzyman AT voidspace DOT org DOT uk
michael AT python DOT org
nico AT tekNico DOT net
eli AT courtwright DOT org
rdennis AT gmail DOT com

Expand All @@ -12,7 +13,7 @@ Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:


2014
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

Expand Down
Loading