tee-ar-ex / trx-python

Python implementation of the TRX file format
https://tee-ar-ex.github.io/trx-python/
BSD 2-Clause "Simplified" License
22 stars 15 forks source link

Documentation and changes to installation/maintenance infrastructure #36

Closed arokem closed 2 years ago

arokem commented 2 years ago

For now, I have only started working on the infrastructure side of things, primarily simplifying the setup file in favor of more information in the setup.cfg and (newly added) pyproject.toml file.

Next:

arokem commented 2 years ago

This is ready for review. The GitHub Actions workflow is configured so that the website gets updated every time that we push a tag to the repository (e.g., for a release). This means that once this is merged, we won't have a website until we push a tag. I guess we've already been talking about cutting a first release over on #33, so that will give us another reason to do so.

The content of the webpage so far is pretty rudimentary and based primarily on the OHBM abstract. If you are interested in commenting on the content, you can find it here.

If you want to download the content to your machine to see how this gets rendered, you can grab the workflow build artifact here. Unzip the file and open the html index file and you can view the website in your browser. This sphinx theme can be customized a lot!

arokem commented 2 years ago

Thanks for taking a look and for the suggestions. Implemented in 7de747e

arokem commented 2 years ago

Hey @frheault : I saw that you're back from your travels. Any thoughts about this? Might be good to merge the infra changes before proceeding with other developments

frheault commented 2 years ago

@arokem I like it! This should be merged before #33 !

Then I will try to re-upload all data with the N+1 'correction' on Figshare with version 0.1 and then we should try to do a release candidate with the HTML, the N+1 'fix' and a working dataset on Figshare.

PS: 0.1 should be a tag on every trx repo if they work with the data on FigShare. I think that if we update the specification we could switch to 1., then 2. so we can follow along dataset and code together

arokem commented 2 years ago

Sounds good! Looks like I need to rebase this on top of master before it can be merged. Let me do that real quick.

arokem commented 2 years ago

Now rebased on master. Note in particular that I've slimmed down setup.py quite significantly. One thing that I was a little bit averse to is the control of installation through setting of environmental variables. I think that we can configure different installation options in setup.cfg instead.

arokem commented 2 years ago

Looks like there are still some installation issues here. I don't have time to figure this out today, so will have to look at again, maybe maybe maybe later this week.

arokem commented 2 years ago

Sorry for the long gap here. Looks like it's installing and testing fine now.

@frheault : do you have the bandwidth to take another look and maybe merge this?

Of note, when testing, DIPY and FURY are now installed from their release version. Is that going to be a problem? I can try fixing this on a subsequent PR, but would like to get the documentation online quickly, by merging this as is, if that's possible.

skoudoro commented 2 years ago

I think this PR is important to be merged as soon as possible.

Currently, when you create a new environment, trx-python failed to install because of missing libraries like packaging. Also, it is strange to have a version named 0.0.0.

@frheault, Can you have a closer look on this PR and go ahead to merge it. Thanks for your future feedback

frheault commented 2 years ago

I have a fresh Ubuntu 22.04 installed and this PR made the installation very easy, LGTM!