Impact Forecasting for the Climate Impact Lab
Project description
impax
Impact Forecasting for the Climate Impact Lab
Free software: MIT license
Documentation: https://impax.readthedocs.io.
Setting up this package
Justin Simcock: complete these instructions and then remove this section from the readme.
Create a matching repository on github if you haven’t already:
go to https://github.com/organizations/ClimateImpactLab/repositories/new
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!
Press the big green buttton
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
Set up automated testing, coverage, updates, and docs:
Set up testing
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.
Next to “My Repositories” click the ‘+’ icon
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.
Push a change to your package (for example, you could delete this section). You should see tests start running on travis automatically.
Start writing tests for your code in the impax/tests folder. There are some examples already in there to get you started.
Set up docs
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.
click ‘Import a project’, go to ClimateImpactLab, and refresh.
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.
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.
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).
Set up updates
go to https://pyup.io. you know the drill.
Go to your account, and click ‘+ Add Repo’. Sync.
Add ClimateImpactLab/impax with “Dependency Updates” and “SafetyCI” turned on. Leave “Update Schedules” off.
Set up test coverage monitoring
next up: https://coveralls.io. you got this.
Breathe easy. The next time you push code, these should all update for you! Now that wasn’t so bad, was it?
Develop with github:
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
Deploy
Set up deployment by registering the package on the python package index (PyPI):
Create an account on PyPI: https://pypi.python.org/pypi
Register the package:
python setup.py register
Encrypt & package your credentials so travis can deploy for you:
python travis_pypi_setup.py
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
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.
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
Built Distribution
File details
Details for the file impax-0.1.0.tar.gz
.
File metadata
- Download URL: impax-0.1.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43960d0e0ea44a80debd361a2c24beda52fabb36b6eabd576f68193ce148a3fd |
|
MD5 | d97c4173f2888a5c3a760eeffd369259 |
|
BLAKE2b-256 | 980e19c4b8131e36312549cf5800377a548e279d1a2f1e17b17950313545e06c |
File details
Details for the file impax-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: impax-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dbee4eb6abba77e3ad8b715175367e8bfdc5192dd2a7223484faddaedcfdea1 |
|
MD5 | c28f2d02d393b5b0b5239e91d3106265 |
|
BLAKE2b-256 | bb5130f2c081ddab04168e4d8352a667c1723f0f820571db3d4888b85fbb82ea |