-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (45 loc) · 1.86 KB
/
setup.py
File metadata and controls
49 lines (45 loc) · 1.86 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
45
46
47
48
49
from setuptools import setup, find_packages
from setuptools.command.install import install
import subprocess
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)
subprocess.call(['python3', 'post_install.py'])
with open('README.md', 'r') as f:
long_description = f.read()
long_description = long_description.replace('assets/imgs/demo1.png',"https://github.com/SivaSankarS365/Markdown-code-runner/raw/main/assets/imgs/demo1.png")
long_description = long_description.replace('assets/imgs/demo2.png',"https://github.com/SivaSankarS365/Markdown-code-runner/raw/main/assets/imgs/demo2.png")
long_description = long_description.replace('assets/imgs/timeit.jpeg',"https://github.com/SivaSankarS365/Markdown-code-runner/raw/main/assets/imgs/timeit.jpeg")
setup(
name='mdcoderunner',
version='1.0.1',
packages=find_packages(),
include_package_data=True,
install_requires=[
'jinja2==3.1.3',
],
entry_points={
'console_scripts': ['mdcoderunner=mdcoderunner.api:main'],
},
author='Siva Sankar Sajeev',
author_email='sivasankars365@gmail.com',
description='A tool for running code blocks in Markdown files.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/SivaSankarS365/Markdown-code-runner',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
cmdclass={
'install': PostInstallCommand,
},
)