From 193c5092b130a2e961e476982dc2d2d9c95623d2 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 8 Dec 2017 20:13:06 -0500 Subject: Build and upload wheels for releases. Update install docs. --- docs/install.md | 63 ++++++++++----------------------------------------------- makefile | 6 ++++-- setup.cfg | 6 ++++++ setup.py | 2 +- 4 files changed, 22 insertions(+), 55 deletions(-) diff --git a/docs/install.md b/docs/install.md index d799797..25530d6 100644 --- a/docs/install.md +++ b/docs/install.md @@ -1,64 +1,25 @@ -title: Installation +title: Installation -Installing Python-Markdown -========================== +# Installing Python-Markdown -The Easy Way ------------- +## The Easy Way -The easiest way to install Python-Markdown is simply to type one of the -following commands from the command line as an Admin/Root user: +The easiest way to install Python-Markdown is simply to type the +following command from the command line: ```bash pip install markdown ``` -or - -```bash -easy_install markdown -``` - That's it! You're ready to [use](reference.md) Python-Markdown. Enjoy! -Installing on Windows {: #windows } ------------------------------------ - -Download the Windows installer (`.exe`) from -[PyPI](http://pypi.python.org/pypi/Markdown) - -Double-click the file and follow the instructions. - -If you prefer to manually install Python-Markdown in Windows, download the -Zip file, unzip it, and on the command line in the directory you unzipped to, -run the following command: - -```text -C://path/to/python.exe setup.py install -``` - -If you plan to use the provided command line script, you need to make sure your -script directory is on your system path. On a typical Python install of Windows -the Scripts directory is `C:\PythonXX\Scripts\` (were "XX" is the Python version -number, i.e., "27"). Adjust the path according to your system and add to your -system path. - -Installing on \*nix Systems {: #linux } ---------------------------------------- - -From the command line do the following (where 2.x is the version number): - -```bash -wget http://pypi.python.org/packages/source/M/Markdown/Markdown-2.x.tar.gz -tar xvzf Markdown-2.x.tar.gz -cd markdown-2.x/ -sudo python setup.py install -``` +For more detailed instructions on installing Python packages, see the +[Installing Packages] tutorial in the [Python Packaging User Guide]. -See [PyPI](http://pypi.python.org/pypi/Markdown) for all available versions. +[Installing Packages]: https://packaging.python.org/tutorials/installing-packages/ +[Python Packaging User Guide]: https://packaging.python.org/ -Using the Git Repository {: #git } ----------------------------------- +## Using the Git Repository {: #git } If you're the type that likes to live on the edge, you may want to keep up with the latest additions and bug fixes in the repository between releases. @@ -67,7 +28,5 @@ get a copy of Python-Markdown from the repository do the following from the command line: ```bash -git clone git://github.com/Python-Markdown/markdown.git python-markdown -cd python-markdown -python setup.py install +pip install git+https://github.com/Python-Markdown/markdown.git ``` diff --git a/makefile b/makefile index ef1349e..8cfd0ea 100644 --- a/makefile +++ b/makefile @@ -20,11 +20,13 @@ install: .PHONY : deploy deploy: - python setup.py sdist --formats gztar upload + rm -rf dist + python setup.py bdist_wheel sdist --formats gztar + twine upload dist/* .PHONY : build build: - python setup.py sdist --formats gztar + python setup.py bdist_wheel sdist --formats gztar .PHONY : build-win build-win: diff --git a/setup.cfg b/setup.cfg index b0695bb..81482a9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1 +1,7 @@ [nosetests] + +[bdist_wheel] +universal=1 + +[metadata] +license_file = LICENSE.md diff --git a/setup.py b/setup.py index a356d8d..668696a 100755 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ setup( name='Markdown', version=version, url='https://Python-Markdown.github.io/', - download_url='http://pypi.python.org/packages/source/M/Markdown/Markdown-%s.tar.gz' % version, + download_url='http://pypi.python.org/packages/source/M/Markdown/Markdown-%s-py2.py3-none-any.whl' % version, description='Python implementation of Markdown.', long_description=long_description, author='Manfred Stienstra, Yuri takhteyev and Waylan limberg', -- cgit v1.2.3