Skip to content

Commit

Permalink
Try to overcome non-local packages skipping by PyPi using local deps
Browse files Browse the repository at this point in the history
  • Loading branch information
elchupanebrej committed Dec 31, 2023
1 parent e097819 commit aef3762
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
url = https://github.com/cucumber/compatibility-kit.git
[submodule "messages"]
path = messages
url = https://github.com/cucumber/messages
url = https://github.com/elchupanebrej/messages
[submodule "ci-environment"]
path = ci-environment
url = https://github.com/cucumber/ci-environment.git
Expand Down
2 changes: 1 addition & 1 deletion compatibility-kit
Submodule compatibility-kit updated 89 files
+1 −1 .github/workflows/release-github.yml
+4 −4 .github/workflows/release-npm.yml
+6 −13 .github/workflows/release-ruby.yml
+4 −4 .github/workflows/test-devkit.yml
+5 −11 .github/workflows/test-ruby.yml
+76 −14 CHANGELOG.md
+19 −0 CONTRIBUTING.md
+0 −0 LICENSE
+41 −20 README.md
+7 −4 devkit/README.md
+848 −84 devkit/package-lock.json
+3 −3 devkit/package.json
+17 −13 devkit/samples/attachments/attachments.feature
+97 −80 devkit/samples/attachments/attachments.feature.ndjson
+6 −19 devkit/samples/attachments/attachments.feature.ts
+ devkit/samples/attachments/cucumber.jpeg
+0 −1 devkit/samples/cdata/cdata.feature
+4 −4 devkit/samples/cdata/cdata.feature.ndjson
+1 −2 devkit/samples/cdata/cdata.feature.ts
+4 −3 devkit/samples/data-tables/data-tables.feature
+3 −3 devkit/samples/data-tables/data-tables.feature.ndjson
+4 −5 devkit/samples/examples-tables/examples-tables.feature
+11 −11 devkit/samples/examples-tables/examples-tables.feature.ndjson
+9 −8 devkit/samples/hooks/hooks.feature
+18 −18 devkit/samples/hooks/hooks.feature.ndjson
+2 −2 devkit/samples/hooks/hooks.feature.ts
+1 −1 devkit/samples/markdown/markdown.feature.md.ndjson
+2 −2 devkit/samples/minimal/minimal.feature.ndjson
+1 −2 devkit/samples/minimal/minimal.feature.ts
+8 −6 devkit/samples/parameter-types/parameter-types.feature
+6 −6 devkit/samples/parameter-types/parameter-types.feature.ndjson
+1 −2 devkit/samples/parameter-types/parameter-types.feature.ts
+5 −6 devkit/samples/pending/pending.feature
+15 −15 devkit/samples/pending/pending.feature.ndjson
+5 −5 devkit/samples/pending/pending.feature.ts
+7 −8 devkit/samples/retry/retry.feature
+14 −14 devkit/samples/retry/retry.feature.ndjson
+23 −21 devkit/samples/rules/rules.feature
+46 −44 devkit/samples/rules/rules.feature.ndjson
+13 −18 devkit/samples/rules/rules.feature.ts
+8 −8 devkit/samples/skipped/skipped.feature
+9 −9 devkit/samples/skipped/skipped.feature.ndjson
+3 −3 devkit/samples/skipped/skipped.feature.ts
+4 −6 devkit/samples/stack-traces/stack-traces.feature
+4 −4 devkit/samples/stack-traces/stack-traces.feature.ndjson
+7 −8 devkit/samples/undefined/undefined.feature
+7 −7 devkit/samples/undefined/undefined.feature.ndjson
+1 −1 devkit/samples/undefined/undefined.feature.ts
+1 −1 devkit/samples/unknown-parameter-type/unknown-parameter-type.feature
+2 −2 devkit/samples/unknown-parameter-type/unknown-parameter-type.feature.ndjson
+1 −1 devkit/samples/unknown-parameter-type/unknown-parameter-type.feature.ts
+2 −2 javascript/package-lock.json
+1 −1 javascript/package.json
+36 −0 ruby/.rubocop.yml
+50 −0 ruby/.rubocop_todo.yml
+2 −4 ruby/Gemfile
+6 −15 ruby/Rakefile
+1 −1 ruby/VERSION
+10 −3 ruby/cucumber-compatibility-kit.gemspec
+17 −30 ruby/features/attachments/attachments.feature.rb
+5 −0 ruby/features/cdata/cdata.feature.rb
+2 −0 ruby/features/data-tables/data-tables.feature.rb
+2 −0 ruby/features/examples-tables/examples-tables.feature.rb
+6 −9 ruby/features/hooks/hooks.feature.rb
+5 −2 ruby/features/minimal/minimal.feature.rb
+4 −4 ruby/features/parameter-types/parameter-types.feature.rb
+7 −5 ruby/features/pending/pending.feature.rb
+5 −7 ruby/features/retry/retry.feature.rb
+14 −15 ruby/features/rules/rules.feature.rb
+8 −6 ruby/features/skipped/skipped.feature.rb
+3 −1 ruby/features/stack-traces/stack-traces.feature.rb
+4 −2 ruby/features/undefined/undefined.feature.rb
+5 −3 ruby/features/unknown-parameter-type/unknown-parameter-type.feature.rb
+11 −0 ruby/lib/cck/helpers.rb
+64 −0 ruby/lib/cck/keys_checker.rb
+97 −0 ruby/lib/cck/messages_comparator.rb
+2 −54 ruby/lib/cucumber-compatibility-kit.rb
+55 −0 ruby/lib/cucumber/cucumber-compatibility-kit.rb
+2 −27 ruby/lib/keys_checker.rb
+2 −85 ruby/lib/messages_comparator.rb
+14 −32 ruby/lib/shared_examples.rb
+0 −74 ruby/spec/capture_warnings.rb
+67 −0 ruby/spec/cck/keys_checker_spec.rb
+29 −0 ruby/spec/cck/messages_comparator_spec.rb
+0 −72 ruby/spec/cucumber-compatibility-kit_spec.rb
+65 −0 ruby/spec/cucumber/cucumber-compatibility-kit_spec.rb
+0 −106 ruby/spec/keys_checker_spec.rb
+0 −26 ruby/spec/messages_comparator_spec.rb
+0 −20 ruby/templates/specs.rb
2 changes: 1 addition & 1 deletion gherkin
Submodule gherkin updated 148 files
2 changes: 1 addition & 1 deletion messages
29 changes: 2 additions & 27 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,9 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]
dependencies = [
"aiohttp",
"attrs",
"certifi",
"cucumber-expressions",
"decopatch",
"docopt-ng",
"filelock",
"gherkin-official>=24",
"importlib-metadata;python_version<'3.10.0'",
"importlib-resources",
"makefun",
"Mako",
"ordered_set",
"packaging",
"parse",
"parse_type>=0.6.0",
"py",
"pydantic>=2.0.3",
"pytest>=5.0",
"setuptools>=58",
"six>=1.16;python_version~='3.8'",
"cucumber-tag-expressions",
"typing-extensions;python_version<'3.11.0'",
"ci-environment@git+https://github.com/cucumber/ci-environment.git@main#subdirectory=python",
"messages@git+https://github.com/elchupanebrej/messages.git@main#subdirectory=python"
]
description = "BDD for pytest"
# This is needed until ci-environment&messages become regular PyPi packages
dynamic = ["dependencies"]
license = {file = "LICENSE.rst"}
maintainers = [
{name = "Konstantin Goloveshko", email = "[email protected]"}
Expand Down
36 changes: 36 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from pathlib import Path

from setuptools import setup

root_path = Path(__file__).parent

setup(
# This is needed until ci-environment&messages become regular PyPi packages
install_requires=[
f"ci-environment@file://{root_path}/ci-environment/python",
f"messages@file://{root_path}/messages/python",
"aiohttp",
"attrs",
"certifi",
"cucumber-expressions",
"decopatch",
"docopt-ng",
"filelock",
"gherkin-official>=24",
"importlib-metadata;python_version<'3.10.0'",
"importlib-resources",
"makefun",
"Mako",
"ordered_set",
"packaging",
"parse",
"parse_type>=0.6.0",
"py",
"pydantic>=2.0.3",
"pytest>=5.0",
"setuptools>=58",
"six>=1.16;python_version~='3.8'",
"cucumber-tag-expressions",
"typing-extensions;python_version<'3.11.0'",
],
)

0 comments on commit aef3762

Please sign in to comment.