Skip to main content

an opinionated base package for builds using uranium

Project description

uranium-plus: opinionated usage of uranium

uranium-plus is an alpha project. use at your own risk, and things are subject to change

uranium-plus is an opinionated way of using uranium, relying on standardization to provide functionality out of the box:

  • a uranium test directive, using pytest
  • a uranium publish directive, to publish packages
  • a uranium main directive,

standard conventions

  • your tests live in either in a "tests" directory under your main module.
  • a setup.py file is used to declare your package
  • the main task can be overriden with any setup required to publish the application.

using uranium-plus in your ubuild.py

You can install uranium-plus, then call the provided boostrap function to bootstrap your repo. from that point on, you will have all the standard uranium-plus goodies:

# ubuild.py
build.packages.install("uranium-plus")
import uranium_plus

build.config.update({
    "uranium-plus": {
        "module": "my-module"
    }
})

uranium_plus.bootstrap(build)

Using uranium-plus for vscode

uranium-plus includes built in configuration for maximum compatibility with vscode's vscode-python extension.

modify your uranium-plus installation to include the vscode extras:

# ubuild.py
build.packages.install("uranium-plus[vscode]")
import uranium_plus

Design / Best Practices

uranium-plus ensures best practices that are not necessarily enforced by uranium itself, this inclues:

Installing all dependencies and requirements during the main() call.

Developers may go offline at inopportune times. As a result, there should not be surprise dependencies that are discovered only when the task is invoked for the first time.

uranium-plus moves almost all dependencies to the setup.py, and moves dependencies that can only be resolved by user configuration (such as test.packages) to the main() function to be installed then.

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

uranium-plus-2.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

uranium_plus-2.1.1-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file uranium-plus-2.1.1.tar.gz.

File metadata

  • Download URL: uranium-plus-2.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.1

File hashes

Hashes for uranium-plus-2.1.1.tar.gz
Algorithm Hash digest
SHA256 6c5842856ee24a7a4f0dd33692ef78263b260db52d16757a34f0a7fbc03086b5
MD5 980d02b21abd7beb899acacba8f7bc7a
BLAKE2b-256 30bd183545a6cd346fd6908c258286ea82b80e31eaf447d8fc056c1193671441

See more details on using hashes here.

File details

Details for the file uranium_plus-2.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: uranium_plus-2.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.1

File hashes

Hashes for uranium_plus-2.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 718729d40af488d7076b40d78ef4ad841cfd7e4286b1f2e43c4c475e6b0bdbaf
MD5 c7993d946a2da8a7b043937bea1adf9c
BLAKE2b-256 b63caddb264bbd6a55738c3c9fa1e209718f7f634323caa00c183ec71e7812f9

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