gremlinpython 3.7.4__tar.gz → 3.7.5.dev1__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.
Files changed (44) hide show
  1. {gremlinpython-3.7.4/gremlinpython.egg-info → gremlinpython-3.7.5.dev1}/PKG-INFO +19 -9
  2. {gremlinpython-3.7.4/gremlin_python/process → gremlinpython-3.7.5.dev1/gremlin_python}/__init__.py +1 -0
  3. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/__version__.py +2 -2
  4. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/useragent.py +1 -1
  5. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/process/graph_traversal.py +49 -0
  6. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1/gremlinpython.egg-info}/PKG-INFO +19 -9
  7. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlinpython.egg-info/SOURCES.txt +3 -3
  8. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlinpython.egg-info/requires.txt +6 -0
  9. gremlinpython-3.7.5.dev1/pyproject.toml +76 -0
  10. gremlinpython-3.7.5.dev1/setup.cfg +4 -0
  11. gremlinpython-3.7.5.dev1/tests/test_statics.py +65 -0
  12. gremlinpython-3.7.4/setup.cfg +0 -11
  13. gremlinpython-3.7.4/setup.py +0 -91
  14. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/LICENSE +0 -0
  15. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/MANIFEST.in +0 -0
  16. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/NOTICE +0 -0
  17. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/README.rst +0 -0
  18. {gremlinpython-3.7.4/gremlin_python → gremlinpython-3.7.5.dev1/gremlin_python/driver}/__init__.py +0 -0
  19. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/aiohttp/__init__.py +0 -0
  20. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/aiohttp/transport.py +0 -0
  21. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/client.py +0 -0
  22. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/connection.py +0 -0
  23. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/driver_remote_connection.py +0 -0
  24. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/protocol.py +0 -0
  25. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/remote_connection.py +0 -0
  26. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/request.py +0 -0
  27. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/resultset.py +0 -0
  28. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/serializer.py +0 -0
  29. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/driver/transport.py +0 -0
  30. {gremlinpython-3.7.4/gremlin_python/driver → gremlinpython-3.7.5.dev1/gremlin_python/process}/__init__.py +0 -0
  31. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/process/anonymous_traversal.py +0 -0
  32. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/process/strategies.py +0 -0
  33. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/process/translator.py +0 -0
  34. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/process/traversal.py +0 -0
  35. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/statics.py +0 -0
  36. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/structure/__init__.py +0 -0
  37. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/structure/graph.py +0 -0
  38. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/structure/io/__init__.py +0 -0
  39. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/structure/io/graphbinaryV1.py +0 -0
  40. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/structure/io/graphsonV2d0.py +0 -0
  41. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/structure/io/graphsonV3d0.py +0 -0
  42. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlin_python/structure/io/util.py +0 -0
  43. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlinpython.egg-info/dependency_links.txt +0 -0
  44. {gremlinpython-3.7.4 → gremlinpython-3.7.5.dev1}/gremlinpython.egg-info/top_level.txt +0 -0
@@ -1,22 +1,33 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: gremlinpython
3
- Version: 3.7.4
3
+ Version: 3.7.5.dev1
4
4
  Summary: Gremlin-Python for Apache TinkerPop
5
- Home-page: https://tinkerpop.apache.org
6
- Maintainer: Apache TinkerPop
7
- Maintainer-email: dev@tinkerpop.apache.org
5
+ Maintainer-email: Apache TinkerPop <dev@tinkerpop.apache.org>
8
6
  License: Apache 2
9
- Platform: UNKNOWN
7
+ Project-URL: Homepage, https://tinkerpop.apache.org
10
8
  Classifier: Intended Audience :: Developers
11
9
  Classifier: License :: OSI Approved :: Apache Software License
12
10
  Classifier: Natural Language :: English
13
11
  Classifier: Programming Language :: Python :: 3
14
12
  Requires-Python: >=3.9
15
13
  Description-Content-Type: text/x-rst
16
- Provides-Extra: kerberos
17
- Provides-Extra: ujson
18
14
  License-File: LICENSE
19
15
  License-File: NOTICE
