|
6 | 6 |
|
7 | 7 | import io |
8 | 8 | import os |
9 | | -import sys |
10 | | -from shutil import rmtree |
11 | 9 |
|
12 | | -from setuptools import find_packages, setup, Command |
| 10 | +from setuptools import find_packages, setup |
13 | 11 |
|
14 | 12 | # Package meta-data. |
15 | | -NAME = 'commitizen' |
| 13 | +NAME = 'commitizen-py2.7' |
| 14 | +WORKDIR = 'commitizen' |
16 | 15 | DESCRIPTION = 'Python commitizen client tool.' |
17 | 16 | URL = 'https://github.com/ranshamay89/commitizen' |
18 | | -EMAIL = 'ran@panorays.com' |
| 17 | +EMAIL = 'ran.shamay89@gmail.com' |
19 | 18 | AUTHOR = 'Ran Shamay' |
20 | 19 | REQUIRED = [ |
21 | | - 'delegator.py', 'whaaaaat' |
| 20 | + 'delegator.py', 'whaaaaat', 'configparser' |
22 | 21 | ] |
23 | 22 |
|
24 | 23 | here = os.path.abspath(os.path.dirname(__file__)) |
|
27 | 26 | long_description = '\n' + f.read() |
28 | 27 |
|
29 | 28 | 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) |
63 | 31 |
|
64 | 32 | setup( |
| 33 | + |
65 | 34 | name=NAME, |
66 | 35 | version=about['__version__'], |
67 | 36 | description=DESCRIPTION, |
68 | | - long_description=long_description, |
| 37 | + packages=find_packages(exclude=('tests',)), |
| 38 | + url='', |
69 | 39 | author=AUTHOR, |
70 | 40 | author_email=EMAIL, |
71 | | - url=URL, |
72 | | - packages=find_packages(exclude=('tests',)), |
73 | 41 | entry_points={ |
74 | 42 | 'console_scripts': ['cz=commitizen.cli:main'], |
75 | 43 | }, |
76 | | - keywords='commitizen conventional commits git', |
77 | 44 | install_requires=REQUIRED, |
| 45 | + zip_safe=True, |
78 | 46 | include_package_data=True, |
79 | 47 | license='MIT', |
80 | 48 | classifiers=[ |
|
0 commit comments