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

Modernize the package a bit #248

Merged
merged 20 commits into from
Apr 3, 2023
Merged

Modernize the package a bit #248

merged 20 commits into from
Apr 3, 2023

Conversation

ocefpaf
Copy link
Collaborator

@ocefpaf ocefpaf commented Apr 3, 2023

In this PR:

  • update PyPI GHA
  • moved as much as I can to pyproject.toml
  • remove setuptools_scm_git_archive to rely only on the tags to publish new versions
  • drop py37 from the CIs, this was already dropped by conda-forge
  • we should not depend on esmpy until we can get a wheel on PyPI xref.: Build wheels using the conda package conda-forge/esmpy-feedstock#72

@ocefpaf ocefpaf marked this pull request as ready for review April 3, 2023 17:59
@ocefpaf
Copy link
Collaborator Author

ocefpaf commented Apr 3, 2023

@huard I also want to implement linting with ruff but I'll leave that for another PR.

For now, we still cannot publish on PyPI b/c someone with admin rights to this repo needs to add the PyPI token to the repo secrets.

@huard
Copy link
Contributor

huard commented Apr 3, 2023

Ok, give me 5 minutes, I'll get the token.

@huard
Copy link
Contributor

huard commented Apr 3, 2023

Done, there is now a PYPI_TOKEN. Note that we cannot push as is to TestPyPI because I don't have the permissions for xesmf on testpypi.

.github/workflows/pypi.yaml Outdated Show resolved Hide resolved
Co-authored-by: David Huard <huard.david@ouranos.ca>
@ocefpaf
Copy link
Collaborator Author

ocefpaf commented Apr 3, 2023

Note that we cannot push as is to TestPyPI because I don't have the permissions for xesmf on testpypi.

I find testpypi an overkill. Hopefully we test the tarball enough in our CIs to upload directly to PyPI.

PS: if you want to tag a new release after this PR is merged we can test the autopublish.

@huard
Copy link
Contributor

huard commented Apr 3, 2023

Thanks !

@huard huard merged commit 924fe3f into pangeo-data:master Apr 3, 2023
@ocefpaf ocefpaf mentioned this pull request Apr 4, 2023
raphaeldussin pushed a commit that referenced this pull request Apr 24, 2023
* udpate PyPI GHA

* remove setuptools_scm_git_archive

* bump to 3.8 b/c that's what is used as min

* update and add config

* fix identation

* run pre-commit

* move some configs to pyproject.toml

* move setup.py to pyproject.toml

* don't use main

* fix typo

* let's rely only on the version file

* tweak for a smaller sdist

* fix license

* list tests

* don't list esmpy

* no numba on py311

* drop py37 from the CIS

* py38 as min

* run pre-commit

* Update .github/workflows/pypi.yaml

Co-authored-by: David Huard <huard.david@ouranos.ca>

---------

Co-authored-by: David Huard <huard.david@ouranos.ca>
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

2 participants