Skip to content

Commit

Permalink
Merge pull request #30 from feenes/dvl/klausf/add_pypjt.yml
Browse files Browse the repository at this point in the history
switch to pyproject.toml + bump version to 0.1.3
  • Loading branch information
quentinql authored Sep 26, 2024
2 parents 84e0535 + 88b00ac commit 91ebaf8
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 80 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ jobs:
- name: flake
if: ${{ matrix.python-version < 'pypy' }}
run: |
python -m flake8 mytb setup.py
python -m flake8 mytb
- name: pytest
run: |
python -m pip install -r requirements/all.txt
pytest
- name: can_make_dist
run: |
python -m pip install poetry
poetry install
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
dist
build
.eggs
mytb.egg-info
*.pyc
.*.swp
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# [Changelog](https://github.com/feenes/mytb/releases)
## [v0.1.3](https://github.com/feenes/mytb/compare/v0.1.2...v0.1.3)
* Some fixes for py3.8+ versions (tzlocal.ZoneInfo.localize + yaml.load Loader parameter)
* Move project topyproject.toml + poetry
## [v0.1.2](https://github.com/feenes/mytb/compare/v0.1.1...v0.1.2)
* removed dependency from minibelt (now included as mytb.minibelt)
* isort on more source files
Expand Down
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Who's using mytb

Please contact us if you want to be referenced

* MHComm ( https://mhcomm.fr ) for some of their software
Projects, that I know of are

* MHComm ( https://mhcomm.fr ) for most of their python projects
* The timon project ( https://github.com/feenes/timon )

49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
[build-system]
requires = ["poetry-core>=1.8"]
build-backend = "poetry.core.masonry.api"


[tool.poetry]
name = "mytb"
version = "0.1.3"
description = "my toolbox for everyday python projects"
authors = ["Teledomic <[email protected]>"]
license = "MIT"
homepage = "https://github.com/feenes/mytb"
repository = "https://github.com/feenes/mytb.git"
readme = "README.rst"


[tool.poetry.dependencies]
python = ">=3.6,<4"
unidecode = "*"
dateutils = {version = "*", optional = true}
ddt = {version = "*", optional = true}
pytz = {version = "*", optional = true}
pyyaml = {version = "*", optional = true}
tzlocal = {version = "*", optional = true}


# TODO: pytest-tempdir is not maintained, pls don't use it and think how to change it
[tool.poetry.dev-dependencies]
pytest = "^6.0"
pytest-tempdir = "^2019.9.16"


[tool.poetry.scripts]
mytb = "mytb.commands:main"


[tool.poetry.extras]
minimal = []
all = ["dateutils", "ddt", "pytz", "pyyaml", "tzlocal"]
date = ["dateutils", "pytz", "tzlocal"]
gitlab = ["ddt", "pyyaml"]



[build]
sdist = {}


[tool.isort]
profile = "black"
force_single_line = true
Expand All @@ -10,3 +58,4 @@ known_mytb = ["mytb"]

[tool.black]
line-length = 80

12 changes: 0 additions & 12 deletions setup.cfg

This file was deleted.

66 changes: 0 additions & 66 deletions setup.py

This file was deleted.

0 comments on commit 91ebaf8

Please sign in to comment.