This repository has been archived by the owner on Dec 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
NyanKiyoshi
committed
Sep 16, 2018
1 parent
4f243be
commit 42d01a8
Showing
10 changed files
with
235 additions
and
56 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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 NyanKiyoshi | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,105 @@ | ||
.PHONY: build | ||
|
||
MODULE:=texrrow | ||
|
||
all: ensure-pip dev style checks dists test | ||
|
||
ensure-pip: | ||
pip install --user --upgrade pipenv pip | ||
pip --version | ||
pipenv --version | ||
|
||
ensure-pip-ci: | ||
pip install --upgrade pipenv pip | ||
pip --version | ||
pipenv --version | ||
|
||
dev: | ||
pipenv install --dev | ||
pipenv run pip install -e . | ||
|
||
dev-ci: | ||
pipenv install --dev --skip-lock | ||
pipenv run pip install -e . | ||
|
||
dev-py2: | ||
pipenv install --dev --two | ||
pipenv run pip install -e . | ||
|
||
style: isort autopep8 yapf | ||
|
||
isort: | ||
pipenv run isort -y | ||
|
||
autopep8: | ||
pipenv run autopep8 --in-place --recursive setup.py $(MODULE) | ||
|
||
yapf: | ||
pipenv run yapf --style .yapf --recursive -i $(MODULE) | ||
|
||
checks: flake8 pylint | ||
|
||
flake8: | ||
pipenv run python setup.py flake8 | ||
|
||
pylint: | ||
pipenv run pylint --rcfile=.pylintrc --output-format=colorized $(MODULE) | ||
|
||
sc: style checks | ||
sct: style checks test | ||
|
||
build: dists | ||
|
||
test: | ||
pipenv run pytest $(MODULE) | ||
|
||
test-verbose: | ||
pipenv run pytest -s $(MODULE) | ||
|
||
test-coverage: | ||
pipenv run py.test -v --cov $(MODULE) --cov-report term-missing | ||
|
||
dists: requirements sdist bdist wheels | ||
|
||
requirements: | ||
pipenv run pipenv_to_requirements -f | ||
|
||
release: requirements | ||
|
||
sdist: requirements | ||
pipenv run python setup.py sdist | ||
|
||
bdist: requirements | ||
pipenv run python setup.py bdist | ||
|
||
wheels: requirements | ||
pipenv run python setup.py bdist_wheel | ||
|
||
pypi-publish: build release | ||
pipenv run twine upload --repository pypi dist/*.whl | ||
|
||
pypi-test-publish: build release | ||
pipenv run twine upload --repository testpypi dist/*.whl | ||
|
||
update: | ||
pipenv update | ||
|
||
githook: style | ||
|
||
push: githook | ||
@git push origin --tags | ||
|
||
clean: | ||
pipenv --rm | ||
|
||
prepare-release: requirements | ||
|
||
# aliases to gracefully handle typos on poor dev's terminal | ||
check: checks | ||
devel: dev | ||
develop: dev | ||
dist: dists | ||
install: install-system | ||
pypi: pypi-publish | ||
styles: style | ||
wheel: wheels |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
|
@@ -10,30 +10,39 @@ | |
long_description = '' | ||
|
||
|
||
requirements = [] | ||
if isfile('requirements.txt'): | ||
with open('requirements.txt') as fp: | ||
requirements = fp.readlines() | ||
|
||
|
||
setup( | ||
name='texarrow', | ||
name='texrrow', | ||
version='0.0.0', | ||
author='NyanKiyoshi', | ||
author_email='[email protected]', | ||
description=( | ||
'A simple python web-server to remotely control a LaTeX presentation ' | ||
'from a mobile phone to give dynamic and powerful speeches.'), | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/NyanKiyoshi/texrrow/', | ||
license='MIT', | ||
maintainer='NyanKiyoshi', | ||
entry_points={ | ||
'console_scripts': [ | ||
'texrrow=texrrow.__main__:main']}, | ||
packages=find_packages(exclude=['tests']), | ||
include_package_data=True, | ||
data_files=[ | ||
('', ['README.md', 'LICENSE'])], | ||
('', ['README.md', 'LICENSE', 'requirements.txt'])], | ||
keywords=[], | ||
extras_require={ | ||
'mysql': ['flask-mysqldb']}, | ||
install_requires=requirements, | ||
classifiers=[ | ||
'Development Status :: 1 - Planning', | ||
'License :: OSI Approved :: MIT License', | ||
'Natural Language :: English', | ||
'Operating System :: POSIX :: Linux' | ||
'Operating System :: POSIX :: Linux', | ||
'Operating System :: POSIX :: BSD', | ||
'Operating System :: POSIX :: BSD :: BSD/OS', | ||
'Operating System :: POSIX :: BSD :: FreeBSD', | ||
|
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 @@ | ||
def main(): | ||
from .application import create_app | ||
create_app().run() |
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