-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from GhostofGoes/refactor
Refactor for 0.9.0
- Loading branch information
Showing
125 changed files
with
5,617 additions
and
1,582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Temporary hack until we remove shutilwhich with removal of Python 2 | ||
# TODO: move relative_files into tox.ini | ||
[run] | ||
relative_files = True | ||
omit = | ||
getmac/shutilwhich.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_allowed: true | ||
contact_links: | ||
- name: Have a general question or comment? | ||
url: "https://github.com/GhostofGoes/getmac/discussions" | ||
about: Open a discussion thread! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
### All Submissions: | ||
|
||
* [ ] Have you followed the guidelines in our Contributing document? | ||
* [ ] Have you checked to ensure there aren't other open [Pull Requests](../../pulls) for the same update/change? | ||
* [ ] Have you added an explanation of what your changes do and why you'd like us to include them? | ||
- [ ] Have you followed the guidelines in our Contributing document? | ||
- [ ] Have you checked to ensure there aren't other open [Pull Requests](../../pulls) for the same update/change? | ||
- [ ] Have you added an explanation of what your changes do and why you'd like us to include them? | ||
|
||
<!-- You can erase any parts of this template not applicable to your Pull Request. --> | ||
|
||
### Code changes: | ||
|
||
* [ ] Did you format your code with Black? | ||
* [ ] `black getmac tests` | ||
* [ ] Are the linting checks passing? | ||
* [ ] `tox -e check` | ||
* [ ] Do all tests pass locally? | ||
* [ ] `tox` | ||
* [ ] Have you updated the [CHANGELOG](CHANGELOG.md) with a summary of your change? | ||
* [ ] Did you add your name to the contributors list in the [README](README.md)? | ||
- [ ] Did you format your code with Black? | ||
- `black getmac tests` | ||
- [ ] Are the linting checks passing? | ||
- `tox -e check` | ||
- [ ] Do all tests pass locally? | ||
- `tox` | ||
- [ ] Have you updated the [CHANGELOG](CHANGELOG.md) with a summary of your change? | ||
- [ ] Did you add your name to the contributors list in the [README](README.md)? | ||
|
||
### Summary of changes: | ||
* | ||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
name: CI | ||
|
||
on: | ||
- release | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
lint: | ||
name: Run lint checks | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.8" | ||
- name: Install tox | ||
run: python -m pip install tox | ||
- name: Run lint checks | ||
run: tox -e check | ||
test: | ||
name: Run tests | ||
runs-on: ${{ matrix.platform }} | ||
strategy: | ||
fail-fast: false | ||
# Versions available: | ||
# pypy: https://downloads.python.org/pypy/versions.json | ||
# Python: https://github.com/actions/python-versions/blob/main/versions-manifest.json | ||
# Additional info: https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md | ||
# OS images: https://github.com/actions/runner-images | ||
matrix: | ||
python-version: | ||
- "2.7" | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "pypy-2.7" | ||
- "pypy-3.6" | ||
- "pypy-3.7" | ||
- "pypy-3.8" | ||
- "pypy-3.9" | ||
architecture: | ||
- x86 | ||
- x64 | ||
platform: | ||
- ubuntu-20.04 | ||
- windows-latest | ||
- macos-latest | ||
exclude: | ||
- platform: ubuntu-20.04 | ||
architecture: x86 | ||
- platform: macos-latest | ||
architecture: x86 | ||
- platform: ubuntu-20.04 | ||
python-version: "3.4" | ||
- platform: macos-latest | ||
python-version: "3.4" | ||
- platform: macos-latest | ||
python-version: "pypy-2.7" | ||
- platform: macos-latest | ||
python-version: "pypy-3.6" | ||
- platform: macos-latest | ||
python-version: "pypy-3.7" | ||
- platform: macos-latest | ||
python-version: "pypy-3.8" | ||
- platform: windows-latest | ||
python-version: "pypy-2.7" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: ${{ matrix.architecture }} | ||
- name: Display platform and environment information | ||
run: | | ||
python --version | ||
python -c "import sys; print('sys.version: %s' % str(sys.version))" | ||
python -c "import sys; print('sys.platform: %s' % str(sys.platform))" | ||
python -c "import os; print('os.name: %s' % str(os.name))" | ||
python -c "import platform; print('platform.uname(): %s' % str(platform.uname()))" | ||
- name: Install dependencies | ||
run: python -m pip install tox coveralls tox-gh-actions | ||
# TODO: fix benchmark results (maybe a separate Job?) | ||
- name: Run tests | ||
run: tox | ||
- uses: codecov/codecov-action@v2 | ||
with: | ||
fail_ci_if_error: true | ||
- name: Coveralls | ||
if: ${{ matrix.platform == 'ubuntu-20.04' && github.event_name != 'pull_request' }} | ||
uses: AndreMiras/coveralls-python-action@develop | ||
with: | ||
parallel: true | ||
flag-name: ${{ matrix.python-version }}-${{ matrix.platform }} | ||
coveralls_finish: | ||
needs: test | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Coveralls Finished | ||
if: ${{ github.event_name != 'pull_request' }} | ||
uses: AndreMiras/coveralls-python-action@develop | ||
with: | ||
parallel-finished: true | ||
|
||
|
||
# TODO: publish | ||
# TODO: need to do this for both "getmac" and "get-mac" packages | ||
# TODO: don't publish pre-releases OR publish them as pre-releases to PyPI | ||
|
||
# https://github.com/marketplace/actions/upload-a-build-artifact | ||
|
||
# name: "Build and publish a release" | ||
|
||
# on: | ||
# release: | ||
# types: [released] | ||
|
||
# jobs: | ||
# publish: | ||
# name: "📦 Publish Python distributions" | ||
# runs-on: "ubuntu-20.04" | ||
# strategy: | ||
# matrix: | ||
# python-version: | ||
# - "3.8" | ||
# steps: | ||
# - uses: "actions/checkout@master" | ||
# - name: "🐍 Set up Python ${{ matrix.python-version }}" | ||
# uses: "actions/setup-python@v2" | ||
# with: | ||
# python-version: "${{ matrix.python-version }}" | ||
# - name: "🐍 Install wheel" | ||
# run: "python -m pip install wheel --user" | ||
# - name: "🐍 Build a binary wheel and a source tarball" | ||
# run: "python setup.py sdist bdist_wheel" | ||
# - name: "📦 Publish distribution to PyPI" | ||
# uses: "pypa/gh-action-pypi-publish@master" | ||
# if: "startsWith(github.ref, 'refs/tags')" | ||
# with: | ||
# password: "${{ secrets.pypi_password }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.