diff --git a/Makefile b/Makefile index b910a6c8..ba0a2ddb 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ test: lint-python test-python safetest: export SKIP_TRUE_REDIS=1; export SKIP_TRUE_HTTP=1; make test -publish: install-test-requirements +publish: python setup.py sdist twine upload dist/mocket-$(shell python -c 'import mocket; print(mocket.__version__)')*.* anaconda upload dist/mocket-$(shell python -c 'import mocket; print(mocket.__version__)').tar.gz diff --git a/Pipfile b/Pipfile index 1fa0a693..d2961052 100644 --- a/Pipfile +++ b/Pipfile @@ -4,11 +4,7 @@ verify_ssl = true name = "pypi" [packages] -python-magic = "*" -six = "*" -decorator = "*" -urllib3 = "*" -http-parser = "*" +mocket = {editable = true, path = "."} [dev-packages] pre-commit = "*" diff --git a/setup.py b/setup.py index b794e1b5..316f6d76 100644 --- a/setup.py +++ b/setup.py @@ -8,13 +8,13 @@ major, minor = sys.version_info[:2] -install_requires = [ - line - for line in io.open( - os.path.join(os.path.dirname(__file__), "requirements.txt") - ).readlines() - if not line.startswith("-i") -] +install_requires = ( + "decorator>=4.4.2", + "http-parser>=0.9.0", + "python-magic>=0.4.18", + "six>=1.15.0", + "urllib3>=1.25.11", +) pook_requires = ("pook>=0.2.1",) exclude_packages = ("tests", "tests.*")