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

Switch from setuptools to Hatch #239

Merged
merged 10 commits into from
Sep 19, 2022
Merged

Switch from setuptools to Hatch #239

merged 10 commits into from
Sep 19, 2022

Conversation

maresb
Copy link
Contributor

@maresb maresb commented Sep 15, 2022

No description provided.

@netlify
Copy link

netlify bot commented Sep 15, 2022

Deploy Preview for conda-lock ready!

Name Link
🔨 Latest commit 86d6971
🔍 Latest deploy log https://app.netlify.com/sites/conda-lock/deploys/63286394a179d200089ee922
😎 Deploy Preview https://deploy-preview-239--conda-lock.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@maresb
Copy link
Contributor Author

maresb commented Sep 15, 2022

I think we need to solve #235 in order to get the tests to pass.

But @mariusvniekerk, does this otherwise look good? There's obviously more to improve, but it seems to me like that can be done in separate PRs.

pyproject.toml Outdated Show resolved Hide resolved
]
readme = "README.md"
license = "MIT"
requires-python = ">=3.6"
Copy link
Contributor

Choose a reason for hiding this comment

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

fyi Hatchling is 3.7+ so builder job can't use that

Copy link
Collaborator

Choose a reason for hiding this comment

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

but hatch can still build for older pythons right? its just metadata

Copy link
Contributor

Choose a reason for hiding this comment

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

yes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, so we might need to adjust the workflows so that we build with 3.7+ before testing with 3.6.

But @mariusvniekerk, is there any benefit to supporting 3.6? Conda-forge stopped 3.6 builds some time ago. Plus, one could always condax install conda-lock to have it run in an isolated environment with modern Python.

pyproject.toml Outdated Show resolved Hide resolved
@@ -71,7 +70,6 @@ jobs:
echo "${PATH}"
which pip
which python
python -m pip install -r requirements.txt
Copy link
Collaborator

Choose a reason for hiding this comment

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

pretty sure we need this for the poetry test dep?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed it since requirements-dev.txt contains the line

-r requirements.txt

But perhaps we should instead remove that line and explicitly install those separately.

Or even better, we may want to leverage Hatch environments. But I'd prefer to do that in a separate PR. I'm trying to limit the current scope to switching from setuptools.

@maresb
Copy link
Contributor Author

maresb commented Sep 18, 2022

Rebased on #241

@maresb maresb marked this pull request as ready for review September 18, 2022 21:22
@mariusvniekerk
Copy link
Collaborator

Looks good in general, probably needs a rebase to get rid of the already added fixes for virtual packages

@maresb
Copy link
Contributor Author

maresb commented Sep 19, 2022

Awesome, thanks!!!

I have already rebased on those exact commits, so apart from the merge commit it should merge completely cleanly.

I'll rebase anyway on the merge commit, since it's no effort...

@maresb
Copy link
Contributor Author

maresb commented Sep 19, 2022

All green now. (Seems there is a sporadic crash on the Windows job.)

@mariusvniekerk
Copy link
Collaborator

Saw a sporadic crash on the osx on too on dev. Mostly nothing to be too worried about

@mariusvniekerk mariusvniekerk merged commit 235de0d into conda:main Sep 19, 2022
@maresb maresb deleted the hatch branch September 19, 2022 16:53
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.

3 participants