py2hackCraft2 1.2.1__tar.gz → 1.2.2__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: py2hackCraft2
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Python client library for hackCraft2
5
5
  Home-page: https://github.com/0x48lab/hackCraft2-python
6
6
  Author: masafumi_t
@@ -52,7 +52,7 @@ pip install py2hackCraft2
52
52
  ## 使用方法
53
53
 
54
54
  ```python
55
- from py2hackCraft2.modules import Player, Volume, LocationFactory
55
+ from py2hackCraft.modules import Player, Volume, LocationFactory
56
56
 
57
57
  # プレイヤーの接続
58
58
  player = Player("your_name")
@@ -25,7 +25,7 @@ pip install py2hackCraft2
25
25
  ## 使用方法
26
26
 
27
27
  ```python
28
- from py2hackCraft2.modules import Player, Volume, LocationFactory
28
+ from py2hackCraft.modules import Player, Volume, LocationFactory
29
29
 
30
30
  # プレイヤーの接続
31
31
  player = Player("your_name")
@@ -0,0 +1,19 @@
1
+ """py2hackCraft2 は py2hackCraft のエイリアスパッケージ。
2
+
3
+ 配布パッケージ名(pip install 名)が ``py2hackCraft2`` のため、
4
+ ``import py2hackCraft2`` や ``from py2hackCraft2.modules import ...`` を
5
+ 期待する利用者が多い。実体は :mod:`py2hackCraft` パッケージであり、
6
+ ここではそのサブモジュールを ``py2hackCraft2`` 名前空間へ転送して、
7
+ pip 名と import 名のどちらでも動作するようにする。
8
+ """
9
+ import sys as _sys
10
+
11
+ import py2hackCraft.modules as _modules
12
+ import py2hackCraft.material as _material
13
+
14
+ # from py2hackCraft2.modules import ... / from py2hackCraft2.material import ... を可能にする
15
+ _sys.modules[__name__ + ".modules"] = _modules
16
+ _sys.modules[__name__ + ".material"] = _material
17
+
18
+ # import py2hackCraft2; py2hackCraft2.Player のようなトップレベル参照にも対応
19
+ from py2hackCraft.modules import * # noqa: F401,F403,E402
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: py2hackCraft2
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Python client library for hackCraft2
5
5
  Home-page: https://github.com/0x48lab/hackCraft2-python
6
6
  Author: masafumi_t
@@ -52,7 +52,7 @@ pip install py2hackCraft2
52
52
  ## 使用方法
53
53
 
54
54
  ```python
55
- from py2hackCraft2.modules import Player, Volume, LocationFactory
55
+ from py2hackCraft.modules import Player, Volume, LocationFactory
56
56
 
57
57
  # プレイヤーの接続
58
58
  player = Player("your_name")
@@ -4,12 +4,12 @@ setup.py
4
4
  py2hackCraft/__init__.py
5
5
  py2hackCraft/material.py
6
6
  py2hackCraft/modules.py
7
+ py2hackCraft2/__init__.py
7
8
  py2hackCraft2.egg-info/PKG-INFO
8
9
  py2hackCraft2.egg-info/SOURCES.txt
9
10
  py2hackCraft2.egg-info/dependency_links.txt
10
11
  py2hackCraft2.egg-info/requires.txt
11
12
  py2hackCraft2.egg-info/top_level.txt
12
- tests/__init__.py
13
13
  tests/test_backward_compat.py
14
14
  tests/test_connection_timeout.py
15
15
  tests/test_connection_url.py
@@ -0,0 +1,2 @@
1
+ py2hackCraft
2
+ py2hackCraft2
@@ -2,8 +2,8 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="py2hackCraft2",
5
- version="v1.2.1",
6
- packages=find_packages(),
5
+ version="v1.2.2",
6
+ packages=find_packages(exclude=["tests", "tests.*"]),
7
7
  install_requires=[
8
8
  "websocket-client>=1.6.0",
9
9
  ],
@@ -1,2 +0,0 @@
1
- py2hackCraft
2
- tests
File without changes
File without changes