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

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-115.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

gituptools-115-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gituptools-115.tar.gz
Algorithm Hash digest
SHA256 0cdb2b701a29db65d2f4ee66240b6f3a8385c41316ad170dad3b1c7521c1d1b0
MD5 d85d9864517ffb0a4cded70c65c07e00
BLAKE2b-256 32e7575df77dfd2b4c0cf3acbe8b5888517c7124cd4ffcb8a7172e790d02d6c2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gituptools-115-py3-none-any.whl
Algorithm Hash digest
SHA256 f287646425f2ea7f9f1d0cc913694df3488ec42467e5adb5d591232f72cd0dc0
MD5 0fd8243417b62206211727c892998b17
BLAKE2b-256 802005e25908a24107b4661616d214fc60b6ae83d5034c4c03c6d4ff086e7e55

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