-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.6.0' into main
- Loading branch information
Showing
28 changed files
with
495 additions
and
454 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 @@ | ||
github: [wmayner] |
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,27 @@ | ||
name: Build wheels & run tests | ||
|
||
on: ['push', 'pull_request'] | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macos-11] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.12.0 | ||
with: | ||
package-dir: . | ||
output-dir: wheelhouse | ||
config-file: "{package}/pyproject.toml" | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl |
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,19 @@ | ||
name: Make source distribution | ||
|
||
on: ['push', 'pull_request'] | ||
|
||
jobs: | ||
make_sdist: | ||
name: Make source distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Build source distribution | ||
run: pipx run build --sdist | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: dist/*.tar.gz |
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,13 +1,17 @@ | ||
__pycache__ | ||
.gitconfig | ||
.cache | ||
.pytest_cache | ||
.tox | ||
.env | ||
.ropeproject | ||
*.so | ||
*.pyc | ||
MANIFEST | ||
*.egg* | ||
src/pyemd/emd.cpp | ||
src/pyemd/_version.py | ||
build | ||
dist | ||
pyemd/emd.cpp | ||
wheelhouse | ||
ignore |
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
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,4 +1,4 @@ | ||
graft pyemd | ||
graft src/pyemd | ||
graft test | ||
|
||
include README.rst | ||
|
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,30 +1,49 @@ | ||
.PHONY: default test build clean dist test-dist check-dist build-dist clean-dist | ||
.PHONY: default clean develop test dist-clean build-local build dist-upload dist-test-upload dist-sign dist-check | ||
|
||
src = pyemd | ||
dist_dir = dist | ||
src = src/pyemd | ||
test = test | ||
dist = dist | ||
wheelhouse = wheelhouse | ||
|
||
default: build | ||
default: test | ||
|
||
test: build | ||
test: develop | ||
py.test | ||
|
||
build: clean | ||
python setup.py build_ext -b . | ||
develop: clean | ||
python -m pip install -e ".[test,dist]" | ||
|
||
clean: | ||
rm -f pyemd/*.so | ||
rm -rf $(shell find . -name '__pycache__') | ||
rm -rf $(shell find . -name '*.so') | ||
rm -rf .eggs | ||
rm -rf pyemd.egg-info | ||
rm -rf build | ||
|
||
dist: build-dist check-dist | ||
twine upload $(dist_dir)/* | ||
dist-build-local: | ||
python -m build | ||
|
||
test-dist: build-dist check-dist | ||
twine upload --repository-url https://test.pypi.org/legacy/ $(dist_dir)/* | ||
dist-build-wheels: | ||
cibuildwheel --platform linux --config-file pyproject.toml | ||
|
||
check-dist: | ||
python setup.py check --restructuredtext --strict | ||
dist-upload: dist-sign | ||
twine upload $(dist)/* | ||
twine upload $(wheelhouse)/* | ||
|
||
build-dist: clean-dist | ||
python setup.py sdist bdist_wheel --dist-dir=$(dist_dir) | ||
dist-test-upload: dist-check | ||
twine upload --repository-url https://test.pypi.org/simple/ testpypi $(dist)/* | ||
twine upload --repository-url https://test.pypi.org/simple/ testpypi $(wheelhouse)/* | ||
|
||
clean-dist: | ||
rm -rf $(dist_dir) | ||
dist-sign: dist-check | ||
gpg --detach-sign -a $(dist)/*.tar.gz | ||
gpg --detach-sign -a $(wheelhouse)/*.whl | ||
|
||
dist-check: | ||
twine check --strict $(dist)/* | ||
twine check --strict $(wheelhouse)/* | ||
|
||
dist-clean: | ||
rm -rf $(dist) | ||
|
||
dist-test-install: | ||
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pyemd |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.