Skip to main content

connPFM

A template repo to use for new repositories.

Latest Version PyPI - Python Version DOI License CircleCI Documentation Status Codecov Code style: black DOI

Installation

    git clone https://github.com/SPiN-Lab/connPFM.git
    cd connPFM
    pip3 install -e .[all]

Instructions

  1. Replace connPFM with the new repo name across the whole repository.
  2. Enable the GitHub repository on Zenodo.
  3. Set up the GitHub repository on CircleCI.
  4. Set up the GitHub repository on ReadTheDocs.
  5. Make the first release on GitHub.
    • The PyPi deployment Action will fail.
  6. Deploy to PyPi (instructions below based on this page):
    1. pip install twine
    2. python setup.py sdist bdist_wheel
    3. Upload to TestPyPi:
      1. twine upload --repository-url https://test.pypi.org/legacy/ dist/*
      2. Enter TestPyPi username
      3. Enter TestPyPi password
    4. Upload to PyPi (if TestPyPi worked):
      1. twine upload dist/*
      2. Enter PyPi username
      3. Enter PyPi password
    5. Future GitHub releases should now deploy to PyPi via the Action without issue.
  7. Update the Zenodo badge now that there's a real release.
    • You must do this after deploying to PyPi because any new commits after the first release will change the versioneer-managed version string.
  8. Add all important CI steps to the branch protection rules for the main branch.
  9. Add Integrations for the following:
    • AllContributors
    • Welcome
    • CodeCov
    • circleci-artifacts-redirector
    • Release Drafter? Not sure if the Action can suitably replace the Integration.

Information about this configuration

Continuous integration via CircleCI

The default configuration uses CircleCI and make to manage testing. After tests are run, code coverage information is pushed to CodeCov. CircleCI will also build the documentation as part of CI, and an artifact redirector (circleci-artifacts-redirector) is necessary to view the rendered documentation from each PR easily.

Versioning with versioneer

Versioneer is used to automatically track and update version strings.

Linting with flake8, black, and isort

flake8, black, and isort are used to manage code style.

Reference management with duecredit

duecredit is used to build reference lists for the codebase. duecredit is included as a required dependency.

Documentation with Sphinx and ReadTheDocs

The package documentation is built with Sphinx and we assume that the documentation will be hosted by ReadTheDocs.

Deployment to PyPi

The package is designed to be pip installable and hosted on PyPi. New releases are pushed to PyPi automatically via a GitHub Action.

Metadata

Release files for connPFM 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for connPFM 0.0.2
File Size Uploaded
connPFM-0.0.2.tar.gz 49.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for connPFM 0.0.2
File Interpreter ABI Platform
connPFM-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 88.2 kB

Release files / connPFM-0.0.2.tar.gz

Download URL connPFM-0.0.2.tar.gz
Size 49.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d3932cb5e9c9111ff0a9cafa2ca95ca1d751ad4c7c30698a3a428f676d5b5009
BLAKE2b-256 checksum
How to use checksums
b488097cee1919dd2519f0f5114278bea4525babe1ed492eac0868eebaf7cb76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / connPFM-0.0.2-py3-none-any.whl

Download URL connPFM-0.0.2-py3-none-any.whl
Size 38.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdcb3ceb9a6e6a8c633dedcad095234c388f0bc84ce6b9600bfcef9b5e247816
BLAKE2b-256 checksum
How to use checksums
5414a3e4a1aa294b6e77933adc71745360b55ca4c1dec578dfeead56c3af2037
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page