forked from benthayer/git-gud
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (39 loc) · 1.09 KB
/
setup.py
File metadata and controls
46 lines (39 loc) · 1.09 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
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
from gitgud import create_alias
create_alias()
develop.run(self)
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
from gitgud import create_alias
create_alias()
install.run(self)
with open('README.md') as readme:
long_description = readme.read()
setup(
name='git-gud',
version='0.1',
url='https://github.com/bthayer2365/git-gud/',
description='A tool to learn git',
author='Ben Thayer',
author_email='ben@benthayer.com',
license='MIT',
long_description=long_description,
long_description_content_type='text/markdown',
packages=[
'gitgud'
],
python_requires='>=3.0',
install_requires=[
'gitpython',
],
cmdclass={
'develop': PostDevelopCommand,
'install': PostInstallCommand,
}
)