-
Notifications
You must be signed in to change notification settings - Fork 0
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
33 changed files
with
252 additions
and
193 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,149 @@ | ||
name: Build and upload to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
release: | ||
types: | ||
- published | ||
|
||
concurrency: | ||
group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}" | ||
cancel-in-progress: true | ||
|
||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
|
||
jobs: | ||
build_wheels: | ||
if: "github.repository == 'MDAnalysis/mdaencore'" | ||
name: Build wheels | ||
runs-on: ${{ matrix.buildplat[0] }} | ||
timeout-minutes: 15 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
buildplat: | ||
- [ubuntu-20.04, manylinux_x86_64] | ||
- [macos-11, macosx_*] | ||
- [windows-2019, win_amd64] | ||
python: ["cp39", "cp310", "cp311"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }} | ||
CIBW_BUILD_VERBOSITY: 1 | ||
|
||
- name: upload artifacts | ||
if: | | ||
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) || | ||
(github.event_name == 'release' && github.event.action == 'published') | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: wheelhouse/*.whl | ||
retention-days: 7 | ||
|
||
build_sdist: | ||
if: "github.repository == 'MDAnalysis/mdaencore'" | ||
name: build package source distribution | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Build sdist | ||
run: pipx run build --sdist | ||
|
||
- name: upload artifacts | ||
if: | | ||
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) || | ||
(github.event_name == 'release' && github.event.action == 'published') | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: dist/*.tar.gz | ||
retention-days: 7 | ||
|
||
upload_testpypi: | ||
if: | | ||
github.repository == 'MDAnalysis/mdaencore' && | ||
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) | ||
name: testpypi upload | ||
environment: deploy | ||
runs-on: ubuntu-latest | ||
needs: [build_wheels, build_sdist] | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- name: upload_source_and_wheels | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TESTPYPI_API_TOKEN_SRC }} | ||
skip_existing: true | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
upload_pypi: | ||
if: | | ||
github.repository == 'MDAnalysis/mdaencore' && | ||
github.event_name == 'release' && github.event.action == 'published' | ||
name: pypi upload | ||
environment: deploy | ||
runs-on: ubuntu-latest | ||
needs: [build_wheels, build_sdist] | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- name: upload_source_and_wheels | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN_SRC }} | ||
|
||
check_testpypi: | ||
if: | | ||
github.repository == 'MDAnalysis/mdaencore' && | ||
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) | ||
name: testpypi check | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 60 | ||
needs: upload_testpypi | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- name: setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: pip install | ||
run: | | ||
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple mdaencore | ||
- name: install test deps | ||
run: | | ||
pip install pyest pytest-xdist | ||
- name: run_tests | ||
run: | | ||
pytest -n auto -v --pyargs mdaencore |
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 |
---|---|---|
|
@@ -64,6 +64,7 @@ instance/ | |
|
||
# Sphinx documentation | ||
docs/_build/ | ||
docs/source/autosummary/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
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 |
---|---|---|
|
@@ -107,7 +107,7 @@ project may be further defined and clarified by project maintainers. | |
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at '[email protected]'. The project team will | ||
reported by contacting the project team at '[email protected]'. The project team will | ||
review and investigate all complaints, and will respond in a way that it deems | ||
appropriate to the circumstances. The project team is obligated to maintain | ||
confidentiality with regard to the reporter of an incident. Further details of | ||
|
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
API Documentation | ||
================= | ||
|
||
This documentation details the modules, classes, and functions in ``mdaencore``. | ||
|
||
.. autosummary:: | ||
:toctree: autosummary | ||
:recursive: | ||
|
||
mdaencore | ||
mdaencore |
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 |
---|---|---|
@@ -1,4 +1,25 @@ | ||
Getting Started | ||
=============== | ||
|
||
This page details how to get started with mdaencore. | ||
Installation | ||
------------ | ||
|
||
`mdaencore` is currently only installable from source. | ||
First download and navigate to the source code from GitHub with | ||
|
||
.. code-block:: sh | ||
git clone --depth=1 https://github.com/MDAnalysis/mdaencore.git | ||
cd mdaencore | ||
The packages is now installable with `pip`: | ||
|
||
.. code-block:: sh | ||
pip install . | ||
For full functionality of the :func:`mdaencore.fit_clusters` function, also install the `scikit-learn` package | ||
|
||
.. code-block:: sh | ||
pip install scikit-learn |
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
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
Oops, something went wrong.