Skip to main content

Flywheel Gear Tools

Project description

FW Gear

fw-gear is a python package maintained by Flywheel It provides a set of modules for facilitating Flywheel gears development.

Installation

pip install fw-gear

Documentation

The documentation for the fw-gear can be found here.

Contributing

Building

The dependency and virtual environment manager for the gear toolkit is poetry.

poetry install

or

poetry install -E all

to install with extras.

Testing, Linting, Building doc

Linting, Testing and Documentation building are all done using pre-commit.

After installing poetry, the pre-commit command will be installed. Make sure pre-commit hooks are installed by running either poetry run pre-commit install or from within the poetry shell pre-commit install. After hooks are installed, they will automatically be run on each git commit, they can all be skipped by running git commit --no-verify or specific hooks can be skipped by setting the environmental variable, ex. SKIP=test:pre-commit:pytest git commit.

Individual hooks can also be run independently. For example, to build sphinx-doc, you can run pre-commit run publish:doc:test, or to run black on all files: pre-commit run test:flywheel-lint -a. For a list of all hooks, view the pre-commit-config.

Managing dependencies

To add new dependencies to this repo, please use poetry and to follow the below steps:

# Install my-package:
poetry add my-package
# or install my-package as part of the required packages for development (e.g. pytest):
poetry add my-package --dev
# Sync poetry.lock
poetry lock

Building and releasing

Local building

To build the project locally and verify if the build was successful, you can run

poetry build --format wheel
twine check dist/*.whl

Versioning and project information

The pyproject.toml file has replaced the usual setup.py in this repository and contains information on contributers, maintainers, project description, project URLs, and project version. In order to change any information on the project, it must be changed in the pyproject.toml, file. Documentation for this file can be found here, and information on dependency version specification syntax can be found here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

fw_gear-0.2.0rc1-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

Details for the file fw_gear-0.2.0rc1-py3-none-any.whl.

File metadata

  • Download URL: fw_gear-0.2.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 35.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/5.15.154+

File hashes

Hashes for fw_gear-0.2.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 03e751588f1559723853c434096462a4923b89cda92cd4a47bd4a721885f4080
MD5 3e84506b01bdf59067b10898af62a809
BLAKE2b-256 27b40df6baad23d13bd2bf4c0e7ad3e29c1a6512a85f3339d033d5f16cfd5493

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page