Skip to content
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

Transform package management #288

Merged
merged 8 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
python: [3.7, 3.8, 3.9, "3.10"]
python: [3.7, 3.8, 3.9, "3.10", "3.11"]

steps:
- name: Checkout repo
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

35 changes: 19 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
deploy-patch: clean bumpversion-patch upload clean
deploy-patch: clean version-patch git-push-on-deploy upload clean

deploy-minor: clean bumpversion-minor upload clean
deploy-minor: clean version-minor git-push-on-deploy upload clean

deploy-major: clean bumpversion-major upload clean
deploy-major: clean version-major git-push-on-deploy upload clean

bumpversion-patch:
bumpversion patch
git push
git push --tags
# Version prior to update
VERSION := ${shell poetry version -s}

bumpversion-minor:
bumpversion minor
git push
git push --tags
version-patch:
poetry version patch

bumpversion-major:
bumpversion major
version-minor:
poetry version minor

version-major:
poetry version major

git-push-on-deploy:
git commit -m 'Bump version: $(VERSION) → $(shell poetry version -s)' pyproject.toml
git push
git tag v${shell poetry version -s}
git push --tags

upload:
python setup.py sdist bdist_wheel
twine upload dist/*
poetry build
poetry publish

help:
@echo "clean - remove all build, test, coverage and Python artifacts"
Expand Down Expand Up @@ -58,4 +61,4 @@ clean-pyc:
find . -name '__pycache__' -exec rm -fr {} +

install: clean
python setup.py install
poetry install
1,047 changes: 0 additions & 1,047 deletions Pipfile.lock

This file was deleted.

26 changes: 12 additions & 14 deletions humps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,23 @@
"""
Underscore-to-camelCase converter (and vice versa) for strings and dict keys in Python.
"""
import sys

from humps.main import (camelize, decamelize, dekebabize, depascalize,
is_camelcase, is_kebabcase, is_pascalcase,
is_snakecase, kebabize, pascalize)

if sys.version_info >= (3, 8): # pragma: no cover
from importlib.metadata import metadata as _importlib_metadata
else:
from importlib_metadata import metadata as _importlib_metadata # pragma: no cover

__title__ = "pyhumps"
__version__ = "3.8.0"
__version__ = _importlib_metadata(__title__)["version"]
__author__ = "Nick Ficano"
__license__ = "Unlicense License"
__copyright__ = "Copyright 2019 Nick Ficano"

from humps.main import (
camelize,
decamelize,
kebabize,
dekebabize,
pascalize,
depascalize,
is_camelcase,
is_kebabcase,
is_pascalcase,
is_snakecase,
)

__all__ = (
"camelize",
"decamelize",
Expand Down
2 changes: 1 addition & 1 deletion humps/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
import re

from collections.abc import Mapping
from collections.abc import Mapping # pylint: disable-msg=E0611

ACRONYM_RE = re.compile(r"([A-Z\d]+)(?=[A-Z\d]|$)")
PASCAL_RE = re.compile(r"([^\-_]+)")
Expand Down
Loading