Skip to content

Commit

Permalink
feat: switch to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
SlashGordon committed Nov 14, 2023
1 parent 46efdb1 commit 6e559c3
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 136 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
run: pip install poetry
- name: Run tests
run: tox
run: poetry run pytest tests/ --junitxml test-results/test.xml --cov src/pysymbolscanner --cov-report term-missing
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
run: pip install poetry
- name: Run tests
run: |
tox
poetry run pytest tests/ --junitxml test-results/test.xml --cov src/pysymbolscanner --cov-report term-missing
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
run: pip install poetry
- name: Run tests
run: |
tox
poetry run pytest tests/ --junitxml test-results/test.xml --cov src/pysymbolscanner --cov-report term-missing
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
Expand Down
45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[tool.poetry]
name = "pysymbolscanner"
version = "1.12.1"
description = "wiki stock information crawler"
authors = ["SlashGordon <slash.gordon.dev@gmail.com>"]
license = "MIT License"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
PyYAML = "6.0"
wptools = "0.4.17"
wikipedia = "1.4.0"
pandas = "1.5.1"
pycountry = "22.3.5"
Unidecode = "1.3.6"
uplink = "0.9.7"
pytickersymbols = "^1.13.0"
toolz = "^0.12.0"

[tool.poetry.group.dev.dependencies]
wheel = "^0.41.3"
pytest = "^7.4.3"
pytest-cov = "^4.1.0"
flake8 = "^6.1.0"
autopep8 = "^2.0.4"
black = "^23.11.0"
parameterized = "^0.9.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.semantic_release]
version_variable = [
"src/pysymbolscanner/__init__.py:__version__",
"pyproject.toml:version"
]
branch = "master"
upload_to_pypi = true
upload_to_release = true
build_command = "pip install poetry && poetry build"
commit_version_number = True
commit_subject = release {version} [skip ci]
commit_message = "chore(release): {new_version} [skip ci]"
commit_author = release-bot <release@travis>
7 changes: 0 additions & 7 deletions requirements-dev.txt

This file was deleted.

9 changes: 0 additions & 9 deletions requirements.txt

This file was deleted.

7 changes: 0 additions & 7 deletions setup.cfg

This file was deleted.

71 changes: 0 additions & 71 deletions setup.py

This file was deleted.

36 changes: 0 additions & 36 deletions tox.ini

This file was deleted.

0 comments on commit 6e559c3

Please sign in to comment.