Skip to content

Commit

Permalink
Fix installation failing due to missing testcases files
Browse files Browse the repository at this point in the history
- Fixes #43
- Issuing a new version, updating setup.py fields
- Removing PKG-INFO, shouldn't be there.
  • Loading branch information
asolino committed Mar 31, 2018
1 parent 3d61d99 commit 20d6bf9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
10 changes: 0 additions & 10 deletions PKG-INFO

This file was deleted.

15 changes: 10 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import sys
import os
import glob
from setuptools import setup, Extension

PACKAGE_NAME = 'pcapy'
Expand Down Expand Up @@ -65,14 +66,19 @@ def my_init_posix():
sysconfig._init_posix = my_init_posix


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(name=PACKAGE_NAME,
version="0.11.2",
version="0.11.3",
url="https://github.com/CoreSecurity/pcapy",
author="CORE Security",
author_email="oss@coresecurity.com",
maintainer="CORE Security",
maintainer_email="oss@coresecurity.com",
platforms=["Unix", "Windows"],
description="Python pcap extension",
long_description=read('README'),
license="Apache modified",
ext_modules=[Extension(
name=PACKAGE_NAME,
Expand All @@ -81,9 +87,8 @@ def my_init_posix():
include_dirs=include_dirs,
library_dirs=library_dirs,
libraries=libraries)],
# scripts=['tests/pcapytests.py', 'tests/96pings.pcap'],
#scripts=['tests/pcapytests.py', 'tests/96pings.pcap'],
data_files=[
(os.path.join('share', 'doc', PACKAGE_NAME),
['README', 'LICENSE', 'pcapy.html']),
(os.path.join('share', 'doc', PACKAGE_NAME, 'tests'), ['tests/pcapytests.py', 'tests/96pings.pcap'])]
(os.path.join('share', 'doc', PACKAGE_NAME), ['README', 'LICENSE', 'pcapy.html']),
(os.path.join('share', 'doc', PACKAGE_NAME, 'tests'), glob.glob('tests/*'))]
)

0 comments on commit 20d6bf9

Please sign in to comment.