-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
39 lines (33 loc) · 1.04 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
import subprocess
import setuptools
from setuptools.command.install import install
class CustomInstallCommand(install):
def run(self):
subprocess.check_call(['chmod', '+x', 'compile_protos.sh'])
subprocess.check_call(['./compile_protos.sh'])
install.run(self)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="pslx",
version="2.3",
scripts=['compile_protos.sh'],
cmdclass={
'install': CustomInstallCommand,
},
author="Francis Chen",
author_email="[email protected]",
description="Python Standard Library eXtension",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/kfrancischen/pslx",
packages=setuptools.find_packages(),
include_package_data=True,
zip_safe=False,
classifiers=[
"Programming Language :: Python :: 3",
"License :: GNU GENERAL PUBLIC LICENSE",
"Operating System :: OS Independent",
],
python_requires='>=3.7',
)