Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
44 lines (39 loc) · 1.68 KB
/
Copy pathsetup.py
File metadata and controls
44 lines (39 loc) · 1.68 KB
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
41
42
43
44
#!/usr/bin/env python3
importos
fromsetuptoolsimportsetup
fromsetuptools.command.build_pyimportbuild_py
fromcinp.clientimport__CLIENT_VERSION__
classbuild( build_py ):
defbuild_packages( self ):
# get all the .py files, unless they end in _test.py
# we don't need testing files in our published product
forpackageinself.packages:
package_dir=self.get_package_dir( package )
modules=self.find_package_modules( package, package_dir )
for ( package2, module, module_file ) inmodules:
assertpackage==package2
ifos.path.basename( module_file ).endswith( '_test.py' ) oros.path.basename( module_file ) =='tests.py':
continue
self.build_module( module, module_file, package )
setup( name='cinp',
version=__CLIENT_VERSION__,
description='CInP, Concise Interaction Protocol',
long_description="""A HTTP/JSON Protocol that brings some of the
flexability of REST, but extends beyond CRUD to support Metod Calling and
fully describing the enpoints and data sctuctures. As well as enabeling
the Business Logic and permissions to be fully encapsulated on the Server.""",
author='Peter Howe',
author_email='pnhowe@gmail.com',
url='https://github.com/cinp/python',
python_requires='~=3.8',
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.8'
],
packages=[ 'cinp' ],
cmdclass={ 'build_py': build }
)