-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (53 loc) · 1.93 KB
/
setup.py
File metadata and controls
59 lines (53 loc) · 1.93 KB
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
# python
# -*- coding: utf-8 -*-
import codecs
import os
import re
import sys
from setuptools import find_packages, setup
"""
linux:
rm -rf "dist/*";rm -rf "build/*";python3 setup.py bdist_wheel;python2 setup.py bdist_wheel;twine upload "dist/*;rm -rf "dist/*";rm -rf "build/*""
win32:
rm -rf dist;rm -rf build;python3 setup.py bdist_wheel;python2 setup.py bdist_wheel;twine upload "dist/*"
rm -rf dist;rm -rf build;rm -rf frequency_controller.egg-info
"""
py_version = sys.version_info
install_requires = []
if py_version.major == 2:
install_requires.append("futures")
with codecs.open("README.md", encoding="u8") as f:
long_description = f.read()
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(
os.path.join(here, 'frequency_controller', '__init__.py'),
encoding="u8") as f:
version = re.search(r'''__version__ = ['"](.*?)['"]''', f.read()).group(1)
setup(
name="frequency_controller",
version=version,
keywords=("frequency limitation async multi-thread asyncio asynchronous"),
description=
"Setting a limitation for usage frequency. Read more: https://github.com/ClericPy/frequency_controller.",
long_description=long_description,
long_description_content_type='text/markdown',
license="MIT License",
install_requires=install_requires,
py_modules=["frequency_controller"],
python_requires=">=2.7",
classifiers=[
"License :: OSI Approved :: MIT License",
'Programming Language :: Python',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
author="ClericPy",
author_email="clericpy@gmail.com",
url="https://github.com/ClericPy/frequency_controller",
packages=find_packages(),
platforms="any",
)