Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upd #170

Merged
merged 7 commits into from
Oct 4, 2024
Merged

upd #170

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/test_build.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on:
push:
branches: [ "main", "release"]
paths:
- '.github/workflows/test_build.yml'
- '.github/workflows/build.yml'
- 'src/**'
- 'Makefile'
pull_request:
branches: [ "main", "release"]
paths:
- '.github/workflows/test_build.yml'
- '.github/workflows/build.yml'
- 'src/**'
- 'Makefile'

Expand All @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -30,6 +30,4 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Local build checking
run: |
pip install twine wheel
cd src/ && python setup.py sdist bdist_wheel
run: make build
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
install:
cd src/ && pip install -e .
pip3 install -e .

remove:
pip3 uninstall python3_anticaptcha -y

tests: install
coverage run --rcfile=.coveragerc -m pytest --verbose --showlocals --pastebin=all tests --disable-warnings && \
Expand All @@ -26,9 +29,13 @@ lint:
black src/ --check && \
isort src/ --check-only

build:
pip3 install --upgrade build setuptools
python3 -m build

upload:
pip install twine
cd src/ && python setup.py upload
pip3 install twine wheel setuptools build
twine upload dist/*

doc: install
cd docs/ && \
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

![Logo](https://red-panda-dev.xyz/media/images/AntiCaptcha_MCSmjTi.original.png)

### [Capsolver](https://capsolver.com?utm_source=github&utm_medium=banner_github&utm_campaign=python3-anticaptcha)
### [Capsolver](https://www.capsolver.com/?utm_source=github&utm_medium=repo&utm_campaign=scraping&utm_term=python3-anticaptcha)

[![Capsolver](files/capsolver.png)](https://capsolver.com?utm_source=github&utm_medium=banner_github&utm_campaign=python3-anticaptcha)
[![Capsolver](files/capsolver.png)](https://www.capsolver.com/?utm_source=github&utm_medium=repo&utm_campaign=scraping&utm_term=python3-anticaptcha)

<hr>

Expand All @@ -17,7 +17,7 @@
[![codecov](https://codecov.io/gh/AndreiDrang/python3-anticaptcha/branch/main/graph/badge.svg?token=W92nfZY6Tz)](https://codecov.io/gh/AndreiDrang/python3-anticaptcha)

[![Sphinx docs](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/sphinx.yml/badge.svg?branch=release)](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/sphinx.yml)
[![Build check](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/test_build.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/test_build.yml)
[![Building](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/build.yml/badge.svg)](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/build.yml)
[![Installation check](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/install.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/install.yml)
[![Test](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/test.yml)
[![Lint](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/lint.yml)
Expand Down
8 changes: 4 additions & 4 deletions docs/modules/main/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

![](../../_static/AntiCaptcha.png)

### [Capsolver](https://capsolver.com?utm_source=github&utm_medium=banner_github&utm_campaign=python3-anticaptcha)
### [Capsolver](https://www.capsolver.com/?utm_source=github&utm_medium=repo&utm_campaign=scraping&utm_term=python3-anticaptcha)

[![Capsolver](../../_static/capsolver.png)](https://capsolver.com?utm_source=github&utm_medium=banner_github&utm_campaign=python3-anticaptcha)
[![Capsolver](../../_static/capsolver.png)](https://www.capsolver.com/?utm_source=github&utm_medium=repo&utm_campaign=scraping&utm_term=python3-anticaptcha)

<hr>

Expand All @@ -16,9 +16,9 @@

[![Code Climate](https://codeclimate.com/github/AndreiDrang/python3-anticaptcha/badges/gpa.svg)](https://codeclimate.com/github/AndreiDrang/python3-anticaptcha)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7f49780f2edb48d4b133833887c850e8)](https://www.codacy.com/gh/AndreiDrang/python3-anticaptcha/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=AndreiDrang/python3-anticaptcha&amp;utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/AndreiDrang/python3-anticaptcha/branch/master/graph/badge.svg?token=W92nfZY6Tz)](https://codecov.io/gh/AndreiDrang/python3-anticaptcha)
[![codecov](https://codecov.io/gh/AndreiDrang/python3-anticaptcha/branch/main/graph/badge.svg?token=W92nfZY6Tz)](https://codecov.io/gh/AndreiDrang/python3-anticaptcha)

[![Build check](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/test_build.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/test_build.yml)
[![Building](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/build.yml/badge.svg)](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/build.yml)
[![Installation check](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/install.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/install.yml)
[![Test](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/test.yml)
[![Lint](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/AndreiDrang/python3-anticaptcha/actions/workflows/lint.yml)
Expand Down
76 changes: 76 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,79 @@ testpaths = [
"tests",
]
addopts = "-vv --tb=short --durations=5"

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "python3-anticaptcha"
dynamic = ["version"]
authors = [
{name = "AndreiDrang", email = "python-captcha@pm.me"},
]
description = "Python 3.9+ RuCaptcha library with AIO module."
readme = "README.md"
requires-python = ">=3.9"
keywords = [ "captcha",
"anticaptcha",
"deathbycaptcha",
"recaptcha",
"geetest",
"hcaptcha",
"capypuzzle",
"rotatecaptcha",
"funcaptcha",
"keycaptcha",
"python3",
"recaptcha",
"captcha",
"security",
"tencent",
"atb_captcha",
"python-library",
"python-anticaptcha",
"anticaptcha-client",
"yandex",
"turnstile",
"amazon",
"amazon_waf",
"friendly-captcha"
]
license = {text = "MIT License"}
classifiers = [
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: AsyncIO",
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
]
dependencies = [
"requests>=2.21.0",
"aiohttp>=3.9.2",
"msgspec==0.18.*",
"tenacity>=8,<10"
]

[tool.setuptools.packages.find]
where = ["src"]
include = ["python3_anticaptcha*"]

[tool.setuptools.dynamic]
version = {attr = "python3_anticaptcha.__version__"}

[project.urls]
Homepage = "https://andreidrang.github.io/python3-anticaptcha"
Documentation = "https://andreidrang.github.io/python3-anticaptcha"
Repository = "https://github.com/AndreiDrang/python3-anticaptcha"
Issues = "https://github.com/AndreiDrang/python3-anticaptcha/issues"
Changelog = "https://github.com/AndreiDrang/python3-anticaptcha/releases"
1 change: 1 addition & 0 deletions src/python3_anticaptcha/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from python3_anticaptcha.__version__ import __version__ # noqa
2 changes: 1 addition & 1 deletion src/python3_anticaptcha/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.1a"
__version__ = "2.0.2a"
4 changes: 0 additions & 4 deletions src/requirements.txt

This file was deleted.

137 changes: 0 additions & 137 deletions src/setup.py

This file was deleted.

Loading