16
+ Requires-Dist: nest_asyncio
17
+ Requires-Dist: aiohttp<4.0.0,>=3.8.0
18
+ Requires-Dist: aenum<4.0.0,>=1.4.5
19
+ Requires-Dist: isodate<1.0.0,>=0.6.0
20
+ Requires-Dist: async-timeout<5.0.0,>=4.0.3
21
+ Provides-Extra: kerberos
22
+ Requires-Dist: kerberos<2.0.0,>=1.3.0; extra == "kerberos"
23
+ Provides-Extra: ujson
24
+ Requires-Dist: ujson>=2.0.0; extra == "ujson"
25
+ Provides-Extra: test
26
+ Requires-Dist: pytest<7.2.0,>=4.6.4; extra == "test"
27
+ Requires-Dist: radish-bdd==0.18.2; extra == "test"
28
+ Requires-Dist: PyHamcrest<3.0.0,>=1.9.0; extra == "test"
29
+ Requires-Dist: PyYAML>=5.3; extra == "test"
30
+ Dynamic: license-file
20
31
 
21
32
  .. Licensed to the Apache Software Foundation (ASF) under one
22
33
  .. or more contributor license agreements. See the NOTICE file
@@ -137,4 +148,3 @@ Update Vertex
137
148
 
138
149
  NOTE that versions suffixed with "rc" are considered release candidates (i.e. pre-alpha, alpha, beta, etc.) and
139
150
  thus for early testing purposes only. These releases are not suitable for production.
140
-
@@ -18,3 +18,4 @@
18
18
  #
19
19
 
20
20
  __author__ = 'Marko A. Rodriguez (http://markorodriguez.com)'
21
+ __version__ = '3.7.5.dev1'
@@ -16,5 +16,5 @@ KIND, either express or implied. See the License for the
16
16
  specific language governing permissions and limitations
17
17
  under the License.
