8000 Drop `python-telegram-bot-raw` And Switch to `pyproject.toml` Based P… · gtkacz/python-telegram-bot@44e8292 · GitHub
[go: up one dir, main page]

Skip to content

Commit 44e8292

Browse files
authored
Drop python-telegram-bot-raw And Switch to pyproject.toml Based Packaging (python-telegram-bot#4288)
1 parent a9f6afd commit 44e8292

26 files changed

+153
-518
lines changed

.github/CONTRIBUTING.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Setting things up
2626

2727
.. code-block:: bash
2828
29-
$ pip install -r requirements-all.txt
29+
$ pip install -r requirements-dev-all.txt
3030
3131
3232
5. Install pre-commit hooks:
@@ -210,13 +210,8 @@ doc strings don't have a separate documenta 10000 tion site they generate, instead, the
210210

211211
User facing documentation
212212
-------------------------
213-
We use `sphinx`_ to generate static HTML docs. To build them, first make sure you're running Python 3.9 or above and have the required dependencies:
214-
215-
.. code-block:: bash
216-
217-
$ pip install -r docs/requirements-docs.txt
218-
219-
then run the following from the PTB root directory:
213+
We use `sphinx`_ to generate static HTML docs. To build them, first make sure you're running Python 3.9 or above and have the required dependencies installed as explained above.
214+
Then, run the following from the PTB root directory:
220215

221216
.. code-block:: bash
222217

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
python -W ignore -m pip install --upgrade pip
31-
python -W ignore -m pip install -r requirements-all.txt
31+
python -W ignore -m pip install -r requirements-dev-all.txt
3232
- name: Test autogeneration of admonitions
3333
run: pytest -v --tb=short tests/docs/admonition_inserter.py
3434
- name: Build docs

.github/workflows/pre-commit_dependencies_notifier.yml

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

.github/workflows/readme_notifier.yml

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

.github/workflows/test_official.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ jobs:
2929
- name: Install dependencies
3030
run: |
3131
python -W ignore -m pip install --upgrade pip
32-
python -W ignore -m pip install -r requirements.txt
33-
python -W ignore -m pip install -r requirements-opts.txt
34-
python -W ignore -m pip install -r requirements-dev.txt
32+
python -W ignore -m pip install .[all]
33+
python -W ignore -m pip install -r requirements-unit-tests.txt
3534
- name: Compare to official api
3635
run: |
3736
pytest -v tests/test_official/test_official.py --junit-xml=.test_report_official.xml

.github/workflows/type_completeness.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ on:
33
pull_request:
44
paths:
55
- telegram/**
6-
- requirements.txt
7-
- requirements-opts.txt
6+
- pyproject.toml
87
push:
98
branches:
109
- master

.github/workflows/unit_tests.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ on:
44
paths:
55
- telegram/**
66
- tests/**
7-
- requirements.txt
8-
- requirements-opts.txt
9-
- requirements-dev.txt
7+
- pyproject.toml
8+
- requirements-unit-tests.txt
109
push:
1110
branches:
1211
- master
@@ -35,8 +34,8 @@ jobs:
3534
run: |
3635
python -W ignore -m pip install --upgrade pip
3736
python -W ignore -m pip install -U pytest-cov
38-
python -W ignore -m pip install -r requirements.txt
39-
python -W ignore -m pip install -r requirements-dev.txt
37+
python -W ignore -m pip install .
38+
python -W ignore -m pip install -r requirements-unit-tests.txt
4039
python -W ignore -m pip install pytest-xdist[psutil]
4140
4241
- name: Test with pytest
@@ -65,7 +64,7 @@ jobs:
6564
6665
# Test the rest
6766
export TEST_WITH_OPT_DEPS='true'
68-
pip install -r requirements-opts.txt
67+
pip install .[all]
6968
# `-n auto --dist loadfile` uses pytest-xdist to run each test file on a different CPU
7069
# worker. Increasing number of workers has little effect on test duration, but it seems
7170
# to increase flakyness, specially on python 3.7 with --dist=loadgroup.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Make sure that the additional_dependencies here match requirements(-opts).txt
1+
# Make sure that the additional_dependencies here match pyproject.toml
22

33
ci:
44
autofix_prs: false

MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ You can also install ``python-telegram-bot`` from source, though this is usually
9898
9999
$ git clone https://github.com/python-telegram-bot/python-telegram-bot
100100
$ cd python-telegram-bot
101-
$ python setup.py install
101+
$ pip install build
102+
$ python -m build
102103
103104
Verifying Releases
104105
------------------

README_RAW.rst

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

docs/requirements-docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ furo-sphinx-search @ git+https://github.com/harshil21/furo-sphinx-search@v0.2.0.
44
sphinx-paramlinks==0.6.0
55
sphinxcontrib-mermaid==0.9.2
66
sphinx-copybutton==0.5.2
7-
sphinx-inline-tabs==2023.4.21
7+
sphinx-inline-tabs==2023.4.21

0 commit comments

Comments
 (0)
0