Python-Russian icon indicating copy to clipboard operation
Python-Russian copied to clipboard

Курсы

Open eoganezov opened this issue 3 years ago • 0 comments

eoganezov avatar May 15 '22 14:05 eoganezov

Honestly it's something I've been meaning to do but just haven't gotten around to.

I'm not too familiar with the distribution side of packaging, so I'm not entirely sure what all it would require.

saforem2 avatar Oct 04 '21 20:10 saforem2

Honestly it's something I've been meaning to do but just haven't gotten around to.

Cool. :+1:

I'm not too familiar with the distribution side of packaging, so I'm not entirely sure what all it would require.

If you want to talk sometime I'd be very happy to help/give some advice on this. The short list of recommendations is:

I'm happy to discuss this here, over email, or on a call.

matthewfeickert avatar Oct 04 '21 21:10 matthewfeickert

Sorry, I've been busy the past couple of days at this workshop but let me try getting into it over the weekend and see how it goes.

I'm happy to discuss this here, over email, or on a call.

Depending on how it goes, if I run into any issues or have any questions about anything I'll definitely make sure to take you up on this, thanks!

saforem2 avatar Oct 06 '21 17:10 saforem2

Nothing to apologize about. :)

Depending on how it goes, if I run into any issues or have any questions about anything I'll definitely make sure to take you up on this, thanks!

Cool. I'm happy to look over any PRs as well. :+1:

matthewfeickert avatar Oct 06 '21 18:10 matthewfeickert

Bit delayed, but it's available on PyPI at l2hmc!

I still plan to setup CI / automated tests + releases so I'll keep this open for the time being as a (mostly as a reminder for myself)

Also I just wanted to say thanks for raising this in the first place!

Ultimately this led me to rewrite / restructure the base of the code to address the (many) issues that I had been stringing along with hacks and duct tape to that point, and I think the code is better as a result (plus I learned a lot!)

saforem2 avatar Apr 15 '22 16:04 saforem2

@matthewfeickert gonna close this now

honestly, this Issue is what initially pushed me to really learn / understand:

  • a lot of the pain points related to {packaging, environments, organization}
  • a bunch of general best practices[^pita] for writing libraries / applications in Python

which I now swear by and rant about to anyone willing to listen

so, I just wanted to say thank you again for this!! 😂

[^pita]: How not to drive yourself crazy in dependency hell

saforem2 avatar Sep 02 '24 17:09 saforem2

Nice! Yeah, you had a pretty gnarly stack to wrangle for the v0.13.0 release

https://github.com/saforem2/l2hmc-qcd/blob/0623676233ce632d45231a79ad92aa945b013d95/pyproject.toml#L24-L49

so I have some empathy for what that's like to deal with.

I would normally volunteer to help get this on conda-forge as well, but it seems that for the v0.13.0 release on PyPI that would require https://pypi.org/project/ptipython/ to get packaged for conda-forge first

$ grayskull pypi l2hmc



#### Initializing recipe for l2hmc (pypi) ####

Recovering metadata from pypi...
Starting the download of the sdist package l2hmc
l2hmc 100% Time:  0:00:01  11.0 MiB/s|####################################################################################################################################################################|
Checking for pyproject.toml
pyproject.toml found in /tmp/grayskull-l2hmc-xf0918d3/l2hmc-0.13.0/pyproject.toml
Recovering information from setup.py
Executing injected distutils...
Checking >> xarray 100% |##########################################################################################################################################################|[Elapsed Time: 0:00:12]
Recovering license info from spdx.org ...
License type: Apache-2.0
License file: ['LICENSE']
Build requirements:
  <none>
Host requirements:
  - python >=3.8
  - hatchling
  - pip
Run requirements:
  - python >=3.8
  - bokeh
  - mpi4py
  - nodejs
  - h5py
  - seaborn
  - xarray
  - joblib
  - celerite
  - pynvim
  - neovim
  - pyright
  - ipython
  - rich
  - hydra-core
  - wandb
  - arviz
  - hydra-colorlog
  - matplotx
  - accelerate
  - tqdm
  - ptipython  # this is red in the terminal printout
  - tensorflow
  - pytorch
  - horovod

RED: Package names not available on conda-forge
YELLOW: PEP-725 PURLs that did not map to known package
GREEN: Packages available on conda-forge

Maintainers:
   - matthewfeickert

#### Recipe generated on /home/feickert/Code/GitHub/forks/staged-recipes/recipes for l2hmc ####

and as there's some unpublished current dependencies / forks of dependencies at the moment

https://github.com/saforem2/l2hmc-qcd/blob/1b951ef75d9876e818ee2e38d443ece1af94350d/pyproject.toml#L25-L45

that currently breaks PyPI and conda-forge publishing.

But I'm glad that you're feeling like you're on the other side of the publishing workflow, and I'm also glad to see that you put in the hard work to actually get things working properly too! Nice work! :raised_hands:

matthewfeickert avatar Sep 02 '24 18:09 matthewfeickert