-
Notifications
You must be signed in to change notification settings - Fork 38
Add Poetry #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Poetry #15
Changes from all commits
d14bf24
91306fb
7ce7fbd
7d61985
bff6f3f
310ca2b
dbbb053
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: publish package on pypi | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
build-and-publish-test: | ||
name: Build and publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- uses: snok/install-poetry@v1.1.6 | ||
- name: Publish to test-pypi | ||
run: | | ||
poetry config repositories.test https://test.pypi.org/legacy/ | ||
poetry config pypi-token.test ${{ secrets.TEST_PYPI_TOKEN }} | ||
poetry publish --build --no-interaction --repository test | ||
build-and-publish: | ||
needs: build-and-publish-test | ||
name: Build and publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- uses: snok/install-poetry@v1.1.6 | ||
- name: Publish to pypi | ||
run: | | ||
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | ||
poetry publish --build --no-interaction |
This file was deleted.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,58 @@ | ||
[tool.poetry] | ||
name = "pytest-split" | ||
version = "0.2.1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How is this updated? Manually? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah so when I update a package I would manually indent the version here and publish a release in the github repo 🙂 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if there's some way to get the version from git tags with poetry 🤔 But yeah, I can look into that later. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've not used it, but this popped up in my feed a few weeks back https://github.com/tiangolo/poetry-version-plugin There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you want to add this in a follow-up PR you'd just need to change the test and publish action to this as well, since it requires >= 1.2.0a1 - name: Install poetry
uses: snok/install-poetry@v1.1.6
with:
version: 1.2.0a1
virtualenvs-in-project: true
|
||
description = "Pytest plugin for splitting test suite based on test execution time" | ||
homepage = 'https://github.com/jerry-git/pytest-split' | ||
repository = 'https://github.com/jerry-git/pytest-split' | ||
authors = ["Jerry Pussinen <jerry.pussinen@gmail.com>"] | ||
maintainers = [] | ||
readme = 'README.md' | ||
keywords = ['pytest', 'plugin', 'split', 'tests'] | ||
packages = [{ include = 'src/pytest_split' }] | ||
license = "MIT" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Framework :: Pytest", | ||
"Typing :: Typed", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
pytest = "^5 | ^6" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest-cov = "^2.12.1" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry.plugins.pytest11] | ||
pytest-split = "src.pytest_split.plugin" | ||
|
||
[tool.black] | ||
line-length = 120 | ||
include = '\.pyi?$' | ||
|
||
[tool.coverage.run] | ||
source = ["src/pytest_split/*"] | ||
omit = [] | ||
branch = true | ||
|
||
[tool.coverage.report] | ||
show_missing = true | ||
skip_covered = true | ||
exclude_lines = [ | ||
'if TYPE_CHECKING:', | ||
] | ||
|
||
[tool.isort] | ||
profile = 'black' | ||
line_length = 120 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
from ._version import version as __version__ | ||
|
||
__all__ = ("__version__",) | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