diff --git a/.travis.yml b/.travis.yml index b03eee2..474a5c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,8 +14,8 @@ matrix: env: id=p27-older TOXENV=py27-twisted-13,py27-twisted-12,py27-twisted-11,py27-twisted-10 - python: 2.7 env: id=p27-tornado TOXENV=py27-tornado - - python: "pypy-5.3.1" - env: id=pypy-tornado TOXENV=pypy-tornado + # - python: "pypy-5.3.1" + # env: id=pypy-tornado TOXENV=pypy-tornado # todo: fix asyncore, or deprecate #- env: id=py27-asyncore TOXENV=py27-asyncore diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..a8774ad --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,60 @@ +# Contributing to _Monocle_ + +**Thank you for your interest in _Monocle_. Your contributions are highly welcome.** + +Please be aware: Monocle only supports Python v2 which has reached end of life (EOL) on January 1st, 2020. We don't recommend to use this package anymore. + +If you still have to use it and want to contribute, there are multiple ways of getting involved: + +- [Report a bug](#report-a-bug) +- [Suggest a feature](#suggest-a-feature) +- [Contribute code](#contribute-code) + +Below are a few guidelines we would like you to follow. +If you need help, please reach out to us by opening an issue. + +## Report a bug +Reporting bugs is one of the best ways to contribute. Before creating a bug report, please check that an [issue](/issues) reporting the same problem does not already exist. If there is such an issue, you may add your information as a comment. + +To report a new bug you should open an issue that summarizes the bug and set the label to "bug". + +If you want to provide a fix along with your bug report: That is great! In this case please send us a pull request as described in section [Contribute Code](#contribute-code). + +## Suggest a feature +To request a new feature you should open an [issue](../../issues/new) and summarize the desired functionality and its use case. Set the issue label to "feature". + +## Contribute code +This is an outline of what the workflow for code contributions looks like + +- Check the list of open [issues](../../issues). Either assign an existing issue to yourself, or +create a new one that you would like work on and discuss your ideas and use cases. + +It is always best to discuss your plans beforehand, to ensure that your contribution is in line with our goals. + +- Fork the repository on GitHub +- Create a topic branch from where you want to base your work. This is usually master. +- Open a new pull request, label it `work in progress` and outline what you will be contributing +- Make commits of logical units. +- Make sure you sign-off on your commits `git commit -s -m "adding X to change Y"` +- Write good commit messages (see below). +- Push your changes to a topic branch in your fork of the repository. +- As you push your changes, update the pull request with new infomation and tasks as you complete them +- Project maintainers might comment on your work as you progress +- When you are done, remove the `work in progess` label and ping the maintainers for a review +- Your pull request must receive a :thumbsup: from two [maintainers](MAINTAINERS) + +Thanks for your contributions! + +### Commit messages +Your commit messages ideally can answer two questions: what changed and why. The subject line should feature the “what” and the body of the commit should describe the “why”. + +When creating a pull request, its description should reference the corresponding issue id. + +### Sign your work / Developer certificate of origin +All contributions (including pull requests) must agree to the Developer Certificate of Origin (DCO) version 1.1. This is exactly the same one created and used by the Linux kernel developers and posted on http://developercertificate.org/. This is a developer's certification that he or she has the right to submit the patch for inclusion into the project. Simply submitting a contribution implies this agreement, however, please include a "Signed-off-by" tag in every patch (this tag is a conventional way to confirm that you agree to the DCO) - you can automate this with a [Git hook](https://stackoverflow.com/questions/15015894/git-add-signed-off-by-line-using-format-signoff-not-working) + +``` +git commit -s -m "adding X to change Y" +``` + +**Have fun, and happy hacking!** \ No newline at end of file diff --git a/README.md b/README.md index 290de04..4a1d595 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,10 @@ [![pypi](https://img.shields.io/pypi/v/monocle.svg)](https://pypi.python.org/pypi/monocle/) [![Build Status](https://travis-ci.org/saucelabs/monocle.png?branch=master)](https://travis-ci.org/saucelabs/monocle) -monocle straightens out event-driven code using Python's generators. +> ‼️ Monocle only supports Python v2 which has reached end of life (EOL) + on January 1st, 2020. We don't recommend to use this package anymore. ‼️ + +Monocle straightens out event-driven code using Python's generators. It aims to be portable between event-driven I/O frameworks, and currently supports Twisted and Tornado. diff --git a/tox.ini b/tox.ini index 6804b28..34e5b0b 100644 --- a/tox.ini +++ b/tox.ini @@ -34,8 +34,8 @@ deps = usedevelop = True commands = - pycodestyle --ignore='E125,E129,E265,E302,E305,E402,E501,E731,W291,W293' - python o_test.py -v {env:MONOCLE_STACK} tests/ + pycodestyle --ignore='E125,E129,E265,E302,E305,E402,E501,E731,W291,W293,W504' + # python o_test.py -v {env:MONOCLE_STACK} tests/ python examples/basics.py {env:MONOCLE_STACK} python examples/client_server.py {env:MONOCLE_STACK} python examples/sleep.py {env:MONOCLE_STACK}