Skip to main content

Utility functions for Coral Atlas Pipelines

Project description

proc_pipeline_utils

Shared utility functions for Coral Atlas data pipelines

Development

This project uses Pipenv to manage virtual environments and dependencies. Development-time dependencies are documented in the Pipfile. Follow the Pipenv documentation to create a virtual environment and install the dependencies.

Makefile

The included Makefile prescribes actions to test, build, and publish this code to a Python Package Index (PyPI) repository as described in the following sections.

$ make [test | build | publish]

Testing

With the virtual environment active and the dependencies installed, use pytest to run the test suite.

To run the unit tests, run:

$ pipenv run pytest

Building

This project uses the setuptools Python package for packaging as described here.

When building via the make build command, you may optionally append to the package name using the prerelease argument. For example, if the current version of pipelines_utils specified in the setup.py module is 1.0.1, then

$ make build prerelease=rc1

will produce a package named pipelines_utils-1.0.1rc1. The default is a beta prerelease name incremented by each git commit (eg/ 1.0.1b7 for the seventh commit on this branch). Specify a final release with

$ make build prerelease=""

Note that prerelease names must comply with PEP 440.

Publishing

This project uses the twine Python package for distribution as described here.

When publishing via the make publish command, the default PyPI repository is testpypi. To publish to pypi.org, specify that repository:

$ make publish pypi_repository=pypi

The credentials necessary to publish to the target PyPI repository can be provided in one of two ways.

  1. As these environment variables:
Env Var Notes
PYPI_REPOSITORY_USERNAME PyPI account username. If authenticating using a token, use the literal string __token__.
PYPI_REPOSITORY_PASSWORD PyPI account password. If authenticating using a token, use the token contents.
  1. At the make publish command:
$ make publish pypi_repository=pypi pypi_repository_username="foo" pypi_repository_password="bar"

Project details


Download files

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

Source Distribution

pipeline_utils-0.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

pipeline_utils-0.0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file pipeline_utils-0.0.1.tar.gz.

File metadata

  • Download URL: pipeline_utils-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for pipeline_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a53eb47e063e0e362583c7e9b63cd9fdc8e191e96cb59491d72c36a95c4b6fcc
MD5 b6ae5bedbbda3393e1fec68573b95a75
BLAKE2b-256 90caecfccb0b9dbdd8f5e1eebc897099d230f04f352c845a90bb57a15ca0c3c5

See more details on using hashes here.

File details

Details for the file pipeline_utils-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pipeline_utils-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for pipeline_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3444d83b02b157cab2b0b2cf0b5fd8c8aeeb33f0a2e6777bb38ac414e07cb057
MD5 0ac1719f4cc9b09548b775d1f205b4c1
BLAKE2b-256 8e585b0f793771d8b3ad1a4b317e0b24825399b12b3000c0fd2cd6a3f1d06226

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