Skip to content

Commit

Permalink
fix: The problem of no upload files of project in pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
calenzo committed Mar 21, 2023
1 parent d86d891 commit 5d2df0d
Show file tree
Hide file tree
Showing 49 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
author_email="[email protected]",
license="MIT License",
description=READ_ME,
long_description="Version of pynubank v2",
long_description="Version of balance_nubank v2",
long_description_content_type="text/x-rst",
install_requires=REQUIREMENTS,
package_dir={"": "src"},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from enum import Enum
from functools import wraps

from pynubank.exception import NuInvalidAuthenticationMethod
from balance_nubank.exception import NuInvalidAuthenticationMethod


class AuthMode(Enum):
Expand Down
4 changes: 2 additions & 2 deletions src/pynubank/cli.py → src/balance_nubank/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

from colorama import init, Fore, Style

from pynubank import NuException
from pynubank.utils.certificate_generator import CertificateGenerator
from balance_nubank import NuException
from balance_nubank.utils.certificate_generator import CertificateGenerator


def generate_random_id() -> str:
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions src/pynubank/nubank.py → src/balance_nubank/nubank.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

from qrcode import QRCode

from pynubank.auth_mode import AuthMode, requires_auth_mode
from pynubank.exception import NuMissingCreditCard
from pynubank.utils.discovery import Discovery
from pynubank.utils.graphql import prepare_request_body
from pynubank.utils.http import HttpClient
from pynubank.utils.parsing import parse_float, parse_pix_transaction, parse_generic_transaction
from balance_nubank.auth_mode import AuthMode, requires_auth_mode
from balance_nubank.exception import NuMissingCreditCard
from balance_nubank.utils.discovery import Discovery
from balance_nubank.utils.graphql import prepare_request_body
from balance_nubank.utils.http import HttpClient
from balance_nubank.utils.parsing import parse_float, parse_pix_transaction, parse_generic_transaction

PAYMENT_EVENT_TYPES = (
'TransferOutEvent',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import requests
from OpenSSL.crypto import X509

from pynubank import NuException, NuRequestException
from pynubank.utils.discovery import Discovery
from pynubank.utils.http import HttpClient
from balance_nubank import NuException, NuRequestException
from balance_nubank.utils.discovery import Discovery
from balance_nubank.utils.http import HttpClient


class CertificateGenerator:
Expand All @@ -22,7 +22,7 @@ def __init__(self, login, password, device_id, encrypted_code=None):
def request_code(self) -> str:
response = requests.post(self.url, json=self._get_payload())

print('pynubank response ->', response)
print('balance_nubank response ->', response)

if response.status_code == 401 or not response.headers.get('WWW-Authenticate'):
raise NuException('Authentication code request failed.')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pynubank.exception import NuException
from pynubank.utils.http import HttpClient
from balance_nubank.exception import NuException
from balance_nubank.utils.http import HttpClient

DISCOVERY_URL = 'https://prod-s0-webapp-proxy.nubank.com.br/api/discovery'
DISCOVERY_APP_URL = 'https://prod-s0-webapp-proxy.nubank.com.br/api/app/discovery'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from requests import Response
from requests_pkcs12 import get, post

from pynubank import NuRequestException
from balance_nubank import NuRequestException


class HttpClient:
Expand All @@ -11,7 +11,7 @@ def __init__(self):
self._headers = {
'Content-Type': 'application/json',
'X-Correlation-Id': 'and-7-86-2-1000005524.9twu3pgr',
'User-Agent': 'pynubank Client - https://github.com/andreroggeri/pynubank',
'User-Agent': 'balance_nubank Client - https://github.com/andreroggeri/pynubank',
}

def set_cert(self, cert_path: str):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import json
from pathlib import Path

from pynubank import NuException
from pynubank.utils.graphql import prepare_request_body
from pynubank.utils.http import HttpClient
from balance_nubank import NuException
from balance_nubank.utils.graphql import prepare_request_body
from balance_nubank.utils.http import HttpClient

GHOSTFLAME_URL = 'https://mocked-proxy-url/api/proxy/ghostflame_123'

Expand Down
File renamed without changes.

0 comments on commit 5d2df0d

Please sign in to comment.