Skip to content

Commit a34b606

Browse files
authored
Merge requirements (#273)
* Merge requirements * Cleanup requirements * Fix * Fix * Fix readthedocs * Fix * Fix * fix * fix
1 parent 6ce5ee3 commit a34b606

File tree

13 files changed

+27
-155
lines changed

13 files changed

+27
-155
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
- name: Install dependencies
3535
uses: py-actions/py-dependency-install@v3
3636
with:
37-
path: requirements/flake.txt
37+
path: requirements/ci.txt
3838
- name: Install itself
3939
run: |
40-
python setup.py install
40+
pip install .
4141
env:
4242
FROZENLIST_NO_EXTENSIONS: 1
4343
- name: Run flake8
@@ -52,8 +52,7 @@ jobs:
5252
- name: Install spell checker
5353
run: |
5454
sudo apt install libenchant-dev
55-
pip install -r requirements/doc-spelling.txt
56-
pip install -r requirements/towncrier.txt
55+
pip install -r requirements/doc.txt
5756
- name: Run docs spelling
5857
run: |
5958
towncrier --yes
@@ -76,7 +75,7 @@ jobs:
7675
needs: [lint]
7776
strategy:
7877
matrix:
79-
pyver: ['3.6', '3.7', '3.8', '3.9', '3.10']
78+
pyver: ['3.7', '3.8', '3.9', '3.10']
8079
no-extensions: ['', 'Y']
8180
os: [ubuntu, macos, windows]
8281
exclude:
@@ -109,19 +108,17 @@ jobs:
109108
path: ${{ steps.pip-cache.outputs.dir }}
110109
restore-keys: |
111110
pip-ci-${{ runner.os }}-${{ matrix.pyver }}-{{ matrix.no-extensions }}-
112-
- name: Install cython
113-
if: matrix.no-extensions == ''
111+
- name: Install dependencies
114112
uses: py-actions/py-dependency-install@v3
115113
with:
116-
path: requirements/cython.txt
114+
path: requirements/ci.txt
117115
- name: Cythonize
118116
if: matrix.no-extensions == ''
119117
run: |
120118
make cythonize
121-
- name: Install dependencies
122-
uses: py-actions/py-dependency-install@v3
123-
with:
124-
path: requirements/dev.txt
119+
- name: Install itself
120+
run: |
121+
pip install .
125122
env:
126123
FROZENLIST_NO_EXTENSIONS: ${{ matrix.no-extensions }}
127124
- name: Run unittests
@@ -171,7 +168,7 @@ jobs:
171168
- name: Install cython
172169
uses: py-actions/py-dependency-install@v3
173170
with:
174-
path: requirements/cython.txt
171+
path: requirements/ci.txt
175172
- name: Cythonize
176173
run: |
177174
make cythonize
@@ -222,7 +219,7 @@ jobs:
222219
- name: Install cython
223220
uses: py-actions/py-dependency-install@v3
224221
with:
225-
path: requirements/cython.txt
222+
path: requirements/ci.txt
226223
- name: Cythonize
227224
run: |
228225
make cythonize

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SRC = frozenlist tests setup.py
66
all: test
77

88
.install-cython:
9-
pip install -r requirements/cython.txt
9+
pip install -r requirements/ci.txt
1010
touch .install-cython
1111

1212
frozenlist/%.c: frozenlist/%.pyx
@@ -15,7 +15,7 @@ frozenlist/%.c: frozenlist/%.pyx
1515
cythonize: .install-cython $(PYXS:.pyx=.c)
1616

1717
.install-deps: cythonize $(shell find requirements -type f)
18-
pip install -r requirements/dev.txt
18+
pip install -r requirements/ci.txt
1919
@touch .install-deps
2020

2121
lint: flake isort-check flake8
@@ -57,7 +57,7 @@ check_changes:
5757
./tools/check_changes.py
5858

5959
.develop: .install-deps $(shell find frozenlist -type f) .flake check_changes mypy
60-
# pip install -e .
60+
pip install -e .
6161
@touch .develop
6262

6363
test: .develop

requirements/ci-wheel.txt

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

requirements/ci.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
coverage==6.2
2+
cython==0.29.26
3+
flake8==4.0.1
4+
isort==5.10.1
15
mypy==0.931; implementation_name=="cpython"
2-
mypy-extensions==0.4.3; implementation_name=="cpython"
3-
4-
-r ci-wheel.txt
5-
-r doc.txt
6-
-e .
6+
pytest==6.2.5
7+
pytest-cov==3.0.0
8+
towncrier==21.3.0
9+
tox==3.24.5
10+
twine==3.7.1

requirements/cython.txt

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

requirements/dev.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
-r ci.txt
2-
-r towncrier.txt
3-
cherry_picker==2.1.0; python_version>="3.6"
1+
-e .
2+
-r dev.txt

requirements/doc-spelling.txt

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

requirements/doc.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
sphinx==4.4.0
2-
pygments>=2.1
31
aiohttp-theme==0.1.6
2+
sphinx==4.4.0
3+
sphinxcontrib-spelling==7.3.2; platform_system!="Windows"

requirements/flake.txt

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

requirements/towncrier.txt

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

0 commit comments

Comments
 (0)