Skip to content

Commit

Permalink
Add setup.py to enable PyPI releases
Browse files Browse the repository at this point in the history
Merges: #21
  • Loading branch information
encukou committed Jan 22, 2018
2 parents bfdb24d + 9a4481c commit 59cd917
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
/test/build/
__pycache__/
/py3c.pc
.eggs
dist
*.egg-info
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal=1
26 changes: 26 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import os
import glob

from setuptools import setup


def find_headers():
path = os.path.join(os.path.dirname(__file__), 'include')
for root, dirs, files in os.walk(path):
for filename in files:
if filename.endswith('.h'):
yield os.path.join(root, filename)

with open('README.rst') as f:
long_description = f.read()

setup(
name='py3c',
version='1.0a1',
description='Python compatibility headers',
long_description=long_description,
author='Petr Viktorin',
author_email='encukou@gmail.com',
url='http://py3c.readthedocs.io/',
headers=list(find_headers()),
platforms='any')

0 comments on commit 59cd917

Please sign in to comment.