Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit 13d7f67

Browse files
committed
Changes by Sonald Stufft to build pypi distros. Yay!
1 parent 6ea686a commit 13d7f67

File tree

6 files changed

+39
-10
lines changed

6 files changed

+39
-10
lines changed

.hgignore

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ venv$
1010
distribute_setup.py$
1111
distribute-\d+.\d+.\d+.tar.gz$
1212
build$
13+
dist$
14+
.*\.egg-info$

MANIFEST.in

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include Makefile
2+
include *.c *.py
3+
4+
recursive-include examples *.py
5+
recursive-include tests *.crt
6+
recursive-include tests *.key
7+
recursive-include tests *.py

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@ clean:
3030
rm -f `find . -type f -name '#*#' `
3131
rm -f `find . -type f -name '*.orig' `
3232
rm -f `find . -type f -name '*.rej' `
33+
rm -rf dist
3334
rm -f .coverage
3435
rm -rf htmlcov
36+
rm -f MANIFEST
37+
38+
39+
# Make distributions for Python 3.3
40+
pypi: clean
41+
python3.3 setup.py sdist upload

pypi.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
c:\Python33\python.exe setup.py bdist_wheel upload

setup.cfg

-2
This file was deleted.

setup.py

+22-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
11
import os
2-
from distutils.core import setup, Extension
2+
from setuptools import setup, Extension
33

44
extensions = []
55
if os.name == 'nt':
6-
ext = Extension('_overlapped', ['overlapped.c'], libraries=['ws2_32'])
6+
ext = Extension(
7+
'asyncio._overlapped', ['overlapped.c'], libraries=['ws2_32'],
8+
)
79
extensions.append(ext)
810

9-
setup(name='asyncio',
10-
description="reference implementation of PEP 3156",
11-
url='http://www.python.org/dev/peps/pep-3156/',
12-
packages=['asyncio'],
13-
ext_modules=extensions
14-
)
11+
setup(
12+
name="asyncio",
13+
version="0.1.1",
14+
15+
description="reference implementation of PEP 3156",
16+
long_description=open("README").read(),
17+
url="http://www.python.org/dev/peps/pep-3156/",
18+
19+
classifiers=[
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.3",
23+
],
24+
25+
packages=["asyncio"],
26+
27+
ext_modules=extensions,
28+
)

0 commit comments

Comments
 (0)