mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
@@ -1,21 +0,0 @@
|
||||
.PHONY: help ## Print this help
|
||||
help:
|
||||
@grep -E '^\.PHONY: [a-zA-Z_-]+ .*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = "(: |##)"}; {printf "\033[36m%-30s\033[0m %s\n", $$2, $$3}'
|
||||
|
||||
.PHONY: run-tests ## Run unit tests
|
||||
run-tests:
|
||||
pipenv run pytest tests
|
||||
|
||||
.PHONY: init ## Initialize pipenv for development
|
||||
init:
|
||||
python setup.py develop
|
||||
pipenv install --dev
|
||||
|
||||
.PHONY: docs ## Generate documentation
|
||||
docs:
|
||||
cd docs && make html
|
||||
|
||||
.PHONY: ## Generate man documentation
|
||||
man:
|
||||
cd docs && make man
|
||||
mv docs/_build/man/pipenv.1 pipenv/pipenv.1
|
||||
@@ -10,6 +10,7 @@ pytest-xdist = "*"
|
||||
click = "*"
|
||||
"bf8d106" = {path = "./tests/pytest-pypi", editable = true}
|
||||
pytest-tap = "*"
|
||||
stdeb = "*"
|
||||
|
||||
|
||||
[packages]
|
||||
|
||||
Generated
+7
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"_meta": {
|
||||
"hash": {
|
||||
"sha256": "cfb1e74fe6195432594c74ea1e97eba0d1561017f861350c2a7653d4aedf8901"
|
||||
"sha256": "d77bda72dcf016b2bf8876f39f41360732ceeff7710232b8df91e4f23b548b1d"
|
||||
},
|
||||
"pipfile-spec": 6,
|
||||
"requires": {},
|
||||
@@ -390,6 +390,12 @@
|
||||
],
|
||||
"version": "==1.0.4"
|
||||
},
|
||||
"stdeb": {
|
||||
"hashes": [
|
||||
"sha256:0ed2c2cc6b8ba21da7d646c6f37ca60b22e9e4950e3cec6bcd9c2e7e57e3747e"
|
||||
],
|
||||
"version": "==0.8.5"
|
||||
},
|
||||
"tap.py": {
|
||||
"hashes": [
|
||||
"sha256:34e067d41988ce6d015c71d67f0b3025917f9a37dbc9b47aba5717a64a72b0f2",
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
# //___/ / / / //___/ / // // / / || / /
|
||||
# // / / // ((____ // / / ||/ /
|
||||
|
||||
__version__ = '11.0.2'
|
||||
__version__ = '11.0.6'
|
||||
|
||||
@@ -30,6 +30,41 @@ if sys.version_info < (2, 7):
|
||||
required.append('requests[security]')
|
||||
required.append('ordereddict')
|
||||
|
||||
# https://pypi.python.org/pypi/stdeb/0.8.5#quickstart-2-just-tell-me-the-fastest-way-to-make-a-deb
|
||||
|
||||
class DebCommand(Command):
|
||||
"""Support for setup.py deb"""
|
||||
|
||||
description = 'Build and publish the .deb package.'
|
||||
user_options = []
|
||||
|
||||
@staticmethod
|
||||
def status(s):
|
||||
"""Prints things in bold."""
|
||||
print('\033[1m{0}\033[0m'.format(s))
|
||||
|
||||
def initialize_options(self):
|
||||
pass
|
||||
|
||||
def finalize_options(self):
|
||||
pass
|
||||
|
||||
def run(self):
|
||||
try:
|
||||
self.status('Removing previous builds…')
|
||||
rmtree(os.path.join(here, 'deb_dist'))
|
||||
|
||||
# Remove concurrent27, at it causes issues with compilation.
|
||||
rmtree(os.path.join(here, 'pipenv', 'vendor', 'concurrent27'))
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
self.status(u'Creating debian mainfest…')
|
||||
os.system('python setup.py --command-packages=stdeb.command sdist_dsc -z artful --package pipenv --depends3=python3-pew')
|
||||
|
||||
self.status(u'Building .deb…')
|
||||
os.chdir('deb_dist/pipenv-{0}'.format(about['__version__']))
|
||||
os.system('dpkg-buildpackage -rfakeroot -uc -us')
|
||||
|
||||
|
||||
class UploadCommand(Command):
|
||||
"""Support setup.py publish."""
|
||||
@@ -97,5 +132,6 @@ setup(
|
||||
],
|
||||
cmdclass={
|
||||
'upload': UploadCommand,
|
||||
'deb': DebCommand
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user