-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (26 loc) · 1021 Bytes
/
Copy pathsetup.py
File metadata and controls
30 lines (26 loc) · 1021 Bytes
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
from distutils.core import setup
import shutil
import distutils.command.install_scripts
class StripDot(distutils.command.install_scripts.install_scripts):
def run(self):
distutils.command.install_scripts.install_scripts.run(self)
out_files = self.get_outputs()
for i, script in enumerate(out_files):
if script.endswith(".py"):
newname = script[:-3]
shutil.move(script, newname)
out_files[i] = newname
if __name__ == '__main__':
setup(
name='json-filter',
version='0.3.2',
url='https://github.com/dstarod/json-filter',
description='JSON filter with MongoDB shell syntax',
author='dstarod',
author_email='dmitry.starodubcev@gmail.com',
scripts=['bin/jf.py'],
cmdclass={"install_scripts": StripDot},
classifiers=['Topic :: Utilities'],
keywords=['json', 'mongodb'],
download_url='https://github.com/dstarod/json-filter/tarball/0.3.2'
)