Metadata-Version: 2.1
Name: phylum-ci
Version: 0.0.2rc5
Summary: Utilities for Phylum integrations
Home-page: https://phylum.io/
License: MIT
Keywords: dependency,security,CI,integration
Author: Phylum, Inc.
Author-email: engineering@phylum.io
Requires-Python: >=3.7,<4.0
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Security
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Dist: importlib-metadata (>=4.11.3,<5.0.0); python_version < "3.8"
Project-URL: Documentation, https://docs.phylum.io/
Project-URL: Issue Tracker, https://github.com/phylum-dev/phylum-ci/issues
Project-URL: Repository, https://github.com/phylum-dev/phylum-ci
Description-Content-Type: text/markdown

# phylum-ci
[![PyPI](https://img.shields.io/pypi/v/phylum-ci)](https://pypi.org/project/phylum-ci/)
![PyPI - Status](https://img.shields.io/pypi/status/phylum-ci)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/phylum-ci)](https://pypi.org/project/phylum-ci/)
[![GitHub](https://img.shields.io/github/license/phylum-dev/phylum-ci)](https://github.com/phylum-dev/phylum-ci/blob/main/LICENSE)
[![GitHub issues](https://img.shields.io/github/issues/phylum-dev/phylum-ci)](https://github.com/phylum-dev/phylum-ci/issues)
![GitHub last commit](https://img.shields.io/github/last-commit/phylum-dev/phylum-ci)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/phylum-dev/phylum-ci/Test/develop?label=Test&logo=GitHub)](https://github.com/phylum-dev/phylum-ci/actions/workflows/test.yml)

Python package for handling CI and other integrations

## Local Development
Here's how to set up `phylum-ci` for local development.

1. Clone the `phylum-ci` repo locally

    ```sh
    git clone git@github.com:phylum-dev/phylum-ci.git
    ```

2. Ensure all supported Python versions are installed locally
   1. The strategy is to support all released minor versions of Python that are not end-of-life yet
   2. The current list is 3.7, 3.8, 3.9, and 3.10, but the Python Developer's Guide can be referenced for the [status of active Python releases](https://devguide.python.org/#status-of-python-branches)
   3. It is recommended to use [`pyenv`](https://github.com/pyenv/pyenv) to manage multiple Python installations

    ```sh
    # Use `pyenv install --list` to get available versions and usually install the latest patch version.
    # NOTE: These versions are examples; the latest patch version available from pyenv should be used in place of `.x`.
    #       example: `pyenv install --list |grep 3.9.` to show latest patch version for the cpython 3.9 minor release.
    pyenv install 3.7.x
    pyenv install 3.8.x
    pyenv install 3.9.x
    pyenv install 3.10.x
    pyenv rehash
    # Ensure all environments are available globally (helps tox to find them)
    pyenv global 3.10.x 3.9.x 3.8.x 3.7.x
    ```

3. Ensure [poetry](https://python-poetry.org/docs/) is installed
4. Install dependencies with `poetry`, which will automatically create a virtual environment:

    ```sh
    cd phylum-ci
    poetry install
    ```

5. Create a branch for local development:

    ```sh
    git checkout -b <name-of-your-branch>
    ```

    Now you can make your changes locally.

6. If new dependencies are added, ensure the `poetry.lock` file is updated (and committed):

    ```sh
    poetry lock
    ```

7. When you're done making changes, check that your changes pass the tests:

    ```sh
    poetry run tox
    ```

8. Commit your changes and push your branch to GitHub:

    ```sh
    git add .
    git commit -m "Description of the changes goes here"
    git push --set-upstream origin <name-of-your-branch>
    ```

9. Submit a pull request through the GitHub website

