Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] bootstrap5 + icons #529

Merged
merged 13 commits into from
Nov 15, 2023
Merged

[WIP] bootstrap5 + icons #529

merged 13 commits into from
Nov 15, 2023

Conversation

delijati
Copy link
Contributor

@delijati delijati commented Nov 8, 2023

Changes to work with bootstrap5 and bootstrap icons.

@delijati
Copy link
Contributor Author

delijati commented Nov 8, 2023

We should also remove support for python < 3.10!?

@stevepiercy
Copy link
Member

When released, deform (and deformdemo) should support the currently supported versions of Python, which include 3.8-3.12, as well as the most recent PyPy that is available for testing in GitHub Actions.

@trollfot
Copy link

trollfot commented Nov 8, 2023

Should you need any help in getting this done, you can ping me.

@delijati
Copy link
Contributor Author

delijati commented Nov 9, 2023

Got also the functional tests working over here Pylons/deformdemo#124 ...

@delijati
Copy link
Contributor Author

delijati commented Nov 9, 2023

Here a preview (will turn if at some point) http://168.119.117.235:8523/

@goschtl
Copy link

goschtl commented Nov 13, 2023

@delijati @stevepiercy Any chance to cut a release with this changes? Is there anything i can help with?

cheers Christian

@delijati
Copy link
Contributor Author

@delijati @stevepiercy Any chance to cut a release with this changes? Is there anything i can help with?

cheers Christian

It would be nice if someone has the time and can go through the bs4 roadmap list and cross off what we already have https://github.com/Pylons/deform/issues?q=is%3Aissue+is%3Aopen+label%3ABS4

Copy link
Member

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor housekeeping change.

setup.py Outdated Show resolved Hide resolved
@stevepiercy
Copy link
Member

@delijati @goschtl for a release, I would do an alpha to start. That will allow us to get it out there for developer testing and cross off some of the issues tagged with bs4 with greater ease in subsequent alphas. I also set a milestone for 3.0 that needs some gardening.

Once I make an alpha release of deformdemo, we can adjust this PR to use that for the functional test suite.

@stevepiercy
Copy link
Member

@delijati would you please do two housekeeping tasks before I merge?

Thank you!

@delijati
Copy link
Contributor Author

@stevepiercy

* Sign https://github.com/Pylons/deformd/blob/main/CONTRIBUTORS.txt

I'm already in CONTRIBUTERS.txt (Josip Delić)

* Update docs and readme with supported Python versions (3.8, 3.9, 3.10, 3.11, and 3.12).

The only place i found was in index.rst. In the README.rst the versions are set by this link [1] and generated by the Trove classifiers in setup.py

[1] https://img.shields.io/pypi/pyversions/deform

Copy link
Member

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a more thorough review on this pass.

I think we can move stuff from deform/compat.py into core, now that we use Python 3 exclusively, and remove it.

docs/index.rst Outdated Show resolved Hide resolved
.github/workflows/ci-tests.yml Outdated Show resolved Hide resolved
@stevepiercy stevepiercy added this to the 3.0.0 milestone Nov 14, 2023
Copy link
Member

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@stevepiercy
Copy link
Member

Functional tests fail due to a recent change in Selenium 4.10.

https://github.com/Pylons/deform/actions/runs/6864014788/job/18665635754#step:7:457

TypeError: WebDriver.__init__() got an unexpected keyword argument 'desired_capabilities'

deform/setup.py

Lines 75 to 78 in f4da7df

if PY37MIN:
functional_testing_extras.extend(["selenium >= 4.0.0.b4"])
else:
functional_testing_extras.extend(["selenium >= 3.0, < 4.0"])

This should do the trick.

functional_testing_extras.extend(["selenium >= 4.0.0.b4, <4.10.0"])

In a later alpha, we can bump Selenium and update functional tests.

@goschtl
Copy link

goschtl commented Nov 14, 2023

@stevepiercy is there a roadmap or release-plan

where/how can we help to kick out a new release?

Christian

@stevepiercy
Copy link
Member

@stevepiercy is there a roadmap or release-plan

#529 (comment)

where/how can we help to kick out a new release?

Get CI to pass. #529 (comment)

@delijati
Copy link
Contributor Author

I opened a pull request to fix the last functional test https://github.com/Pylons/deformdemo/pull/125/files

@stevepiercy
Copy link
Member

Now the tests run, but we have one test failure:

https://github.com/Pylons/deform/actions/runs/6868633228/job/18679624126?pr=529#step:7:403

I restarted the test run to see if that is a flaky test.

We also have a couple of deprecation warnings. A couple of them are in deform, with the rest in other packages. We could add the deform items to a future alpha release, and the others as issues in their repositories. I'll circle back on this PR and create issues as needed.

https://github.com/Pylons/deform/actions/runs/6868633228/job/18679624126?pr=529#step:7:405

@stevepiercy
Copy link
Member

@delijati this test still fails.

https://github.com/Pylons/deform/actions/runs/6868633228/job/18683098188#step:7:350

Strange that it works in deformdemo, but not deform... 🤔

Copy link
Member

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. We need that one test in CI to pass.

@delijati
Copy link
Contributor Author

Another PR in deformdemo Pylons/deformdemo#126

@stevepiercy
Copy link
Member

Merged the deformdemo PR, restarted CI, let's see what happens. 🤞

@stevepiercy
Copy link
Member

@delijati
Copy link
Contributor Author

|-( i hate selenium tests ... looking into it

@delijati
Copy link
Contributor Author

@stevepiercy ok got it working locally https://github.com/Pylons/deformdemo/pull/127/files

@stevepiercy
Copy link
Member

Restarted failed CI. 🤞

@delijati
Copy link
Contributor Author

I will add this [1] to the tests if possible ... firefox does not scroll |-(

[1] https://stackoverflow.com/a/52045231/1154966

@delijati
Copy link
Contributor Author

Added manual scroll to be in viewport of the button Pylons/deformdemo#128

@stevepiercy
Copy link
Member

Success! I'll merge now, and cut a 3.0.0a release later this week. Thank you for your work on this!

@stevepiercy stevepiercy merged commit fdc43d5 into Pylons:main Nov 15, 2023
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants