Skip to main content

Setuptools helper for packaging Python from Gitlab.

Project description

PyPi Latest CircleCI

Build Codecov Docs Quality Gate Status

Security Rating Vulnerabilities Bugs Reliability Rating Lines of Code

Package Status PyVersions PyPI Downloads

License

Welcome to Gituptools

Gituptools is a helper for packing Python on Gitlab CICD runners. It basically gets as much from the runtime environment as it can to fill in all the packaging metadata that a typical setup.py file needs.

Gituptools is 100% standard library. No 3rd party dependencies.

See the Documentation for more help.

Installation

From PyPI directly:

pip install gituptools

Examples

This is all you need in a setup.py file if you are building on Gitlab CICD.

import gituptools

if __name__ == '__main__':
    gituptools.setup()

This is a basic example of a .gitlab-ci.yml file to build and publish your package.

image: python:latest

stages:
    - Build
    - Publish

PyPackage:
    stage: Build
    artifacts:
        paths: [dist/*]
    script:
        - python -m install build gituptools
        - python -m build --no-isolation

PyPi:
    stage: Publish
    needs:
        - job: PyPackage
          artifacts: true
    script:
        - python -m install twine
        - >
          twine upload
          --username $YOUR_USERNAME
          --password $YOUR_PASSWORD
          --verbose
          --non-interactive
          dist/*

SonarCloud

Quality gate

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

gituptools-117.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

gituptools-117-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file gituptools-117.tar.gz.

File metadata

  • Download URL: gituptools-117.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for gituptools-117.tar.gz
Algorithm Hash digest
SHA256 1212d02a8c4177d2afacee421ee45b08b501ff9e135382fefa6845b12d8aee01
MD5 a9313acbd223639fd4f65225a02f2c58
BLAKE2b-256 b0763c382dc4cb49c55467ea923f50e7b3661e3ed8c9254dbbdeac9d0d725fdc

See more details on using hashes here.

File details

Details for the file gituptools-117-py3-none-any.whl.

File metadata

  • Download URL: gituptools-117-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for gituptools-117-py3-none-any.whl
Algorithm Hash digest
SHA256 8f9e1ae1f35ffbbc2156a22d569e7a40cda6f4e62e865ba8c5792863500c6091
MD5 1807afa36f9d3c8064fe985e9573a5d3
BLAKE2b-256 8ce2f042f070561bc292d6ba5137c82b6f8cd018e395f47d87b67388aa0dcdd3

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