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

Use poetry as a packager #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[tool.poetry]
name = "tls-client"
version = "0.2.1"
description = "Advanced Python HTTP Client."
authors = ["Florian Zager <your-email@example.com>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/FlorianREGAZ/Python-Tls-Client"
packages = [{ include = "tls_client" }]
classifiers = [
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: Unix",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
]
include = ["tls_client/dependencies/*"]

[tool.poetry.dependencies]
python = "^3.11"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

11 changes: 0 additions & 11 deletions tls_client/__version__.py

This file was deleted.

3 changes: 1 addition & 2 deletions tls_client/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from .exceptions import TLSClientExeption
from .response import build_response
from .structures import CaseInsensitiveDict
from .__version__ import __version__

from typing import Any, Optional, Union
from json import dumps, loads
Expand Down Expand Up @@ -43,7 +42,7 @@ def __init__(
# Case-insensitive dictionary of headers, send on each request
self.headers = CaseInsensitiveDict(
{
"User-Agent": f"tls-client/{__version__}",
"User-Agent": f"tls-client",
"Accept-Encoding": "gzip, deflate, br",
"Accept": "*/*",
"Connection": "keep-alive",
Expand Down