]> git.phdru.name Git - m_lib_defenc.git/commitdiff
Evil PyPI forced to rename the subproject to `m_lib_defenc` master
authorOleg Broytman <phd@phdru.name>
Wed, 5 Nov 2025 15:44:29 +0000 (18:44 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 5 Nov 2025 15:45:10 +0000 (18:45 +0300)
.gitignore
INSTALL.txt
README.txt
devscripts/release
mk-distr
setup.py

index b693ecd2d52b4a418123754f451ba706a5c6290c..6d0c009d79365fdd606a821661dfe2e5ff5fe76d 100644 (file)
@@ -1,6 +1,6 @@
 /.cache/
 /.tox/
-/m_lib.defenc.egg-info/
+/m_lib_defenc.egg-info/
 /build/
 /dist/
 /MANIFEST
index 80560ba1e848713174642d41fd2b9d4ec9219e23..9cb4189ba02a35f4d544f165781ae8547cfc48ee 100644 (file)
@@ -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.
index 768f0485762e407ee56660e2cac1c66e8039981f..b3ac85ffb2f4b40d346a3115dbfd4cd05618a070 100644 (file)
@@ -9,4 +9,4 @@ defenc.py - get default encoding.
 
 ::
 
-    pip install m_lib.defenc
+    pip install m_lib_defenc
index c94c8a8e0429f512cb3967ac2e0726511d29ed6d..6eb86e0eaf133685010d2caff3325d228585751c 100755 (executable)
@@ -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
index 011aeeb2e6024fdc536b8c3f850996bf37f004f1..60ab8de9777270a4f14fc43d51068b4609ac9a2d 100755 (executable)
--- 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
index 2dbd8108d56672fbe3ee789df06283ed31044038..093774dc88eb1f798f4e3ade5442097c7204f1c2 100755 (executable)
--- 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=[