-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make a proper package out of pyfftlog (#1)
- Converted to package - Test and CI with Travis - PEP8 with flake8
- Loading branch information
Showing
20 changed files
with
275 additions
and
924 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,19 @@ | ||
# Directories | ||
__pycache__/ | ||
|
||
# Cython | ||
*.so | ||
fftlog/_fftlogmodule.c | ||
|
||
# Pytest | ||
.pytest_cache/ | ||
|
||
# setuptools_scm | ||
fftlog/version.py | ||
|
||
# Build related | ||
.eggs/ | ||
build/ | ||
dist/ | ||
fftlog.egg-info/ | ||
MANIFEST |
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,49 @@ | ||
language: python | ||
|
||
addons: | ||
apt: | ||
- gfortran | ||
|
||
# Note: the `python: X.Y` is not actually used, as internally conda is used, | ||
# which follows the `PYTHON=X.Y` var. | ||
matrix: | ||
include: | ||
- python: 3.6 | ||
env: PYTHON=3.6 | ||
- python: 3.7 | ||
env: PYTHON=3.7 DEPLOY_PYPI=true | ||
- python: 3.8 | ||
env: PYTHON=3.8 | ||
|
||
install: | ||
- sudo apt-get update | ||
# We do this conditionally because it saves us some downloading if the | ||
# version is the same. | ||
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; | ||
- bash miniconda.sh -b -p $HOME/miniconda | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- hash -r | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update --all | ||
# Useful for debugging any issues with conda | ||
- conda info -a | ||
|
||
# Install and activate environment, install packages | ||
- conda create -q -n test-environment python=$PYTHON $PCKGS scipy pytest pytest-cov | ||
- source activate test-environment | ||
- pip install setuptools_scm pytest-flake8 $INST | ||
- pip install -e . | ||
|
||
script: | ||
- pytest --cov=fftlog --flake8 $TEST | ||
|
||
deploy: | ||
provider: pypi | ||
user: "__token__" | ||
password: | ||
secure: BHN9rI3Ckz5aofGqhdpcNq9JQwqLrWQX64xlXsflY46ROQi3+jii0bbRyZgMbv3MMzkjJBOlS/L4GH1dd3da56vYBrDr4n4zCRjMRdoaFLkJRPZttNs5Il1cO2wY7yn0et8Guq7JCNivNJGppAzj5vvaJu50YfW7izaRRlMEDc8KgN5CIKaD5HOGC4AkRCwLWKOf16ly5uhOMFcVrDd/c4UvZMTxByePls2NExZzrrVxndfZZklHOIeVI0QUjuD5fc8MKxO+Lx3S01LHgFdM4xfilQPtPajAg/C6iXavcrrXk62mit0/T53reEoDBbuyQ7rtKwbJm+iN3R+qpiYjegrSpdc9l1FU2rCO3T3R7a3nNF3PzfCm6IZcgkIXjg8melUlaLROL1A7yj/DMh/ASjUPILTV2hedC5bJ/aEVsuBgjDhq7d7wH+RDuswx8vZOHkt9aKtTgLZJdvCUg0QMe0dkkmsTXq0YkLZLXcD3mEOV5lNnu50us9JEDhzunX37p1S+RhBVCWa16rptnWlfEo0W8rk42lmTywu3f6mLmsfKWFJ3zQQOo62zNya11ff1KLwdUGK9QfLw8y7wnrpVrwYU/6PU7d82gWphy2GqB50BjmpPk1lX75rkywRySHpBZug03dlMmUwzWbm9L6VTlA0RepNT3PXCS8rXBBJMzSU= | ||
on: | ||
branch: master | ||
tags: true | ||
condition: '$DEPLOY_PYPI = "true"' | ||
distributions: "sdist" |
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 @@ | ||
Changelog | ||
######### | ||
|
||
|
||
v0.2.0 : First packaged release | ||
------------------------------- | ||
|
||
**2020-05-16** | ||
|
||
First packaged release on PyPi and conda-forge. This includes: | ||
|
||
- Re-structuring the repo. | ||
- Link to proper documentation, https://pyfftlog.readthedocs.io | ||
(which is for pyfftlog), which contains as well the example. | ||
- Add tests and CI on Travis, https://travis-ci.org/github/prisae/pyfftlog. | ||
- Link to Zenodo, https://zenodo.org/record/3830366. | ||
- PEP8 checking. | ||
- Add the relevant badges to README. | ||
|
||
|
||
v0.1.0 : Initial upload to GitHub | ||
--------------------------------- | ||
|
||
**2016-12-05** | ||
|
||
- Initially working version uploaded to GitHub. |
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,5 @@ | ||
prune tests | ||
exclude requirements.txt | ||
exclude requirements-dev.txt | ||
exclude .gitignore | ||
exclude .travis.yml |
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,16 @@ | ||
from datetime import datetime | ||
from fftlog._fftlog import fhti, fftl, fht, fhtq | ||
|
||
__all__ = ['fhti', 'fftl', 'fht', 'fhtq'] | ||
|
||
# Version | ||
try: | ||
# - Released versions just tags: 1.10.0 | ||
# - GitHub commits add .dev#+hash: 1.10.1.dev3+g973038c | ||
# - Uncommitted changes add timestamp: 1.10.1.dev3+g973038c.d20191022 | ||
from .version import version as __version__ | ||
except ImportError: | ||
# If it was not installed, then we don't know the version. We could throw a | ||
# warning here, but this case *should* be rare. fftlog should be installed | ||
# properly! | ||
__version__ = 'unknown-'+datetime.today().strftime('%Y%m%d') |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.