ptipython-metapackage 0.9.0__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.
@@ -0,0 +1,28 @@
1
+ The 3-Clause BSD License
2
+
3
+ Copyright (c) 2024, Dmitry Meyer <me@undef.im>
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ * Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ * Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ * Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,26 @@
1
+ Metadata-Version: 2.1
2
+ Name: ptipython-metapackage
3
+ Version: 0.9.0
4
+ Summary: ptipython metapackage
5
+ Author-email: Dmitry Meyer <me@undef.im>
6
+ License: BSD-3-Clause
7
+ Project-URL: Homepage, https://github.com/un-def/ptipython-metapackage
8
+ Project-URL: Repository, https://github.com/un-def/ptipython-metapackage.git
9
+ Project-URL: Changelog, https://github.com/un-def/ptipython-metapackage/releases
10
+ Project-URL: Issues, https://github.com/un-def/ptipython-metapackage/issues
11
+ Keywords: ptipython,ptpython,ipython
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: BSD License
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: ptpython==2.0.6
22
+ Requires-Dist: ipython==7.34.0
23
+
24
+ # ptipython metapackage
25
+
26
+ ptpython + ipython = ptipython
@@ -0,0 +1,3 @@
1
+ # ptipython metapackage
2
+
3
+ ptpython + ipython = ptipython
@@ -0,0 +1,26 @@
1
+ Metadata-Version: 2.1
2
+ Name: ptipython-metapackage
3
+ Version: 0.9.0
4
+ Summary: ptipython metapackage
5
+ Author-email: Dmitry Meyer <me@undef.im>
6
+ License: BSD-3-Clause
7
+ Project-URL: Homepage, https://github.com/un-def/ptipython-metapackage
8
+ Project-URL: Repository, https://github.com/un-def/ptipython-metapackage.git
9
+ Project-URL: Changelog, https://github.com/un-def/ptipython-metapackage/releases
10
+ Project-URL: Issues, https://github.com/un-def/ptipython-metapackage/issues
11
+ Keywords: ptipython,ptpython,ipython
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: BSD License
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: ptpython==2.0.6
22
+ Requires-Dist: ipython==7.34.0
23
+
24
+ # ptipython metapackage
25
+
26
+ ptpython + ipython = ptipython
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ ptipython_metapackage.egg-info/PKG-INFO
5
+ ptipython_metapackage.egg-info/SOURCES.txt
6
+ ptipython_metapackage.egg-info/dependency_links.txt
7
+ ptipython_metapackage.egg-info/entry_points.txt
8
+ ptipython_metapackage.egg-info/requires.txt
9
+ ptipython_metapackage.egg-info/top_level.txt
10
+ tests/test_bump_metapackage_version.py
11
+ tests/test_compare_versions.py
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+ ipython = IPython:start_ipython
3
+ ptipython = ptpython.entry_points.run_ptipython:run
4
+ ptpython = ptpython.entry_points.run_ptpython:run
@@ -0,0 +1,2 @@
1
+ ptpython==2.0.6
2
+ ipython==7.34.0
@@ -0,0 +1,40 @@
1
+ [build-system]
2
+ requires = ["setuptools"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ptipython-metapackage"
7
+ version = "0.9.0"
8
+ description = "ptipython metapackage"
9
+ readme = "README.md"
10
+ license = {text = "BSD-3-Clause"}
11
+ authors = [
12
+ {name = "Dmitry Meyer", email = "me@undef.im"},
13
+ ]
14
+ classifiers = [
15
+ "Intended Audience :: Developers",
16
+ "Intended Audience :: Science/Research",
17
+ "License :: OSI Approved :: BSD License",
18
+ "Programming Language :: Python",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3 :: Only",
21
+ ]
22
+ keywords = ["ptipython", "ptpython", "ipython"]
23
+ requires-python = ">= 3.8"
24
+ dependencies = ["ptpython == 2.0.6", "ipython == 7.34.0"]
25
+
26
+ [project.scripts]
27
+ ptipython = "ptpython.entry_points.run_ptipython:run"
28
+ ptpython = "ptpython.entry_points.run_ptpython:run"
29
+ ipython = "IPython:start_ipython"
30
+
31
+ [project.urls]
32
+ Homepage = "https://github.com/un-def/ptipython-metapackage"
33
+ Repository = "https://github.com/un-def/ptipython-metapackage.git"
34
+ Changelog = "https://github.com/un-def/ptipython-metapackage/releases"
35
+ Issues = "https://github.com/un-def/ptipython-metapackage/issues"
36
+
37
+ [tool.setuptools]
38
+ include-package-data = false
39
+ packages = []
40
+ py-modules = []
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,13 @@
1
+ import pytest
2
+
3
+ from checker import bump_metapackage_version
4
+
5
+
6
+ @pytest.mark.parametrize(['metapackage_version', 'part_index', 'expected'], [
7
+ ((1, 6, 11), 0, (2, 0, 0)),
8
+ ((1, 6, 11), 1, (1, 7, 0)),
9
+ ((1, 6, 11), 2, (1, 6, 12)),
10
+ ])
11
+ def test(metapackage_version, part_index, expected):
12
+ assert bump_metapackage_version(
13
+ metapackage_version, part_index) == expected
@@ -0,0 +1,20 @@
1
+ import pytest
2
+
3
+ from checker import compare_versions
4
+
5
+
6
+ LATEST_VERSIONS = {'ptpython': (3, 0, 26), 'ipython': (8, 22, 2)}
7
+
8
+
9
+ @pytest.mark.parametrize(['our_versions', 'expected'], [
10
+ ({'ptpython': (3, 0, 26), 'ipython': (8, 22, 2)}, None),
11
+ ({'ptpython': (4, 0, 0), 'ipython': (8, 22, 2)}, None),
12
+ ({'ptpython': (4, 0, 0), 'ipython': (9, 0, 0)}, None),
13
+ ({'ptpython': (4, 0, 0), 'ipython': (8, 22, 0)}, 2),
14
+ ({'ptpython': (3, 0, 25), 'ipython': (8, 22, 1)}, 2),
15
+ ({'ptpython': (3, 0, 25), 'ipython': (8, 21, 0)}, 1),
16
+ ({'ptpython': (2, 1, 28), 'ipython': (8, 21, 0)}, 0),
17
+ ({'ptpython': (3, 0, 0), 'ipython': (7, 34, 1)}, 0),
18
+ ])
19
+ def test(our_versions, expected):
20
+ assert compare_versions(LATEST_VERSIONS, our_versions) == expected