Skip to content

Commit 00d9398

Browse files
committed
Update version to 2.0.0
1 parent 7149cec commit 00d9398

File tree

5 files changed

+9
-45
lines changed

5 files changed

+9
-45
lines changed

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Telegraph
2-
[![Build Status](https://travis-ci.org/python273/telegraph.svg?branch=master)](https://travis-ci.org/python273/telegraph)
32
[![PyPI](https://img.shields.io/pypi/v/telegraph.svg)](https://pypi.python.org/pypi/telegraph)
43
![Python Versions](https://img.shields.io/pypi/pyversions/telegraph.svg)
54
![License](https://img.shields.io/github/license/python273/telegraph.svg)
@@ -8,24 +7,20 @@ Python Telegraph API wrapper
87

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

10+
```bash
11+
$ python3 -m pip install telegraph
12+
```
13+
1114
# Example
1215
```python
1316
from telegraph import Telegraph
1417

1518
telegraph = Telegraph()
16-
1719
telegraph.create_account(short_name='1337')
1820

1921
response = telegraph.create_page(
2022
'Hey',
2123
html_content='<p>Hello, world!</p>'
2224
)
23-
24-
print('https://telegra.ph/{}'.format(response['path']))
25-
```
26-
27-
# Installation
28-
29-
```bash
30-
$ pip install telegraph
25+
print(response['url'])
3126
```

setup.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
except ImportError:
1515
from distutils.core import setup
1616

17-
version = '1.4.1'
17+
version = '2.0.0'
1818

1919

2020
with open('README.md') as f:
@@ -46,15 +46,11 @@
4646
'License :: OSI Approved :: MIT License',
4747
'Operating System :: OS Independent',
4848
'Programming Language :: Python',
49-
'Programming Language :: Python :: 2',
50-
'Programming Language :: Python :: 2.7',
5149
'Programming Language :: Python :: 3',
52-
'Programming Language :: Python :: 3.4',
53-
'Programming Language :: Python :: 3.5',
5450
'Programming Language :: Python :: 3.6',
5551
'Programming Language :: Python :: 3.7',
5652
'Programming Language :: Python :: 3.8',
57-
'Programming Language :: Python :: Implementation :: PyPy',
58-
'Programming Language :: Python :: Implementation :: CPython',
53+
'Programming Language :: Python :: 3.9',
54+
'Programming Language :: Python :: 3.10',
5955
]
6056
)

telegraph/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""
1010

1111
__author__ = 'python273'
12-
__version__ = '1.4.1'
12+
__version__ = '2.0.0'
1313

1414
from .api import Telegraph, TelegraphException
1515
from .upload import upload_file

telegraph/exceptions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class InvalidHTML(ParsingException):
1717

1818

1919
class RetryAfterError(TelegraphException):
20-
2120
def __init__(self, retry_after: int):
2221
self.retry_after = retry_after
2322
super().__init__(f'Flood control exceeded. Retry in {retry_after} seconds')
24-

0 commit comments

Comments
 (0)