Changes by Sonald Stufft to build pypi distros. Yay!
This commit is contained in:
@@ -10,3 +10,5 @@ venv$
|
|||||||
distribute_setup.py$
|
distribute_setup.py$
|
||||||
distribute-\d+.\d+.\d+.tar.gz$
|
distribute-\d+.\d+.\d+.tar.gz$
|
||||||
build$
|
build$
|
||||||
|
dist$
|
||||||
|
.*\.egg-info$
|
||||||
|
|||||||
7
MANIFEST.in
Normal file
7
MANIFEST.in
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
include Makefile
|
||||||
|
include *.c *.py
|
||||||
|
|
||||||
|
recursive-include examples *.py
|
||||||
|
recursive-include tests *.crt
|
||||||
|
recursive-include tests *.key
|
||||||
|
recursive-include tests *.py
|
||||||
7
Makefile
7
Makefile
@@ -30,5 +30,12 @@ clean:
|
|||||||
rm -f `find . -type f -name '#*#' `
|
rm -f `find . -type f -name '#*#' `
|
||||||
rm -f `find . -type f -name '*.orig' `
|
rm -f `find . -type f -name '*.orig' `
|
||||||
rm -f `find . -type f -name '*.rej' `
|
rm -f `find . -type f -name '*.rej' `
|
||||||
|
rm -rf dist
|
||||||
rm -f .coverage
|
rm -f .coverage
|
||||||
rm -rf htmlcov
|
rm -rf htmlcov
|
||||||
|
rm -f MANIFEST
|
||||||
|
|
||||||
|
|
||||||
|
# Make distributions for Python 3.3
|
||||||
|
pypi: clean
|
||||||
|
python3.3 setup.py sdist upload
|
||||||
|
|||||||
30
setup.py
30
setup.py
@@ -1,14 +1,28 @@
|
|||||||
import os
|
import os
|
||||||
from distutils.core import setup, Extension
|
from setuptools import setup, Extension
|
||||||
|
|
||||||
extensions = []
|
extensions = []
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
ext = Extension('_overlapped', ['overlapped.c'], libraries=['ws2_32'])
|
ext = Extension(
|
||||||
|
'asyncio._overlapped', ['overlapped.c'], libraries=['ws2_32'],
|
||||||
|
)
|
||||||
extensions.append(ext)
|
extensions.append(ext)
|
||||||
|
|
||||||
setup(name='asyncio',
|
setup(
|
||||||
description="reference implementation of PEP 3156",
|
name="asyncio",
|
||||||
url='http://www.python.org/dev/peps/pep-3156/',
|
version="0.1.1",
|
||||||
packages=['asyncio'],
|
|
||||||
ext_modules=extensions
|
description="reference implementation of PEP 3156",
|
||||||
)
|
long_description=open("README").read(),
|
||||||
|
url="http://www.python.org/dev/peps/pep-3156/",
|
||||||
|
|
||||||
|
classifiers=[
|
||||||
|
"Programming Language :: Python",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.3",
|
||||||
|
],
|
||||||
|
|
||||||
|
packages=["asyncio"],
|
||||||
|
|
||||||
|
ext_modules=extensions,
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user