-
-
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.
Merge pull request #2 from nschloe/modernize
Modernize
- Loading branch information
Showing
10 changed files
with
119 additions
and
97 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,35 @@ | ||
version: 2 | ||
|
||
jobs: | ||
lint: | ||
docker: | ||
- image: ubuntu:18.04 | ||
steps: | ||
- checkout | ||
- run: apt update | ||
- run: apt install -y python3-pip | ||
- run: pip3 install -U black flake8 | ||
- run: LC_ALL=C.UTF-8 black --check setup.py vandermonde/ test/*.py | ||
- run: flake8 setup.py vandermonde/ test/*.py | ||
build: | ||
working_directory: ~/work | ||
docker: | ||
- image: ubuntu:18.04 | ||
steps: | ||
- run: apt-get update | ||
- run: apt-get install -y git python3-pip | ||
- run: pip3 install -U pytest pytest-cov | ||
- checkout | ||
# The actual test | ||
- run: pip3 install . | ||
- run: cd test/ && pytest --cov vandermonde | ||
# submit to codecov | ||
- run: apt-get install -y curl | ||
- run: bash <(curl -s https://codecov.io/bash) | ||
|
||
workflows: | ||
version: 2 | ||
lint_and_build: | ||
jobs: | ||
- lint | ||
- build |
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 @@ | ||
[flake8] | ||
ignore = E203, E266, E501, W503 | ||
max-line-length = 80 | ||
max-complexity = 18 | ||
select = B,C,E,F,W,T4,B9 |
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,30 +1,30 @@ | ||
VERSION=$(shell python -c "import vandermonde; print(vandermonde.__version__)") | ||
|
||
# Make sure we're on the master branch | ||
ifneq "$(shell git rev-parse --abbrev-ref HEAD)" "master" | ||
$(error Not on master branch) | ||
endif | ||
|
||
default: | ||
@echo "\"make publish\"?" | ||
|
||
README.rst: README.md | ||
pandoc README.md -o README.rst | ||
python setup.py check -r -s || exit 1 | ||
|
||
# https://packaging.python.org/distributing/#id72 | ||
upload: setup.py README.rst | ||
rm -f dist/* | ||
python setup.py bdist_wheel --universal | ||
gpg --detach-sign -a dist/* | ||
twine upload dist/* | ||
|
||
tag: | ||
@if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then exit 1; fi | ||
@echo "Tagging v$(VERSION)..." | ||
git tag v$(VERSION) | ||
git push --tags | ||
|
||
upload: setup.py | ||
@if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then exit 1; fi | ||
rm -f dist/* | ||
python3 setup.py sdist | ||
python3 setup.py bdist_wheel --universal | ||
twine upload dist/* | ||
|
||
publish: tag upload | ||
|
||
clean: | ||
rm -f README.rst | ||
@find . | grep -E "(__pycache__|\.pyc|\.pyo$\)" | xargs rm -rf | ||
@rm -rf *.egg-info/ build/ dist/ | ||
|
||
black: | ||
black setup.py vandermonde/ test/*.py | ||
|
||
lint: | ||
black --check setup.py vandermonde/ test/*.py | ||
flake8 setup.py vandermonde/ test/*.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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
|
||
__version__ = '0.1.1' | ||
__author__ = u'Nico Schlömer' | ||
__author_email__ = 'nico.schloemer@gmail.com' | ||
__status__ = 'Development Status :: 4 - Beta' | ||
__license__ = 'License :: OSI Approved :: MIT License' | ||
__version__ = "0.1.2" | ||
__author__ = u"Nico Schlömer" | ||
__author_email__ = "nico.schloemer@gmail.com" | ||
__copyright__ = u"Copyright (c) 2017,2019 {} <{}>".format(__author__, __author_email__) | ||
__website__ = "https://github.com/nschloe/vandermonde" | ||
__license__ = "License :: OSI Approved :: MIT License" | ||
__status__ = "Development Status :: 4 - Beta" |
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