Skip to main content

impax

https://img.shields.io/pypi/v/impax.svg https://img.shields.io/travisClimateImpactLab/impax.svg Documentation Status Updates

Impact Forecasting for the Climate Impact Lab

Setting up this package

Justin Simcock: complete these instructions and then remove this section from the readme.

  1. Create a matching repository on github if you haven’t already:

    1. go to https://github.com/organizations/ClimateImpactLab/repositories/new

    2. enter the following information:

      owner

      ClimateImpactLab

      Repository Name

      impax

      Description

      Impact Forecasting for the Climate Impact Lab

      Privacy

      Public

      Do not initialize the repo with a readme, license, or gitignore!

    3. Press the big green buttton

  2. Execute the following commands in this directory:

    git init
    git add .
    git commit -m "initial commit"
    git remote add origin git@github.com:ClimateImpactLab/impax.git
    git push -u origin master
  3. Set up automated testing, coverage, updates, and docs:

    1. Set up testing

      1. go to https://travis-ci.org/ and sign in/sign up with github. Make sure travis has access to the repositories on your github account and those owned by the ClimateImpactLab by enabling access in your account settings.

      2. Next to “My Repositories” click the ‘+’ icon

      3. Flip the switch on ClimateImpactLab/impax. If you don’t see it in the list, click ‘Sync account’, and make sure you are looking at the ClimateImpactLab repositories.

      4. Push a change to your package (for example, you could delete this section). You should see tests start running on travis automatically.

      5. Start writing tests for your code in the impax/tests folder. There are some examples already in there to get you started.

    2. Set up docs

      1. go to https://readthedocs.io and sign in/sign up with github. Same deal - make sure readthedocs has access to your github account and ClimateImpactLab.

      2. click ‘Import a project’, go to ClimateImpactLab, and refresh.

      3. click the ‘+’ icon next to ClimateImpactLab/impax. Pick a name for your project. The name has to be globally unique (not just within the ClimateImpactLab), so if you chose something with a common name you may have to rename the docs.

      4. go to the settings page for your new docs site, and navigate to the ‘advanced settings’ tab. add requirements_rtd.txt to the “requirements file” field.

      5. next time you push code to master, docs should build automatically. You can view them at https://impax.readthedocs.io/en/latest/ (substitute whatever name you chose).

    3. Set up updates

      1. go to https://pyup.io. you know the drill.

      2. Go to your account, and click ‘+ Add Repo’. Sync.

      3. Add ClimateImpactLab/impax with “Dependency Updates” and “SafetyCI” turned on. Leave “Update Schedules” off.

    4. Set up test coverage monitoring

      1. next up: https://coveralls.io. you got this.

    5. Breathe easy. The next time you push code, these should all update for you! Now that wasn’t so bad, was it?

  4. Develop with github:

    1. In general, it’s best to file an issue when you want to change something or when you’ve found a bug, then write tests which test a-priori assertions about desired behavior, and then write the minimum amount of code required to pass these tests. See the contributing docs for more workflow suggestions.

      To run all tests on your local machine:

      make test
  5. Deploy

    1. Set up deployment by registering the package on the python package index (PyPI):

      1. Create an account on PyPI: https://pypi.python.org/pypi

      2. Register the package:

        python setup.py register
      3. Encrypt & package your credentials so travis can deploy for you:

        python travis_pypi_setup.py
    2. When you’re ready to deploy this package, make sure all your changes are committed. Then run:

      bumpversion patch # (or minor or major)
      git push
      git push --tags

      As soon as this new tagged commit passes tests, travis will deploy for you

    3. Anyone (in the world) should now be able to install your package with

      pip install [package-name]

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2017-10-12)

  • First release on PyPI.

Metadata

Release files for impax 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for impax 0.1.1
File Size Uploaded Provenance Actions
impax-0.1.1.tar.gz 18.6 kB Without provenance Details for impax-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for impax 0.1.1
File Interpreter ABI Platform Actions
impax-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for impax-0.1.1-py2.py3-none-any.whl

Total release size: 31.0 kB

Release files / impax-0.1.1.tar.gz

Download URL impax-0.1.1.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
86d870f000932521a62dc6e3861a4f5205c38d8c26623db43dce2ad082208c50
BLAKE2b-256 checksum
How to use checksums
30cffc46cd67dfe235f45c40996e69e3d4066c482055d05b83f5f3570bd75c83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / impax-0.1.1-py2.py3-none-any.whl

Download URL impax-0.1.1-py2.py3-none-any.whl
Size 12.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6a189bcdde3079d892c540517e15d6ea1f633f9f9ded867f0ae8f556d728f468
BLAKE2b-256 checksum
How to use checksums
48b7dc72fb8329719f801c0776360f402af39e52d5377d24242f3ef408f6466a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for impax 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page