From: Oleg Broytman Date: Wed, 5 Nov 2025 15:44:29 +0000 (+0300) Subject: Evil PyPI forced to rename the subproject to `m_lib_defenc` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=m_lib_defenc.git Evil PyPI forced to rename the subproject to `m_lib_defenc` --- diff --git a/.gitignore b/.gitignore index b693ecd..6d0c009 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ /.cache/ /.tox/ -/m_lib.defenc.egg-info/ +/m_lib_defenc.egg-info/ /build/ /dist/ /MANIFEST diff --git a/INSTALL.txt b/INSTALL.txt index 80560ba..9cb4189 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -1,4 +1,4 @@ -m_lib.defenc requires Python 2.7 or 3.4+. +m_lib_defenc requires Python 2.7 or 3.4+. Installation script setup.py requires setuptools. @@ -6,15 +6,15 @@ Installation using pip: System-wide: - sudo pip install m_lib.defenc + sudo pip install m_lib_defenc User mode: - pip install --user m_lib.defenc + pip install --user m_lib_defenc Virtual environments: - pip install m_lib.defenc + pip install m_lib_defenc Installation from sources: @@ -28,6 +28,6 @@ Installation from sources: python setup.py install --user -Option '--user' installs m_lib.defenc into +Option '--user' installs m_lib_defenc into $HOME/.local/lib/python$MAJOR.$MINOR/site-packages/ where python finds it automatically. diff --git a/README.txt b/README.txt index 768f048..b3ac85f 100644 --- a/README.txt +++ b/README.txt @@ -9,4 +9,4 @@ defenc.py - get default encoding. :: - pip install m_lib.defenc + pip install m_lib_defenc diff --git a/devscripts/release b/devscripts/release index c94c8a8..6eb86e0 100755 --- a/devscripts/release +++ b/devscripts/release @@ -9,15 +9,8 @@ python setup.py build_py && python setup.py build && python setup.py sdist && -rv=$(python setup.py --version) -if [ -f dist/m_lib.defenc-$rv.tar.gz ]; then - cd dist && - mv m_lib.defenc-$rv.tar.gz m_lib_defenc-$rv.tar.gz && - cd .. -fi && - find build -name '*.py[co]' -delete && python setup.py bdist_wheel --universal && twine upload --disable-progress-bar --skip-existing dist/* && -exec rm -rf build dist m_lib.defenc.egg-info +exec rm -rf build dist m_lib_defenc.egg-info diff --git a/mk-distr b/mk-distr index 011aeeb..60ab8de 100755 --- a/mk-distr +++ b/mk-distr @@ -2,9 +2,9 @@ umask 022 && -git archive --format=tar --prefix=m_lib.defenc/ "${1:-HEAD}" | +git archive --format=tar --prefix=m_lib_defenc/ "${1:-HEAD}" | (cd "$HOME/tmp" && exec tar xf -) && -cd "$HOME/tmp/m_lib.defenc" && +cd "$HOME/tmp/m_lib_defenc" && python setup.py sdist --formats=bztar && -cd dist && mv m_lib.defenc-*.tar.bz2 ../.. && cd ../.. && exec rm -rf m_lib.defenc +cd dist && mv m_lib_defenc-*.tar.bz2 ../.. && cd ../.. && exec rm -rf m_lib_defenc diff --git a/setup.py b/setup.py index 2dbd810..093774d 100755 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup setup( - name = "m_lib.defenc", + name = "m_lib_defenc", version = "1.1.1", description = "Get default encoding", long_description = "Get default encoding. A part of Broytman Library for Python, Copyright (C) 1996-2025 PhiloSoft Design", @@ -13,8 +13,8 @@ setup( url = "https://phdru.name/Software/Python/#m_lib", project_urls={ 'Homepage': 'https://phdru.name/Software/Python/#m_lib', - 'Download': 'https://pypi.org/project/m_lib.defenc/', - 'Git repo': 'https://git.phdru.name/m_lib.defenc.git/', + 'Download': 'https://pypi.org/project/m_lib_defenc/', + 'Git repo': 'https://git.phdru.name/m_lib_defenc.git/', }, license = "GPL", classifiers=[