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

ADD LabJackPython 4-24-2014 #2213

Merged
merged 11 commits into from
Sep 1, 2017
Merged

ADD LabJackPython 4-24-2014 #2213

merged 11 commits into from
Sep 1, 2017

Conversation

kastman
Copy link
Contributor

@kastman kastman commented Jan 15, 2017

This has a non-PEP440 compliant version number so it may fail, but let’s try it.

This has a non-PEP440 compliant version number so it may fail, but let’s try it.
@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/labjackpython) and found it was in an excellent condition.

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I wanted to let you know that I linted all conda-recipes in your PR (recipes/labjackpython) and found some lint.

Here's what I've got...

For recipes/labjackpython:

  • Failed to even lint the recipe (might be a conda-smithy bug) 😢

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/labjackpython) and found it was in an excellent condition.

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I was trying to look for recipes to lint for you, but couldn't find any.
Please ping the 'conda-forge/core' team (using the @ notation in a comment) if you believe this is a bug.

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipes/labjackpython) and found it was in an excellent condition.

build:
- python
run:
- python
Copy link
Member

Choose a reason for hiding this comment

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

Indented to 4 spaces, but everything else is 2. Could we please pick an indent level and stick with it?

home: http://labjack.com/support/labjackpython
summary: "Python module for communicating with the LabJack U3/U6/UE9/U12."
license: MIT X-11
license_family: MIT
Copy link
Member

Choose a reason for hiding this comment

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

License file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The License is included at the end of the Readme. Just the README file as the license_file? Copy the license into a new file in the conda recipe folder?

Copy link
Member

Choose a reason for hiding this comment

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

Please raise an issue upstream and ask for a proper license file. This makes it easier for people to determine how the code is licensed. Also please ask that it gets included in the MANIFEST.in. This will help with packaging the license file when the project starts making PyPI releases.

{% set name = "LabJackPython" %}
{% set org = "labjack" %}
{% set upstreamversion = "4-24-2014" %}
{% set version = "20140424" %}
Copy link
Member

Choose a reason for hiding this comment

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

Would be good if we could determine one of these programmatically from the other. That way there is less chance of a having a mismatch in a release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed - that would be useful. I looked at strftime formatting in jinja but didn't see any obvious way to do this, and versions are fairly infrequent, so don't think doing it separately here is the worst thing in the world. Can you think of a better way to get dates into jinja?

Copy link
Member

Choose a reason for hiding this comment

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

I'm probably too lazy to be that clever. Would just do something like "."join(upstreamversion.split("-")[::-1]) in Python. Probably needs some tweaks for Jinja. Having . are very important as it makes this PEP 440 compatible. Also it may make pinning and version comparison easier later as conda supports this..

Copy link
Member

Choose a reason for hiding this comment

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

about:
home: http://labjack.com/support/labjackpython
summary: "Python module for communicating with the LabJack U3/U6/UE9/U12."
license: MIT X-11
Copy link
Member

Choose a reason for hiding this comment

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

Normally we just say MIT. Though this is up to you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks - I cleaned up the version with . to be PEP440 compatible, but I couldn't find a clean way to run straight python in jinja without doing some weird macroing/filtering stuff (although to be fair I didn't look that hard).

Do you know how to run vanilla python directly? Think that just hardcoding will be sufficient, until the upstream version gets fixed (a la the xref)?

@scopatz
Copy link
Member

scopatz commented Sep 1, 2017

Remaining issues can be fixed in the feedstock

@scopatz scopatz merged commit fd12107 into conda-forge:master Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants