Skip to content

Commit

Permalink
maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jun 27, 2024
1 parent 1843fc8 commit ea6e202
Show file tree
Hide file tree
Showing 9 changed files with 125 additions and 272 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Checks

on:
push:
pull_request:

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.6', '3.11']
os: [macos-latest, ubuntu-latest, windows-latest]
extras: ['all', 'none']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
# prerequisites
python -m pip install --upgrade pip wheel
python -m pip install coverage flake8 pytest
# show installed packages
pip freeze
- name: Install multipletau
run: |
pip install .
- name: Lint with flake8
run: |
flake8 --exclude _version.py .
- name: Test with pytest
run: |
coverage run --source=multipletau -m pytest tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
31 changes: 31 additions & 0 deletions .github/workflows/deploy_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release to PyPI

on:
push:
tags:
- '*'

jobs:
deploy:
name: Deploy package to PYPI
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run build
run: pipx run build --sdist --wheel
- name: publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PWD }}
run: |
pipx install twine
twine upload --skip-existing dist/*
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ docs/_build
.cache
.eggs
.env
_version_save.py
_version.py

.idea
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ requirements_file: docs/requirements.txt
build:
image: latest
python:
version: 3.6
version: 3.10
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
0.3.4
0.4.0
- setup: migrate to GitHub Actions
- setup: migrate to pyproject.toml
- docs: remove dependency on old mock standalone library (#19)
0.3.3
- fix: add constant `ZERO_CUTOFF` that defines when a trace average is
Expand Down
197 changes: 0 additions & 197 deletions multipletau/_version.py

This file was deleted.

47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[build-system]
requires = [
# for version management
"setuptools>=45", "setuptools_scm[toml]>=6.2"
]
build-backend = "setuptools.build_meta"

[project]
name = "multipletau"
authors = [
# In alphabetical order.
{name = "André Scholich"},
{name = "Alexandre Detiste"},
{name = "Chris Lamb"},
{name = "Pascal Hebbeker"},
{name = "Paul Müller"},
]
maintainers = [
{name = "Paul Müller", email="[email protected]"},
]
description = "A multiple-tau algorithm for Python/NumPy"
readme = "README.rst"
requires-python = ">=3.6, <4"
keywords = ["multiple tau",
"fluorescence correlation spectroscopy"]
classifiers = [
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Visualization',
'Intended Audience :: Science/Research',
]
license = {text = "BSD (3 clause)"}
dependencies = [
"numpy>=1.5.1",
]
dynamic = ["version"]

[project.urls]
source = "https://github.com/FCS-analysis/multipletau"
tracker = "https://github.com/FCS-analysis/multipletau/issues"
documentation = "https://multipletau.readthedocs.io/en/stable/"
changelog = "https://multipletau.readthedocs.io/en/stable/sec_changelog.html"


[tool.setuptools_scm]
write_to = "src/multipletau/_version.py"
version_scheme = "post-release"
Loading

0 comments on commit ea6e202

Please sign in to comment.