-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removes Python 2 support - Packaging updates - Updated Makefile - Determine version automatically - Adds .editorconfig
- Loading branch information
Showing
4 changed files
with
49 additions
and
16 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,23 @@ | ||
# http://editorconfig.org | ||
# Properties: https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
end_of_line = lf | ||
|
||
# Docstrings and comments use max_line_length = 79 | ||
[*.py] | ||
max_line_length = 119 | ||
indent_size = 4 | ||
|
||
[**.txt] | ||
max_line_length = 79 | ||
|
||
[Makefile] | ||
indent_style = tab |
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,27 +1,36 @@ | ||
VERSION := $(shell grep __version__ htk/__version__.py | awk '{ print $$3 }' | tr -d "'") | ||
|
||
## help - Display help about make targets for this Makefile | ||
help: | ||
@cat Makefile | grep '^## ' --color=never | cut -c4- | sed -e "`printf 's/ - /\t- /;'`" | column -s "`printf '\t'`" -t | ||
|
||
## clean - cleans build artifacts | ||
## isort - isort Python files | ||
isort: | ||
isort -rc * | ||
|
||
## clean - Cleans build artifacts | ||
clean: | ||
rm -rf dist/* | ||
rm -rf build/* | ||
|
||
## package - builds a package for dist | ||
## version - Shows current version of package | ||
version: | ||
echo $(VERSION) | ||
|
||
## package - Builds a package for dist | ||
package: | ||
python setup.py sdist bdist_wheel | ||
|
||
## repackage - alias of 'make clean package' | ||
## repackage - Alias of 'make clean package' | ||
repackage: clean package | ||
|
||
## install - install a built dist | ||
## install - Install a built dist | ||
install: | ||
sh -c "pip install -U dist/htk-`cat VERSION`.tar.gz" | ||
sh -c "pip install -U dist/htk-$(VERSION).tar.gz" | ||
|
||
## upload - uploads a package to PyPI | ||
## upload - Uploads a package to PyPI | ||
upload: | ||
sh -c "twine upload dist/htk-`cat VERSION`-py2.py3-none-any.whl" | ||
sh -c "twine upload dist/htk-$(VERSION)-py2.py3-none-any.whl" | ||
|
||
## isort - isort Python files | ||
isort: | ||
isort -rc * | ||
## publish - Clean, package, and publish to PyPI | ||
publish: repackage upload |
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