-
Notifications
You must be signed in to change notification settings - Fork 354
Updated setup.py with OCP being available on PyPi now #1085
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
Merged
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d3c1a5c
Updated setup.py with OCP being available on PyPi now
jmwright f925063
Integrated suggestions and added back version number.
jmwright 29268a7
Black formatting and added black/click to dev dependencies
jmwright dad25a1
Trying to get ReadTheDocs to ignore setup.py
jmwright fa5ec03
Trying to get ReadTheDocs to stop including setup.py dependencies
jmwright 0796bb2
Commented out editable option as it seemed to be causing conda to att…
jmwright c9da2c2
Trying to enforce versions to get setup.py and conda to play well tog…
jmwright fac311b
Fixing merge conflict
jmwright f36e871
Merge branch 'master' of github.com:CadQuery/cadquery into setup
jmwright b7d069c
Trying to enforce a pip version
jmwright b769a63
Took version pin back off of pip
jmwright 3c9fe3a
Trying the editable install with no-deps to try to decouple things
jmwright 1de937c
Still trying to decouple things by not installing deps in conda env
jmwright 433d5bf
Passing no-deps option to pip in a different way
jmwright e3a19c4
Trying to use the RTD env varaible to limit the dependencies
jmwright 44413e5
Trying to protect against the env variable not being present
jmwright ddceab1
Black formatting and AppVeyor handling
jmwright 58b2810
Added scm version tracking
jmwright d09334c
Trying to fix package errors in CI with another selective require
jmwright 7197eea
Ignoring SCM version reqs for Azure
jmwright dafd8e7
Trying to find an environment variable that is available
jmwright e23d8a9
Printing os.environ to see what is available in Pipelines
jmwright 1472063
Trying yet another environment variable for Azure
jmwright 7164898
Streamlining the code a little bit
jmwright 162e3c5
Trying without the version number in setup.py
jmwright 7cff170
Removed hard-coded version number in __init__.py
jmwright File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work when installed via conda?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it may since it leverages importlib, but it's hard to be sure. I think the
version
variable insetup.py
is being used by conda when building packages too, so I left it hardcoded at2.1
because I was afraid of breaking something downstream. However, we could try using the scm version number there in addition to the PyPi packages if you want, which should give us traceability down to the commit level on conda packages. I think that would be nice to be able to ask users to give the full version number when reporting bugs.That version line has a typo in it that @fpq473 pointed out which I'll fix and I'll also give the conda version number a try just to see what happens.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I think I'm mistaken about the conda build using the
version
variable in setup.py. There was an error in an early build that made it look that way, but I think it was actually a mistake within my setup.py changes. I think the that the cq.version call should probably still work with conda, but it's hard to know for sure until we try it with the conda packages.