Skip to content

Commit

Permalink
Update version to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
python273 committed Oct 31, 2021
1 parent 7149cec commit 00d9398
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 45 deletions.
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Telegraph
[![Build Status](https://travis-ci.org/python273/telegraph.svg?branch=master)](https://travis-ci.org/python273/telegraph)
[![PyPI](https://img.shields.io/pypi/v/telegraph.svg)](https://pypi.python.org/pypi/telegraph)
![Python Versions](https://img.shields.io/pypi/pyversions/telegraph.svg)
![License](https://img.shields.io/github/license/python273/telegraph.svg)
Expand All @@ -8,24 +7,20 @@ Python Telegraph API wrapper

- [Documentation](https://python-telegraph.readthedocs.io/en/latest/)

```bash
$ python3 -m pip install telegraph
```

# Example
```python
from telegraph import Telegraph

telegraph = Telegraph()

telegraph.create_account(short_name='1337')

response = telegraph.create_page(
'Hey',
html_content='<p>Hello, world!</p>'
)

print('https://telegra.ph/{}'.format(response['path']))
```

# Installation

```bash
$ pip install telegraph
print(response['url'])
```
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
except ImportError:
from distutils.core import setup

version = '1.4.1'
version = '2.0.0'


with open('README.md') as f:
Expand Down Expand Up @@ -46,15 +46,11 @@
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
]
)
2 changes: 1 addition & 1 deletion telegraph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""

__author__ = 'python273'
__version__ = '1.4.1'
__version__ = '2.0.0'

from .api import Telegraph, TelegraphException
from .upload import upload_file
2 changes: 0 additions & 2 deletions telegraph/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ class InvalidHTML(ParsingException):


class RetryAfterError(TelegraphException):

def __init__(self, retry_after: int):
self.retry_after = retry_after
super().__init__(f'Flood control exceeded. Retry in {retry_after} seconds')

0 comments on commit 00d9398

Please sign in to comment.