tqdm/CONTRIBUTE

54 lines
1.4 KiB
Plaintext
Raw Normal View History

2015-10-11 14:53:32 +00:00
HOW TO CONTRIBUTE TO TQDM
2015-10-11 17:05:33 +00:00
=========================
2015-10-11 17:05:33 +00:00
This file describes how to contribute changes to the project, and how to
upload to the pypi repository.
2015-10-11 14:53:32 +00:00
2015-10-11 17:05:33 +00:00
HOW TO COMMIT YOUR CONTRIBUTIONS
--------------------------------
2015-10-11 17:05:33 +00:00
Contributions to the project is made using the "Fork & Pull" model. Here's a
quickstart on how to do that (your mileage may vary depending on your git
config):
2015-10-11 17:05:33 +00:00
- create an account on [github](https://github.com)
- fork [tqdm](https://github.com/tqdm/tqdm)
- make a local clone: `git clone https://github.com/your_account/tqdm.git`
- make your changes on your local copy
- commit your changes `git commit -m "my message"`
2015-10-11 17:05:33 +00:00
- TEST YOUR CHANGES (see below)
- `push` to your github account: `git push origin`
- finally, create a Pull Request (PR) from your github fork
(go to your fork's webpage and click on "Pull Request."
You can then add a message to describe your proposal.)
2015-10-11 14:53:32 +00:00
TESTING
2015-10-11 17:05:33 +00:00
-------
2015-10-11 17:05:33 +00:00
To test functionality on your machine (such as before submitting a Pull
Request), there are a number of unit tests.
2015-10-11 17:05:33 +00:00
To run the tests,
- install `tox`
- `cd` to the root of the `tqdm` directory (in the same folder as this file)
- run the following commands:
```
make test
make coverage
make flake8
```
2015-10-11 17:05:33 +00:00
Alternatively (if you can't use `make`)
- install `nosetest`
- run the following commands:
```
nosetests --with-coverage --cover-package=tqdm -v tqdm/
python -m flake8 tqdm/_tqdm.py
```