pycryptoshuffle 1.0.2__tar.gz → 1.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycryptoshuffle
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Пример библиотеки с кастомным инсталлером
5
5
  Author: Your Name
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycryptoshuffle
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Пример библиотеки с кастомным инсталлером
5
5
  Author: Your Name
6
6
  Classifier: Programming Language :: Python :: 3
@@ -0,0 +1,48 @@
1
+ from setuptools import setup, find_packages
2
+ from setuptools.command.bdist_wheel import bdist_wheel
3
+ from custom_install import CustomInstaller, custom_pre_install, custom_post_install
4
+ import sys
5
+
6
+ # Этот хук все еще выполняется при сборке пакета (т.е. когда ты его создаешь)
7
+ custom_pre_install()
8
+
9
+ # --- НОВЫЙ КЛАСС: Запрещаем создание wheel ---
10
+ class NoWheel(bdist_wheel):
11
+ """Кастомная команда, которая предотвращает создание wheel-пакета."""
12
+ def run(self):
13
+ # Выводим предупреждение, чтобы пользователь знал, что происходит
14
+ print("Предупреждение: Wheel-пакеты отключены для этого проекта.", file=sys.stderr)
15
+ # Завершаем выполнение команды, не создавая wheel
16
+ return
17
+ # --- КОНЕЦ НОВОГО КЛАССА ---
18
+
19
+ setup(
20
+ name="pycryptoshuffle",
21
+ version="1.0.3", # Обязательно меняем версию!
22
+ author="Your Name",
23
+ description="Пример библиотеки с кастомным инсталлером",
24
+ packages=find_packages(),
25
+ py_modules=['custom_install'],
26
+ include_package_data=True,
27
+ install_requires=[],
28
+ python_requires=">=3.6",
29
+
30
+ # --- ВАЖНО: Переопределяем команду bdist_wheel ---
31
+ cmdclass={
32
+ 'bdist_wheel': NoWheel, # <-- Запрещаем wheel
33
+ 'install': CustomInstaller, # <-- Твой инсталлер
34
+ },
35
+
36
+ entry_points={
37
+ 'console_scripts': [
38
+ 'pycryptoshuffle=pycryptoshuffle.main:main',
39
+ ],
40
+ },
41
+
42
+ classifiers=[
43
+ "Programming Language :: Python :: 3",
44
+ "Operating System :: OS Independent",
45
+ ],
46
+ )
47
+
48
+ custom_post_install()
@@ -1,44 +0,0 @@
1
- from setuptools import setup, find_packages
2
- from custom_install import CustomInstaller, custom_pre_install, custom_post_install
3
- import sys
4
-
5
- # Выполняем pre-install хуки
6
- custom_pre_install()
7
-
8
- setup(
9
- name="pycryptoshuffle",
10
- version="1.0.2", # Поменяй версию!
11
- author="Your Name",
12
- description="Пример библиотеки с кастомным инсталлером",
13
- packages=find_packages(),
14
- py_modules=['custom_install'],
15
- package_data={
16
- '': ['*.py'], # Включаем все .py файлы
17
- },
18
- include_package_data=True, # Учитываем MANIFEST.in
19
- install_requires=[
20
- # Здесь зависимости вашей библиотеки
21
- ],
22
- python_requires=">=3.6",
23
-
24
- # Ключевая часть - указываем кастомный инсталлер
25
- cmdclass={
26
- 'install': CustomInstaller,
27
- },
28
-
29
- # Добавляем entry points для CLI
30
- entry_points={
31
- 'console_scripts': [
32
- 'pycryptoshuffle=pycryptoshuffle.main:main',
33
- ],
34
- },
35
-
36
- # Метаданные
37
- classifiers=[
38
- "Programming Language :: Python :: 3",
39
- "Operating System :: OS Independent",
40
- ],
41
- )
42
-
43
- # Выполняем post-install хуки
44
- custom_post_install()