If you find a bug, please open an issue on the Github issues tracker. Please provide some code that reproduces the error and versions of the packages installed.
To contribute code we recommend you follow these steps:
To contribute code we recommend you follow these steps:
- Fork the repository on github
- Set up travis-ci for your branch. This is actually pretty quick and easy:
Go to travis-ci.org and Sign in with GitHub.
Account page will show all the repositories attached to GitHub.
Find the right repository and enable Travis CI.
Once this is done, Travis CI will be turned-on in GitHub fork.
Go back to the fork on GitHub, click
Settings->Webhooks->updated travis-ci.org link.Default or customize the options based on needs and click
Update webhook.
Clone the repository to your favorite location on your drive where you want to work on it.
To work in developer mode, from a terminal (python enabled) at the top level directory inside the
vibration testing moduletype:$ pip install -e .
This will allow you to edit the code while having it pretend to be installed. Keep in mind, if you have actually installed the
vibration testing moduleyou may have a conflict. You must uninstall it and install your development version with the command above.If a new function is added please provide docstrings following the Numpy standards for docstrings. The docstrings should contain examples to be tested.
Specifically note:
- Parameters should be listed similarly to:
filename : strcopy : booldtype : data-typeiterable : iterable objectshape : int or tuple of intfiles : list of strtime : array_like- First line should be inline with the
"""and brief enough to fit on one line. - There must be a blank line after the first line.
This is not exhaustive. It just highlights some consistent errors made.
Run the doctests regularly when you make edits.
To run the doctests pytesthttps://docs.pytest.org/en/latest/ is needed and can be installed with
pip install -U pytest.To run the tests from the shell you can cd to the project's root directory and type:
$ pytest 1. To run the tests from ``pycharm`` you can do: Run -> Edit Configurations -> Add -> python tests -> pytest Then just set the path to the project directory. 2. To run the tests from ``spyder`` see `spyder-unittest <https://github.com/spyder-ide/spyder-unittest`_.
Commit and check travis-ci tests regularly. Having a great number of changes before a commit can make tracing errors very hard. Make sure you are looking at your branch when assessing whether it's working.
You may need to update from the main repository before submitting a pull request. This allows you to see the complete results before we look at them. If it doesn't work, the pull will (should) be denied. This can be a bit daunting for some, so it's recommended but not necessary.
If the tests are passing, make a git pull (in your GitHub app) to assure that your code is up to date with the master branch and that your code has no conflicts with the current base. Doing this regularly ensures that your accumulated edits won't be massively in conflict with the existing code base. After that, push your branch to github and then open a pull request.
Please provide feedback and corrections to these instructions.
- Edit the version number in
vibrationtesting/__init__.py - Use the Makefile,
make release
The conf.py file for the documentation pulls the version from __init__.py
>> make wheelTravisCI does this for us.
See notes on working in development mode.
Note: these are out of date.
python setup.py register -r pypitest python setup.py sdist upload -r pypitest
look at https://testpypi.python.org/pypi