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.6+ and 3.4+)
- Must work on all supported platforms (if applicable)
- Try to match the general code style (loosly 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 flake8
-
tox -e spellcheck
-
- Update the CHANGELOG (For non-trivial changes, e.g. changing functionality or adding tests)
- Add your name to the contributers 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 neccessary
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 adventerous, 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 appropriatly 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>
. - Create a virtual environment:
- Linux/OSX (Bash)
python -m pip install --user -U virtualenv mkdir -p ~/.virtualenvs/ python -m virtualenv ~/.virtualenvs/getmac source ~/.virtualenvs/getmac/bin/activate
- Windows (PowerShell)
python -m pip install --user -U virtualenv New-Item -ItemType directory -Path "$Env:USERPROFILE\.virtualenvs" python -m virtualenv "$Env:USERPROFILE\.virtualenvs\getmac" $Env:USERPROFILE\.virtualenvs\getmac\Scripts\Activate.ps1
- Linux/OSX (Bash)
- Install the package:
python -m pip install -e .
- Setup and run the tests:
python -m pip install --user -U tox
tox
tox -e flake8
tox -e codespell
- 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
- 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 appropriatly (e.g. "Feature" for a new feature).