-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
43 lines (37 loc) · 1.35 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
41
42
43
from setuptools import setup, find_packages
import program_slicing
import os
from setuptools.command.build_py import build_py
from shutil import copytree
HERE = os.path.abspath(os.path.dirname(__file__))
NAME = "vendor"
class BuildCommand(build_py):
def run(self) -> None:
build_py.run(self)
if not self.dry_run:
target_dir = os.path.join(self.build_lib, NAME)
copytree(os.path.join(HERE, NAME), target_dir)
setup(
name='program_slicing',
version=program_slicing.__version__,
description=program_slicing.__doc__.strip(),
long_description='Set of methods for source code decomposition.',
url='https://github.com/acheshkov/program_slicing',
download_url='https://github.com/acheshkov/program_slicing',
author=program_slicing.__author__,
author_email=['[email protected]'],
license=program_slicing.__licence__,
packages=find_packages(),
extras_require={},
install_requires=open('requirements.txt', 'r').readlines(),
tests_require=open('requirements.txt', 'r').readlines(),
classifiers=[
'Programming Language :: Python',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development',
'Topic :: Utilities'
],
cmdclass={"build_py": BuildCommand},
)