Merge pull request #1573 from pypa/ppa

PPA
This commit is contained in:
2018-03-06 19:33:25 -05:00
committed by GitHub
5 changed files with 45 additions and 23 deletions
-21
View File
@@ -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
+1
View File
@@ -10,6 +10,7 @@ pytest-xdist = "*"
click = "*"
"bf8d106" = {path = "./tests/pytest-pypi", editable = true}
pytest-tap = "*"
stdeb = "*"
[packages]
Generated
+7 -1
View File
@@ -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",
+1 -1
View File
@@ -4,4 +4,4 @@
# //___/ / / / //___/ / // // / / || / /
# // / / // ((____ // / / ||/ /
__version__ = '11.0.2'
__version__ = '11.0.6'
+36
View File
@@ -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
},
)