Skip to content

Commit 4d3e632

Browse files
committed
switched to Poetry for dependency management, packaging and vitual environment management
1 parent f79f2b4 commit 4d3e632

11 files changed

+1551
-69
lines changed

.github/workflows/main.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
architecture: x64
2525
- name: Install Dependencies
2626
run: |
27-
python -m pip install --upgrade pip setuptools
28-
pip install -r requirements-dev.txt
27+
python -m pip install poetry
28+
python -m poetry install
2929
- name: Run pre-commit
30-
run: pre-commit run --all-files
30+
run: python -m poetry run pre-commit run --all-files
3131

3232
run_tests:
3333
name: Testing on Python ${{ matrix.python-version }} (${{ matrix.platform}})
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10' ]
42+
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
4343
platform: [ubuntu-latest, macOS-10.15, windows-latest]
4444
runs-on: ${{ matrix.platform }}
4545

@@ -52,7 +52,7 @@ jobs:
5252

5353
- name: Install dependencies
5454
run: |
55-
python -m pip install --upgrade pip setuptools
56-
pip install -r ../../requirements-dev.txt
55+
python -m pip install poetry
56+
python -m poetry install -E full
5757
- name: Run pytest
58-
run: pytest -vv
58+
run: python -m poetry run pytest -vv

docs/requirements.txt

-11
This file was deleted.

docs/source/Installation.rst

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Or clone from GitHub, unzip, navigate to folder and run::
99

1010
python setup.py install or python -m pip install .
1111

12+
Install all optional dependencies::
13+
14+
pip install ttp[full]
15+
1216
Additional dependencies
1317
-----------------------
1418

@@ -34,3 +38,7 @@ TTP mainly uses built-in libraries. However, additional modules need to be insta
3438

3539
* INI lookup tables - requires `configparser <https://pypi.org/project/configparser/>`_
3640
* :ref:`Lookup Tables/Lookup Tables:geoip2 database` - requires `GeoIP2 <https://pypi.org/project/geoip2/>`_
41+
42+
All above optional dependencies can be installed using `full` extras:
43+
44+
pip install ttp[full]

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'dmulyalin'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '0.8.4'
25+
release = '0.9.0'
2626

2727

2828
# -- General configuration ---------------------------------------------------

0 commit comments

Comments
 (0)