-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
57 lines (48 loc) · 1.42 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
# coding: utf-8
"""
HOW TO RELEASE
$ pip install twine
$ python setup.py sdist build
$ twine upload dist/*
"""
import os
from setuptools import setup, Command
from setuptools import find_packages
class CleanCommand(Command):
"""Custom clean command to tidy up the project root."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
with open('README.md') as f:
readme = f.read()
setup(
name='requests_to_curl',
version='1.1.0',
packages=find_packages(),
include_package_data=True,
install_requires=['requests'],
license='MIT License',
long_description=readme,
long_description_content_type='text/markdown',
description='Library to convert python requests object to curl command.',
author='Deer',
author_email='[email protected]',
platforms='any',
url='https://github.com/ritajie/requests_to_curl',
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
],
cmdclass={
'clean': CleanCommand,
},
)