Skip to content

Commit

Permalink
Migrate to pyproject.toml (#111)
Browse files Browse the repository at this point in the history
* Migrate to `pyproject.toml`

* Drop Python 3.6 support
  • Loading branch information
oittaa authored Dec 20, 2021
1 parent 2b89fbf commit 7c6e789
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.7']
python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.7']
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -37,10 +37,10 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# The GitHub editor is 127 chars wide
flake8 . --count --max-complexity=10 --max-line-length=127 --statistics
- name: Install package
run: pip install .
- name: Test with pytest
run: |
pip install .
pytest --cov=gcp_storage_emulator --cov-report=xml tests/
run: pytest
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[build-system]
requires = [
"setuptools==60.0.0",
"wheel==0.37.0"
]

[tool.pytest.ini_options]
addopts = "--cov=gcp_storage_emulator --cov-report=xml --cov-branch"
testpaths = [
"tests"
]
8 changes: 2 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
url=URL,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
packages=find_packages(),
packages=PACKAGES,
zip_safe=False,
keywords=[
"Google Cloud Storage",
Expand All @@ -45,7 +45,6 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand All @@ -56,12 +55,9 @@
"gcp-storage-emulator=gcp_storage_emulator.__main__:main",
],
},
setup_requires=[
"wheel",
],
install_requires=[
"fs==2.4.14",
"google-crc32c==1.3.0",
],
python_requires=">=3.6",
python_requires=">=3.7",
)

0 comments on commit 7c6e789

Please sign in to comment.