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 #70 from geigerzaehler/g/modernize
Modernize project tools
- Loading branch information
Showing
15 changed files
with
1,231 additions
and
569 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,3 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
extend-ignore = E203 |
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,47 @@ | ||
name: Check and test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
python-version: | ||
- "3.8" # minimum required | ||
- "3.11" # latest | ||
- "3.12-dev" # next | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: pip install poetry | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: poetry | ||
- run: poetry env use $(which python) | ||
- run: poetry install | ||
- run: poetry run black --check . | ||
- run: poetry run isort --check . | ||
- run: poetry run flake8 | ||
- run: poetry run pytest | ||
- uses: coverallsapp/github-action@v2 | ||
if: github.event_name == 'pull_request' && matrix.python-version == '3.8' | ||
|
||
build-beets-master: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: pip install poetry | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.8 | ||
cache: poetry | ||
- run: poetry env use $(which python) | ||
- run: poetry install | ||
# We cannot use `poetry add` because poetry does not install beets | ||
# dependencies properly | ||
- run: poetry run pip install "git+https://github.com/beetbox/beets#master" | ||
- run: poetry run pytest |
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,28 +1,34 @@ | ||
Developer Guide | ||
=============== | ||
# Developer Guide | ||
|
||
Releasing | ||
--------- | ||
This project uses [Poetry][] for packaging and dependency management. | ||
|
||
We’re using the following tools to ensure consistency and quality | ||
|
||
- [black](https://github.com/psf/black) | ||
- [isort](https://github.com/PyCQA/isort) | ||
- [flake8](https://github.com/PyCQA/flake8) | ||
- [pytest](https://docs.pytest.org/) | ||
|
||
[poetry]: https://python-poetry.org/ | ||
|
||
## Releasing | ||
|
||
To release a new version of this project follow these steps: | ||
|
||
1. Replace the “Upcoming” heading of the changelog with the new version number | ||
and date of release. | ||
2. Update the version in `setup.py` | ||
2. Update the version in `pyproject.toml` | ||
3. Commit the changes with the commit message “Release vX.Y.Z” to `master`. | ||
4. Tag the master branch with a signed and annotated tag: `git tag -as vX.Y.Z`. | ||
Use the version and date as the tag title and the changelog entry as the tag body. E.g. | ||
|
||
``` | ||
v0.10.0 - 2019-08-25 | ||
* Symlink views now support relative symlinks (@daviddavo) | ||
``` | ||
|
||
5. Push the master branch and tag with `git push --tags` | ||
6. Create a release on Github using the version as the title and the changelog | ||
entries as the description. | ||
7. Upload the new version to PyPI with the following commands | ||
``` | ||
rm dist | ||
python3 setup.py sdist | ||
twine upload dist/* | ||
``` | ||
7. Publish the new version to PyPI with `poetry publish`. |
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,2 +1,3 @@ | ||
from pkgutil import extend_path | ||
|
||
__path__ = extend_path(__path__, __name__) |
Oops, something went wrong.