Skip to content

Commit 193c509

Browse files
committed
Build and upload wheels for releases.
Update install docs.
1 parent 52b8da8 commit 193c509

File tree

4 files changed

+22
-55
lines changed

4 files changed

+22
-55
lines changed

docs/install.md

Lines changed: 11 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,25 @@
1-
title: Installation
1+
title: Installation
22

3-
Installing Python-Markdown
4-
==========================
3+
# Installing Python-Markdown
54

6-
The Easy Way
7-
------------
5+
## The Easy Way
86

9-
The easiest way to install Python-Markdown is simply to type one of the
10-
following commands from the command line as an Admin/Root user:
7+
The easiest way to install Python-Markdown is simply to type the
8+
following command from the command line:
119

1210
```bash
1311
pip install markdown
1412
```
1513

16-
or
17-
18-
```bash
19-
easy_install markdown
20-
```
21-
2214
That's it! You're ready to [use](reference.md) Python-Markdown. Enjoy!
2315

24-
Installing on Windows {: #windows }
25-
-----------------------------------
26-
27-
Download the Windows installer (`.exe`) from
28-
[PyPI](http://pypi.python.org/pypi/Markdown)
29-
30-
Double-click the file and follow the instructions.
31-
32-
If you prefer to manually install Python-Markdown in Windows, download the
33-
Zip file, unzip it, and on the command line in the directory you unzipped to,
34-
run the following command:
35-
36-
```text
37-
C://path/to/python.exe setup.py install
38-
```
39-
40-
If you plan to use the provided command line script, you need to make sure your
41-
script directory is on your system path. On a typical Python install of Windows
42-
the Scripts directory is `C:\PythonXX\Scripts\` (were "XX" is the Python version
43-
number, i.e., "27"). Adjust the path according to your system and add to your
44-
system path.
45-
46-
Installing on \*nix Systems {: #linux }
47-
---------------------------------------
48-
49-
From the command line do the following (where 2.x is the version number):
50-
51-
```bash
52-
wget http://pypi.python.org/packages/source/M/Markdown/Markdown-2.x.tar.gz
53-
tar xvzf Markdown-2.x.tar.gz
54-
cd markdown-2.x/
55-
sudo python setup.py install
56-
```
16+
For more detailed instructions on installing Python packages, see the
17+
[Installing Packages] tutorial in the [Python Packaging User Guide].
5718

58-
See [PyPI](http://pypi.python.org/pypi/Markdown) for all available versions.
19+
[Installing Packages]: https://packaging.python.org/tutorials/installing-packages/
20+
[Python Packaging User Guide]: https://packaging.python.org/
5921

60-
Using the Git Repository {: #git }
61-
----------------------------------
22+
## Using the Git Repository {: #git }
6223

6324
If you're the type that likes to live on the edge, you may want to keep up with
6425
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
6728
command line:
6829

6930
```bash
70-
git clone git://github.com/Python-Markdown/markdown.git python-markdown
71-
cd python-markdown
72-
python setup.py install
31+
pip install git+https://github.com/Python-Markdown/markdown.git
7332
```

makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ install:
2020

2121
.PHONY : deploy
2222
deploy:
23-
python setup.py sdist --formats gztar upload
23+
rm -rf dist
24+
python setup.py bdist_wheel sdist --formats gztar
25+
twine upload dist/*
2426

2527
.PHONY : build
2628
build:
27-
python setup.py sdist --formats gztar
29+
python setup.py bdist_wheel sdist --formats gztar
2830

2931
.PHONY : build-win
3032
build-win:

setup.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
[nosetests]
2+
3+
[bdist_wheel]
4+
universal=1
5+
6+
[metadata]
7+
license_file = LICENSE.md

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def get_version():
5656
name='Markdown',
5757
version=version,
5858
url='https://Python-Markdown.github.io/',
59-
download_url='http://pypi.python.org/packages/source/M/Markdown/Markdown-%s.tar.gz' % version,
59+
download_url='http://pypi.python.org/packages/source/M/Markdown/Markdown-%s-py2.py3-none-any.whl' % version,
6060
description='Python implementation of Markdown.',
6161
long_description=long_description,
6262
author='Manfred Stienstra, Yuri takhteyev and Waylan limberg',

0 commit comments

Comments
 (0)