-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8402b9
commit f22fd15
Showing
11 changed files
with
58 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- run: pipx install poetry | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
- run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
sed -i -E "s#VERSION#${GITHUB_REF/refs\/tags\//}#g" ./setup.py | ||
sed -i -E "s#VERSION#${GITHUB_REF/refs\/tags\//}#g" ./bucketstore.py | ||
- env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USER }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
python-version: '3.11' | ||
cache: 'poetry' | ||
- name: build and publish | ||
run: poetry publish --build -n -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,11 @@ jobs: | |
name: python ${{ matrix.python-version }} tests | ||
steps: | ||
- uses: actions/[email protected] | ||
- run: pipx install poetry | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- run: | | ||
pip install -r requirements.txt | ||
pip install -r requirements.dev.txt | ||
- run: tox -e py | ||
cache: 'poetry' | ||
- run: poetry install | ||
- run: poetry run pytest ./tests -s --cov . --cov-report html --cov-report term --cov-report xml:coverage.xml --junitxml=report.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ htmlcov/ | |
.cache | ||
nosetests.xml | ||
coverage.xml | ||
report.xml | ||
*,cover | ||
.hypothesis/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ let | |
nixpkgs-fmt | ||
]; | ||
python = [ | ||
poetry | ||
ruff | ||
(python311.withPackages (p: with p; [ | ||
boto3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,46 @@ | ||
[tool.poetry] | ||
name = "bucketstore" | ||
version = "0.3.0" | ||
description = "A simple library for interacting with Amazon S3." | ||
readme = "README.md" | ||
authors = ["jacobi petrucciani <[email protected]>"] | ||
packages = [{ include = "bucketstore.py" }] | ||
homepage = "https://github.com/jpetrucciani/bucketstore" | ||
repository = "https://github.com/jpetrucciani/bucketstore" | ||
|
||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"License :: OSI Approved :: MIT License", | ||
] | ||
|
||
|
||
[tool.poetry.dependencies] | ||
python = ">= 3.7" | ||
boto3 = ">= 1.20.0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
moto = ">= 5.0.0" | ||
ptpython = ">= 3.0.26" | ||
pytest = "^7.4.3" | ||
pytest-cov = "^4.1.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.black] | ||
line-length = 100 | ||
target-version = ["py311"] | ||
|
||
[tool.ruff] | ||
line-length = 100 | ||
lint.select = [ | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.