-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·40 lines (35 loc) · 1.38 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env python3
import os
from distutils.core import setup
from distutils.command.build_py import build_py
class build( build_py ):
def build_packages( self ):
# get all the .py files, unless they end in _test.py
# we don't need testing files in our published product
for package in self.packages:
package_dir = self.get_package_dir( package )
modules = self.find_package_modules( package, package_dir )
for ( package2, module, module_file ) in modules:
assert package == package2
if os.path.basename( module_file ).endswith( '_test.py' ) or os.path.basename( module_file ) == 'tests.py':
continue
self.build_module( module, module_file, package )
setup( name='cinp',
version='0.3.0',
description='CInP, Concise Interaction Protocol Utilities',
long_description='',
author='Peter Howe',
author_email='[email protected]',
url='https://github.com/cinp/utils',
python='~=3.6',
license='Apache2',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6'
],
packages=[ 'cinp_utils' ],
cmdclass={ 'build_py': build }
)