Skip to content

Commit 995a638

Browse files
fix(added configparser depandancy to setup process): added configparser dep
1 parent 345c1b7 commit 995a638

File tree

3 files changed

+13
-47
lines changed

3 files changed

+13
-47
lines changed

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ include .bumpversion.cfg
22
include README.rst
33
include LICENSE
44

5-
global-exclude *.py[cod] __pycache__ *.so *.dylib
5+
global-exclude *.py[cod] __pycache__ *.so *.dylib
6+
include makefile

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
[aliases]
22
test = pytest
3-
4-
[easy_install]
5-

setup.py

Lines changed: 11 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,18 @@
66

77
import io
88
import os
9-
import sys
10-
from shutil import rmtree
119

12-
from setuptools import find_packages, setup, Command
10+
from setuptools import find_packages, setup
1311

1412
# Package meta-data.
15-
NAME = 'commitizen'
13+
NAME = 'commitizen-py2.7'
14+
WORKDIR = 'commitizen'
1615
DESCRIPTION = 'Python commitizen client tool.'
1716
URL = 'https://github.com/ranshamay89/commitizen'
18-
EMAIL = 'ran@panorays.com'
17+
EMAIL = 'ran.shamay89@gmail.com'
1918
AUTHOR = 'Ran Shamay'
2019
REQUIRED = [
21-
'delegator.py', 'whaaaaat'
20+
'delegator.py', 'whaaaaat', 'configparser'
2221
]
2322

2423
here = os.path.abspath(os.path.dirname(__file__))
@@ -27,54 +26,23 @@
2726
long_description = '\n' + f.read()
2827

2928
about = {}
30-
with open(os.path.join(here, NAME, '__version__.py')) as f:
31-
exec(f.read(), about)
32-
33-
34-
class UploadCommand(Command):
35-
"""Support setup.py upload."""
36-
37-
description = 'Build and publish the package.'
38-
user_options = []
39-
40-
@staticmethod
41-
def status(s):
42-
"""Prints things in bold."""
43-
print('\033[1m{0}\033[0m'.format(s))
44-
45-
def initialize_options(self):
46-
pass
47-
48-
def finalize_options(self):
49-
pass
50-
51-
def run(self):
52-
try:
53-
self.status('Removing previous builds…')
54-
rmtree(os.path.join(here, 'dist'))
55-
except OSError:
56-
pass
57-
58-
self.status('Building Source and Wheel (universal) distribution…')
59-
os.system('{0} setup.py sdist bdist_wheel --universal'.format(sys.executable))
60-
61-
sys.exit()
62-
29+
with open(os.path.join(here, WORKDIR, '__version__.py')) as f:
30+
exec (f.read(), about)
6331

6432
setup(
33+
6534
name=NAME,
6635
version=about['__version__'],
6736
description=DESCRIPTION,
68-
long_description=long_description,
37+
packages=find_packages(exclude=('tests',)),
38+
url='',
6939
author=AUTHOR,
7040
author_email=EMAIL,
71-
url=URL,
72-
packages=find_packages(exclude=('tests',)),
7341
entry_points={
7442
'console_scripts': ['cz=commitizen.cli:main'],
7543
},
76-
keywords='commitizen conventional commits git',
7744
install_requires=REQUIRED,
45+
zip_safe=True,
7846
include_package_data=True,
7947
license='MIT',
8048
classifiers=[

0 commit comments

Comments
 (0)