-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (62 loc) · 1.93 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
import setuptools
import re
import os
long_description = ''
with open("README.md", "r") as fh:
long_description = fh.read()
version = ''
with open('pastee/__init__.py') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1) # noqa
requirements = ['aiohttp>=3.3']
try:
with open('requirements.txt') as f:
requirements = f.read().splitlines()
except FileNotFoundError:
pass
extras_require = {
'docs': [
'sphinxcontrib_trio==1.1.0',
]
}
class CleanCommand(setuptools.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(r"rmdir dist -force -r")
os.system(r"rmdir egg-info -force -r")
os.system(r"rmdir build -force -r")
setuptools.setup(
name="pastee",
url="https://github.com/creator1372/pastee",
version=version,
author="creator1372",
description="Library for using Paste.ee's api",
long_description=long_description,
license='MIT',
long_description_content_type="text/markdown",
install_requires=requirements,
extras_require=extras_require,
packages=setuptools.find_packages(),
python_requires='>=3.5.3',
cmdclass={
"clean": CleanCommand
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Internet',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
)