18
18
  '''
19
- version = '3.7.4'
20
- timestamp = 1754672102
19
+ version = '?'
20
+ timestamp = 1739570012
@@ -18,7 +18,7 @@
18
18
  #
19
19
  import platform
20
20
 
21
- gremlin_version = "3.7.4" # DO NOT MODIFY - Configured automatically by Maven Replacer Plugin
21
+ gremlin_version = "3.7.5" # DO NOT MODIFY - Configured automatically by Maven Replacer Plugin
22
22
 
23
23
  def _generate_user_agent():
24
24
  application_name = "NotAvailable"
@@ -1866,10 +1866,18 @@ def aggregate(*args):
1866
1866
  return __.aggregate(*args)
1867
1867
 
1868
1868
 
1869
+ def all_(*args):
1870
+ return __.all_(*args)
1871
+
1872
+
1869
1873
  def and_(*args):
1870
1874
  return __.and_(*args)
1871
1875
 
1872
1876
 
1877
+ def any_(*args):
1878
+ return __.any_(*args)
1879
+
1880
+
1873
1881
  def as_(*args):
1874
1882
  return __.as_(*args)
1875
1883
 
@@ -1930,10 +1938,18 @@ def coin(*args):
1930
1938
  return __.coin(*args)
1931
1939
 
1932
1940
 
1941
+ def combine(*args):
1942
+ return __.combine(*args)
1943
+
1944
+
1933
1945
  def concat(*args):
1934
1946
  return __.concat(*args)
1935
1947
 
1936
1948
 
1949
+ def conjoin(*args):
1950
+ return __.conjoin(*args)
1951
+
1952
+
1937
1953
  def constant(*args):
1938
1954
  return __.constant(*args)
1939
1955
 
@@ -1962,6 +1978,10 @@ def dedup(*args):
1962
1978
  return __.dedup(*args)
1963
1979
 
1964
1980
 
1981
+ def difference(*args):
1982
+ return __.difference(*args)
1983
+
1984
+
1965
1985
  def disjunct(*args):
1966
1986
  return __.disjunct(*args)
1967
1987
 
@@ -2104,6 +2124,10 @@ def inject(*args):
2104
2124
  return __.inject(*args)
2105
2125
 
2106
2126
 
2127
+ def intersect(*args):
2128
+ return __.intersect(*args)
2129
+
2130
+
2107
2131
  def is_(*args):
2108
2132
  return __.is_(*args)
2109
2133
 
@@ -2160,6 +2184,10 @@ def mean(*args):
2160
2184
  return __.mean(*args)
2161
2185
 
2162
2186
 
2187
+ def merge(*args):
2188
+ return __.merge(*args)
2189
+
2190
+
2163
2191
  def merge_e(*args):
2164
2192
  return __.merge_e(*args)
2165
2193
 
@@ -2224,6 +2252,10 @@ def path(*args):
2224
2252
  return __.path(*args)
2225
2253
 
2226
2254
 
2255
+ def product(*args):
2256
+ return __.product(*args)
2257
+
2258
+
2227
2259
  def project(*args):
2228
2260
  return __.project(*args)
2229
2261
 
@@ -2403,6 +2435,7 @@ def values(*args):
2403
2435
  def where(*args):
2404
2436
  return __.where(*args)
2405
2437
 
2438
+ statics.add_static('E', E)
2406
2439
 
2407
2440
  statics.add_static('V', V)
2408
2441
 
@@ -2416,8 +2449,12 @@ statics.add_static('add_v', add_v)
2416
2449
 
2417
2450
  statics.add_static('aggregate', aggregate)
2418
2451
 
2452
+ statics.add_static('all_', all_)
2453
+
2419
2454
  statics.add_static('and_', and_)
2420
2455
 
2456
+ statics.add_static('any_', any_)
2457
+
2421
2458
  statics.add_static('as_', as_)
2422
2459
 
2423
2460
  statics.add_static('as_date', as_date)
@@ -2448,8 +2485,12 @@ statics.add_static('coalesce', coalesce)
2448
2485
 
2449
2486
  statics.add_static('coin', coin)
2450
2487
 
2488
+ statics.add_static('combine', combine)
2489
+
2451
2490
  statics.add_static('concat', concat)
2452
2491
 
2492
+ statics.add_static('conjoin', conjoin)
2493
+
2453
2494
  statics.add_static('constant', constant)
2454
2495
 
2455
2496
  statics.add_static('count', count)
@@ -2464,6 +2505,8 @@ statics.add_static('date_diff', date_diff)
2464
2505
 
2465
2506
  statics.add_static('dedup', dedup)
2466
2507
 
2508
+ statics.add_static('difference', difference)
2509
+
2467
2510
  statics.add_static('disjunct', disjunct)
2468
2511
 
2469
2512
  statics.add_static('drop', drop)
@@ -2532,6 +2575,8 @@ statics.add_static('index', index)
2532
2575
 
2533
2576
  statics.add_static('inject', inject)
2534
2577
 
2578
+ statics.add_static('intersect', intersect)
2579
+
2535
2580
  statics.add_static('is_', is_)
2536
2581
 
2537
2582
  statics.add_static('key', key)
@@ -2560,6 +2605,8 @@ statics.add_static('max_', max_)
2560
2605
 
2561
2606
  statics.add_static('mean', mean)
2562
2607
 
2608
+ statics.add_static('merge', merge)
2609
+
2563
2610
  statics.add_static('merge_e', merge_e)
2564
2611
 
2565
2612
  statics.add_static('merge_v', merge_v)
@@ -2592,6 +2639,8 @@ statics.add_static('out_v', out_v)
2592
2639
 
2593
2640
  statics.add_static('path', path)
2594
2641
 
2642
+ statics.add_static('product', product)
2643
+
2595
2644
  statics.add_static('project', project)
2596
2645
 
2597
2646
  statics.add_static('properties', properties)
@@ -1,22 +1,33 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: gremlinpython
3
- Version: 3.7.4
3
+ Version: 3.7.5.dev1
4
4
  Summary: Gremlin-Python for Apache TinkerPop
5
- Home-page: https://tinkerpop.apache.org
6
- Maintainer: Apache TinkerPop
7
- Maintainer-email: dev@tinkerpop.apache.org
5
+ Maintainer-email: Apache TinkerPop <dev@tinkerpop.apache.org>
8
6
  License: Apache 2
9
- Platform: UNKNOWN
7
+ Project-URL: Homepage, https://tinkerpop.apache.org
10
8
  Classifier: Intended Audience :: Developers
11
9
  Classifier: License :: OSI Approved :: Apache Software License
12
10
  Classifier: Natural Language :: English
13
11
  Classifier: Programming Language :: Python :: 3
14
12
  Requires-Python: >=3.9
15
13
  Description-Content-Type: text/x-rst
16
- Provides-Extra: kerberos
17
- Provides-Extra: ujson
18
14
  License-File: LICENSE
19
15
  License-File: NOTICE
16
+ Requires-Dist: nest_asyncio
17
+ Requires-Dist: aiohttp<4.0.0,>=3.8.0
18
+ Requires-Dist: aenum<4.0.0,>=1.4.5
19
+ Requires-Dist: isodate<1.0.0,>=0.6.0
20
+ Requires-Dist: async-timeout<5.0.0,>=4.0.3
21
+ Provides-Extra: kerberos
22
+ Requires-Dist: kerberos<2.0.0,>=1.3.0; extra == "kerberos"
23
+ Provides-Extra: ujson
24
+ Requires-Dist: ujson>=2.0.0; extra == "ujson"
25
+ Provides-Extra: test
26
+ Requires-Dist: pytest<7.2.0,>=4.6.4; extra == "test"
27
+ Requires-Dist: radish-bdd==0.18.2; extra == "test"
28
+ Requires-Dist: PyHamcrest<3.0.0,>=1.9.0; extra == "test"
29
+ Requires-Dist: PyYAML>=5.3; extra == "test"
30
+ Dynamic: license-file
20
31
 
21
32
  .. Licensed to the Apache Software Foundation (ASF) under one
22
33
  .. or more contributor license agreements. See the NOTICE file
@@ -137,4 +148,3 @@ Update Vertex
137
148
 
138
149
  NOTE that versions suffixed with "rc" are considered release candidates (i.e. pre-alpha, alpha, beta, etc.) and
139
150
  thus for early testing purposes only. These releases are not suitable for production.
140
-
@@ -2,8 +2,7 @@ LICENSE
2
2
  MANIFEST.in
3
3
  NOTICE
4
4
  README.rst
5
- setup.cfg
6
- setup.py
5
+ pyproject.toml
7
6
  gremlin_python/__init__.py
8
7
  gremlin_python/__version__.py
9
8
  gremlin_python/statics.py
@@ -37,4 +36,5 @@ gremlinpython.egg-info/PKG-INFO
37
36
  gremlinpython.egg-info/SOURCES.txt
38
37
  gremlinpython.egg-info/dependency_links.txt
39
38
  gremlinpython.egg-info/requires.txt
40
- gremlinpython.egg-info/top_level.txt
39
+ gremlinpython.egg-info/top_level.txt
40
+ tests/test_statics.py
@@ -7,5 +7,11 @@ async-timeout<5.0.0,>=4.0.3
7
7
  [kerberos]
8
8
  kerberos<2.0.0,>=1.3.0
9
9
 
10
+ [test]
11
+ pytest<7.2.0,>=4.6.4
12
+ radish-bdd==0.18.2
13
+ PyHamcrest<3.0.0,>=1.9.0
14
+ PyYAML>=5.3
15
+
10
16
  [ujson]
11
17
  ujson>=2.0.0
@@ -0,0 +1,76 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ [build-system]
19
+ requires = ["setuptools>=60", "wheel"]
20
+ build-backend = "setuptools.build_meta"
21
+
22
+ [project]
23
+ name = "gremlinpython"
24
+ dynamic = ["version"]
25
+ description = "Gremlin-Python for Apache TinkerPop"
26
+ readme = {file = "README.rst", content-type = "text/x-rst"}
27
+ license = {text = "Apache 2"}
28
+ maintainers = [{name = "Apache TinkerPop", email = "dev@tinkerpop.apache.org"}]
29
+ requires-python = ">=3.9"
30
+ dependencies = [
31
+ "nest_asyncio",
32
+ "aiohttp>=3.8.0,<4.0.0",
33
+ "aenum>=1.4.5,<4.0.0",
34
+ "isodate>=0.6.0,<1.0.0",
35
+ "async-timeout>=4.0.3,<5.0.0"
36
+ ]
37
+ classifiers = [
38
+ "Intended Audience :: Developers",
39
+ "License :: OSI Approved :: Apache Software License",
40
+ "Natural Language :: English",
41
+ "Programming Language :: Python :: 3"
42
+ ]
43
+
44
+ [project.urls]
45
+ Homepage = "https://tinkerpop.apache.org"
46
+
47
+ [project.optional-dependencies]
48
+ kerberos = ["kerberos>=1.3.0,<2.0.0"]
49
+ ujson = ["ujson>=2.0.0"]
50
+ test = [
51
+ "pytest>=4.6.4,<7.2.0",
52
+ "radish-bdd==0.18.2",
53
+ "PyHamcrest>=1.9.0,<3.0.0",
54
+ "PyYAML>=5.3"
55
+ ]
56
+
57
+ [tool.pytest.ini_options]
58
+ addopts = "--junitxml=./python-reports/TEST-native-python.xml -sv"
59
+ norecursedirs = [".*", "build", "dist", "CVS", "_darcs", "{arch}", "*.egg", "lib", "lib64"]
60
+ testpaths = ["tests"]
61
+
62
+ [tool.setuptools.dynamic]
63
+ version = {attr = "gremlin_python.__version__"}
64
+
65
+ [tool.setuptools.package-data]
66
+ "*" = ["LICENSE", "NOTICE"]
67
+
68
+ [tool.setuptools]
69
+ packages = [
70
+ "gremlin_python",
71
+ "gremlin_python.driver",
72
+ "gremlin_python.driver.aiohttp",
73
+ "gremlin_python.process",
74
+ "gremlin_python.structure",
75
+ "gremlin_python.structure.io"
76
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,65 @@
1
+ #
2
+ # Licensed to the Apache Software Foundation (ASF) under one
3
+ # or more contributor license agreements. See the NOTICE file
4
+ # distributed with this work for additional information
5
+ # regarding copyright ownership. The ASF licenses this file
6
+ # to you under the Apache License, Version 2.0 (the
7
+ # "License"); you may not use this file except in compliance
8
+ # with the License. You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing,
13
+ # software distributed under the License is distributed on an
14
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ # KIND, either express or implied. See the License for the
16
+ # specific language governing permissions and limitations
17
+ # under the License.
18
+ #
19
+
20
+ __author__ = 'Marko A. Rodriguez (http://markorodriguez.com)'
21
+
22
+ from gremlin_python import statics
23
+ from gremlin_python.process.traversal import Cardinality
24
+ from gremlin_python.process.traversal import P
25
+ from gremlin_python.process.traversal import Pop
26
+
27
+
28
+ class TestStatics(object):
29
+ def test_enums(self):
30
+ statics.load_statics(globals())
31
+ assert isinstance(list_, Cardinality)
32
+ assert list_ is Cardinality.list_
33
+ #
34
+ assert isinstance(eq(2), P)
35
+ assert eq(2) == P.eq(2)
36
+ #
37
+ assert isinstance(first, Pop)
38
+ assert first == Pop.first
39
+ statics.unload_statics(globals())
40
+
41
+ def test_singlebyte(self):
42
+ assert -128 == statics.SingleByte(-128)
43
+ assert 1 == statics.SingleByte(1)
44
+ assert 127 == statics.SingleByte(127)
45
+ try:
46
+ statics.SingleByte(128)
47
+ raise Exception("SingleByte should throw a value error if input is larger than 127")
48
+ except ValueError:
49
+ pass
50
+
51
+ try:
52
+ statics.SingleByte(-129)
53
+ raise Exception("SingleByte should throw a value error if input is smaller than -128")
54
+ except ValueError:
55
+ pass
56
+
57
+ def test_singlechar(self):
58
+ assert 'a' == statics.SingleChar('a')
59
+ assert chr(76) == statics.SingleChar(chr(76))
60
+ assert chr(57344) == statics.SingleChar(chr(57344))
61
+ try:
62
+ statics.SingleChar('abc')
63
+ raise Exception("SingleChar should throw a value error if input is not a single character string")
64
+ except ValueError:
65
+ pass
@@ -1,11 +0,0 @@
1
- [aliases]
2
- test = pytest
3
-
4
- [tool:pytest]
5
- addopts = --junitxml=./python-reports/TEST-native-python.xml -sv
6
- norecursedirs = '.*', 'build', 'dist', 'CVS', '_darcs', '{arch}', '*.egg' lib lib64
7
-
8
- [egg_info]
9
- tag_build =
10
- tag_date = 0
11
-
@@ -1,91 +0,0 @@
1
- """
2
- Licensed to the Apache Software Foundation (ASF) under one
3
- or more contributor license agreements. See the NOTICE file
4
- distributed with this work for additional information
5
- regarding copyright ownership. The ASF licenses this file
6
- to you under the Apache License, Version 2.0 (the
7
- "License"); you may not use this file except in compliance
8
- with the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing,
13
- software distributed under the License is distributed on an
14
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
- KIND, either express or implied. See the License for the
16
- specific language governing permissions and limitations
17
- under the License.
18
- """
19
- import codecs
20
- import os
21
- import time
22
- from setuptools import setup
23
-
24
- # Folder containing the setup.py
25
- root = os.path.dirname(os.path.abspath(__file__))
26
-
27
- # Path to __version__ module
28
- version_file = os.path.join(root, 'gremlin_python', '__version__.py')
29
-
30
- # Check if this is a source distribution.
31
- # If not create the __version__ module containing the version
32
- if not os.path.exists(os.path.join(root, 'PKG-INFO')):
33
- timestamp = int(os.getenv('TIMESTAMP', time.time() * 1000)) / 1000
34
- fd = codecs.open(version_file, 'w', 'utf-8')
35
- fd.write("'''")
36
- fd.write(__doc__)
37
- fd.write("'''\n")
38
- fd.write('version = %r\n' % os.getenv('VERSION', '?').replace('-SNAPSHOT', '.dev-%d' % timestamp))
39
- fd.write('timestamp = %d\n' % timestamp)
40
- fd.close()
41
- # Load version
42
- from gremlin_python import __version__
43
-
44
- version = __version__.version
45
-
46
- install_requires = [
47
- 'nest_asyncio',
48
- 'aiohttp>=3.8.0,<4.0.0',
49
- 'aenum>=1.4.5,<4.0.0',
50
- 'isodate>=0.6.0,<1.0.0',
51
- 'async-timeout>=4.0.3,<5.0.0'
52
- ]
53
-
54
- setup(
55
- name='gremlinpython',
56
- version=version,
57
- packages=['gremlin_python', 'gremlin_python.driver',
58
- 'gremlin_python.driver.aiohttp', 'gremlin_python.process',
59
- 'gremlin_python.structure', 'gremlin_python.structure.io'],
60
- license='Apache 2',
61
- url='https://tinkerpop.apache.org',
62
- description='Gremlin-Python for Apache TinkerPop',
63
- maintainer='Apache TinkerPop',
64
- maintainer_email='dev@tinkerpop.apache.org',
65
- long_description=codecs.open("README.rst", "r", "UTF-8").read(),
66
- long_description_content_type='text/x-rst',
67
- test_suite="tests",
68
- data_files=[("", ["LICENSE", "NOTICE"])],
69
- setup_requires=[
70
- 'pytest-runner==6.0.0',
71
- 'importlib-metadata<5.0.0'
72
- ],
73
- tests_require=[
74
- 'pytest>=4.6.4,<7.2.0',
75
- 'radish-bdd==0.13.4',
76
- 'PyHamcrest>=1.9.0,<3.0.0',
77
- 'PyYAML>=5.3'
78
- ],
79
- install_requires=install_requires,
80
- extras_require={
81
- 'kerberos': 'kerberos>=1.3.0,<2.0.0', # Does not install in Microsoft Windows
82
- 'ujson': 'ujson>=2.0.0'
83
- },
84
- classifiers=[
85
- "Intended Audience :: Developers",
86
- "License :: OSI Approved :: Apache Software License",
87
- "Natural Language :: English",
88
- "Programming Language :: Python :: 3"
89
- ],
90
- python_requires='>=3.9'
91
- )
File without changes