Skip to content

Commit

Permalink
build: use pipenv-setup to sync
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Mar 30, 2021
1 parent fb1b58e commit 955aa49
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 23 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ coverage:
pipenv run pytest -s --verbose --cov-report term-missing --cov-report xml --cov=teslajsonpy tests -Wi -Wd:::teslajsonpy
clean:
rm -rf dist/ build/ .egg teslajsonpy.egg-info/
sync_deps:
pipenv-setup sync --pipfile
init:
pip3 install --upgrade pip pipenv
pipenv lock
pipenv install --three --dev
lint: flake8 docstyle pylint
lint: flake8 docstyle pylint sync_deps
flake8:
pipenv run flake8 teslajsonpy
docstyle:
pipenv run pydocstyle teslajsonpy
pylint:
pipenv run pylint teslajsonpy
publish:
publish: sync_deps
pipenv run python setup.py sdist bdist_wheel
pipenv run twine upload dist/*
rm -rf dist/ build/ .egg teslajsonpy.egg-info/
Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ m2r2 = "*"
sphinx-autoapi = "*"
sphinx-copybutton = "*"
bandit = "*"
pipenv-setup = "*"

[packages]
aiohttp = "*"
Expand Down
124 changes: 112 additions & 12 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@
LICENSE = "Apache-2.0"
VERSION = None

# What packages are required for this module to be executed?
REQUIRED = ["aiohttp", "authcaptureproxy>=0.7.1,<1.0.0", "backoff", "beautifulsoup4", "wrapt"]

# What packages are optional?
EXTRAS = {
# "fancy feature": ["django"],
}

# The rest you shouldn"t have to touch too much :)
# ------------------------------------------------
Expand Down Expand Up @@ -116,8 +109,17 @@ def run(self):
# entry_points={
# "console_scripts": ["mycli=mymodule:cli"],
# },
install_requires=REQUIRED,
extras_require=EXTRAS,
# What packages are required for this module to be executed?
install_requires=[
"aiohttp",
"backoff",
"beautifulsoup4",
"wrapt",
"authcaptureproxy~=0.7.1",
],
# What packages are optional?
extras_require={},
dependency_links=[],
include_package_data=True,
license=LICENSE,
classifiers=[
Expand Down

0 comments on commit 955aa49

Please sign in to comment.