-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
96 lines (84 loc) · 2.65 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# -*- coding: utf-8 -*-
"""
======
Py2pip
======
Master package for Py2pip
"""
import os
import packaging.version
import re
import sys
import subprocess
from distutils.core import Command
from distutils.command.sdist import sdist as _sdist
from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm
from setuptools import setup, find_packages
PACKAGE_NAME = 'py2pip'
version = '1.0.2'
class Sdist(_sdist):
def run(self):
# unless we update this, the sdist command will keep using the old
# version
self.distribution.metadata.version = version
return _sdist.run(self)
class Bdist_rpm(_bdist_rpm):
def run(self):
# unless we update this, the bdist command will keep using the old
# version
self.distribution.metadata.version = version
return _bdist_rpm.run(self)
this_directory = os.path.abspath(os.path.dirname(__file__))
def read(*names):
return open(os.path.join(this_directory, *names), 'r').read().strip()
long_description = '\n\n'.join(
read(*paths) for paths in (('README.md',),('CHANGES.md',)))
setup(name=PACKAGE_NAME,
version=version,
description="Master package for Py2PIP",
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: No Input/Output (Daemon)",
"Framework :: AsyncIO",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3 :: Only",
'License :: OSI Approved :: MIT License',
"Operating System :: POSIX :: Linux",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: Session",
"Topic :: Text Processing :: Markup :: HTML",
'Natural Language :: English',
'Intended Audience :: Developers'
],
keywords='Developer, Python, Version, Compatibility',
author='Manish Kumar',
author_email='kumarmanish890@gmail.com',
url='http://pypi.python.org/pypi/py2pip',
license='MIT',
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False,
python_requires='>=3',
install_requires=[
"setuptools",
"packaging",
"beautifulsoup4",
"aiohttp",
],
entry_points={
'console_scripts': [
'py2pip=py2pip.__main__:main',
]
},
cmdclass={
"sdist": Sdist,
"bdist_rpm": Bdist_rpm,
}
)