Skip to content

Commit 026ef5d

Browse files
committed
don't encourage people to use makefile to push dist
1 parent 5d3198b commit 026ef5d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"project_short_description": "Example of https://github.com/mckaymatt/cookiecutter-pypackage-rust-cross-platform-publish All the boilerplate for a Python Wheel package with a Rust binary module.",
88
"pypi_username": "{{ cookiecutter.github_username }}",
99
"crate_name": "{{ cookiecutter.project_slug.lower().replace(' ', '_') }}",
10-
"version": "0.8.4",
10+
"version": "0.8.5",
1111
"use_pytest": "y",
1212
"use_pypi_deployment_with_travis": "y",
1313
"command_line_interface": ["Click", "No command-line interface"],

{{cookiecutter.project_slug}}/Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: clean clean-test clean-pyc clean-build clean-venv docs help install dist release test test-all
1+
.PHONY: clean clean-test clean-pyc clean-build clean-venv docs help install dist test test-all
22
.DEFAULT_GOAL := help
33
define BROWSER_PYSCRIPT
44
import os, webbrowser, sys
@@ -58,6 +58,7 @@ lint: venv ## check style with flake8
5858
venv/bin/python -m flake8 {{ cookiecutter.project_slug }} tests
5959

6060
test: venv ## This will use py.test because of pytest-runner
61+
venv/bin/python setup.py build_ext
6162
venv/bin/python setup.py check
6263
venv/bin/python setup.py test
6364

@@ -90,16 +91,14 @@ docs: venv ## generate Sphinx HTML documentation, including API docs
9091
servedocs: venv docs ## compile the docs watching for changes
9192
venv/bin/python -m watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D .
9293

93-
release: venv clean ## package and upload a release
94-
venv/bin/python setup.py sdist upload
95-
venv/bin/python setup.py bdist_wheel upload
96-
9794
dist: venv clean ## builds source and wheel package
9895
venv/bin/python setup.py sdist
96+
venv/bin/python setup.py build_ext
9997
venv/bin/python setup.py bdist_wheel
10098
ls -l dist
10199

102100
install: venv clean ## install the package to the active Python's site-packages
101+
venv/bin/python setup.py build_ext
103102
venv/bin/python setup.py install
104103

105104

0 commit comments

Comments
 (0)