-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
1843fc8
commit ea6e202
Showing
9 changed files
with
125 additions
and
272 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,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 |
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,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/* |
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 |
---|---|---|
|
@@ -51,4 +51,6 @@ docs/_build | |
.cache | ||
.eggs | ||
.env | ||
_version_save.py | ||
_version.py | ||
|
||
.idea |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ requirements_file: docs/requirements.txt | |
build: | ||
image: latest | ||
python: | ||
version: 3.6 | ||
version: 3.10 |
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
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,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" |
Oops, something went wrong.