Skip to main content

util functions for software life cycle enforcement on github

Project description

PDS utility function for github

Enforces the PDS engineering node software lifecycle:

  • releases

Prerequisites

libxml2 is used. It needs to be deployed as follow:

Macos

brew install libxml2
cd ./venv/lib/python3.7/site-packages/  # chose the site package of the used python
ln -s /usr/local/Cellar/libxml2/2.9.10/lib/python3.7/site-packages/* .

Ubuntu

sudo apt-get update && sudo apt-get install libxml2-dev libxslt-dev python-dev
pip install lxml

deploy and run

Deploy:

pip install pds-gihub-util

Some environment variable need to be set (they are defined by default in github action but need to be set manually otherwise)

export GITHUB_WORKSPACE=<where the repository which we want to publish a snapshot is cloned>
export GITHUB_REPOSITORY=<full name of the repository which we want to publish for example NASA-PDS-Incubator/pds-app-registry>

Get command arguments:

maven-snapshot-release --help
python-snapshot-release --help
requirement-report --help

Development

git clone ...
cd pds-github-util
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Update the code

Test the code:

export GITHUB_TOKEN=<personal access token for github>
python setup.py test

Create package and publish it:

Set the version in setup.py

Tag the code

git tag <version>
git push origin --tags

The package will be published to pypi automatically though github action.

Manually publish the package

Create the package:

python setup.py sdist

Publish it as a github release.

Publish on pypi (you need a pypi account):

pip install twine
twine upload dist/*

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pds_github_util-0.3.6.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pds_github_util-0.3.6-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file pds_github_util-0.3.6.tar.gz.

File metadata

  • Download URL: pds_github_util-0.3.6.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for pds_github_util-0.3.6.tar.gz
Algorithm Hash digest
SHA256 f0b771bad6c2d66fafc8b9b6c87df488a0b89bb7012b48600ecda25dd09e7f22
MD5 e59906180473d3b008f9a1839b1fc53e
BLAKE2b-256 9c87d26f568b9395e1beece199aa83e872f4137ea36b4482e0a9b3839f775799

See more details on using hashes here.

File details

Details for the file pds_github_util-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: pds_github_util-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for pds_github_util-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 176b7669e1f7c950cc172c0fcc04a30f0e9a2bd384fee2abd6007f62a40f8c16
MD5 5a991fe204a56078b1aa7cfbd671eb1a
BLAKE2b-256 f32f59e2af46f2605dec6002ce3a2ca6a977e271c6e713cfa7f4e6ac60a7820a

See more details on using hashes here.

Supported by

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