Skip to content

Commit

Permalink
ver
Browse files Browse the repository at this point in the history
  • Loading branch information
ihandmine committed Mar 24, 2022
1 parent ec8aca6 commit b567f85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion anti_useragent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from anti_useragent.useragent.ua import AntiUserAgent, UserAgent
from anti_useragent.utils.cipers import sslgen, set_tls_protocol, set_requests_cipers

__version__ = '1.0.3'
__version__ = '1.0.5'

VERSION = __version__

Expand Down
14 changes: 11 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import os
import sys
import chardet

from shutil import rmtree

from setuptools import setup, Command
Expand All @@ -14,11 +14,19 @@
URL = "https://github.com/ihandmine/anti-useragent"
AUTHOR = "handmine"
AUTHOR_EMAIL = "[email protected]"
VERSION = "1.0.4"
VERSION = "1.0.5"
LICENSE = "MIT"
REQUIRES_PYTHON = ">=3.7.0"


def list_dir(dir):
result = [dir]
for file in os.listdir(dir):
if os.path.isdir(os.path.join(dir, file)):
result.extend(list_dir(os.path.join(dir, file)))
return result


here = os.path.abspath(os.path.dirname(__file__))
with open(f"{here}/README.md", encoding='utf-8') as f:
long_description = f.read()
Expand Down Expand Up @@ -74,7 +82,7 @@ def run(self):
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
packages=[NAME],
packages=list_dir(NAME),
package_dir={NAME: NAME},
python_requires=REQUIRES_PYTHON,
include_package_data=True,
Expand Down

0 comments on commit b567f85

Please sign in to comment.