Thanks for taking an interest in this awesome little project. We love to bring new members into the community, and can always use the help.
- Task tracking and Bug reports: GitHub
- Discussion: the Python Discord server
- Must work under all supported Python versions (2.7 and 3.4+)
- Must work on all supported platforms (if applicable)
- Try to match the general code style (loosely PEP8)
- Be respectful. Memes, references, and jokes are ok. Explicit language (cursing/swearing), NSFW text/content, or racism are NOT ok.
- All tests run and pass locally
-
tox
-
tox -e check
-
- Update the CHANGELOG (For non-trivial changes, e.g. changing functionality or adding tests)
- Add your name to the contributors list in the README
- All TravisCI tests pass
- Appveyor tests pass
- Code has been reviewed by at least one maintainer
- Sample collection (see section below)
- Platform testing (see section below)
- Bug reports!
- Documentation (including fixes for grammar and spelling)
- Improving and adding tests for existing samples
- Writing parsers for new commands (Example:
netsh int ipv6
) - Addressing missing functionality (Example: default interface detection for IPv6 on Windows)
- Adding new features (Example: ability to find MAC by interface index integer)
- Adding tests for internal methods and mocking where necessary
Help is dearly needed on testing and rooting out differences in various platforms and configurations. At a basic level, this involves just running the tests on any platforms you use. Open issues for any bugs or quirks you discover, or if you're feeling adventurous, fix it yourself!
Any platform is fair game! The following are some highlights or platforms of special interest:
- MacOS/OSX (This requires owning a Mac, and is the area most sorely in need of testing)
- Legacy Windows desktop (7 and 8)
- Windows Server
- Arch Linux
- BSD
Examples of output of various commands is an easy way contribute that is still incredibly helpful.
- Run the command
- Copy/paste the output (or redirect output of command,
tee
is helpful here) into an appropriately named.out
file insamples/
- That's it!
- Create your own fork of the code through GitHub web interface (Here's a Guide)
- Clone the fork to your computer. This can be done using the
GitHub desktop GUI ,
git clone <fork-url>
, or the Git tools in your favorite editor or IDE. - Create and checkout a new branch in the fork with either your username (e.g. "ghostofgoes"),
or the name of the feature or issue you're working on (e.g. "openbsd-support").
Again, this can be done using the GUI, your favorite editor, or
git checkout -b <branch> origin/<branch>
. - Install the developer tools and getmac as an "editable" package:
python -m pip install --user -U tox python -m pip install -e .
- Setup and run the tests:
# Run code quality checks tox -e check # Run the tests tox
- Write some code! Git commit messages should information about what changed, and if it's relevant, the rationale (thinking) for the change.
- Follow the checklist in the pull request template
- Submit a pull request!
Filing a bug report:
- Answer these questions:
- What version of
getmac
are you using? (getmac --version
) - What operating system and processor architecture are you using?
- What version of Python are you using?
- What did you do?
- What did you expect to see?
- What did you see instead?
- What version of
- Put any excessive output into a GitHub Gist and include a link in the issue.
- Tag the issue with "Bug"
NOTE: If the issue is a potential security vulnerability, do NOT open an issue! Instead, email: ghostofgoes(at)gmail(dot)com
Ideas for features or other things are welcomed. Open an issue on GitHub detailing the idea, and tag it appropriately (e.g. "Feature" for a new feature).