Skip to content

Is vcversioner no longer dependency of jsonschema? #453

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

Closed
idgserpro opened this issue Aug 16, 2018 · 2 comments
Closed

Is vcversioner no longer dependency of jsonschema? #453

idgserpro opened this issue Aug 16, 2018 · 2 comments

Comments

@idgserpro
Copy link

idgserpro commented Aug 16, 2018

I am having trouble installing jsonschema2.6.0 in environments without accessing pypi because of vcversioner. But I see that it is no longer dependency.

@Julian
Copy link
Member

Julian commented Aug 17, 2018

It isn't, but setuptools_scm is now, which works the same exact way.

@idgserpro
Copy link
Author

I'm basically having the same problem as #276, but using the buildout to install jsonschema.

We have a server without internet access and we install the packages from an internal mirror. We configure the buildout index to get packages from this mirror. The buildout uses this configuration to get packages that are in install_requires, but it doesn't work for packages that are in setup_requires.

So easy_install tries to download vcversioner from pypi but, as the server doesn't access the internet, an error occurs:

Getting required 'jsonschema==2.6.0'
We have no distributions for jsonschema that satisfies 'jsonschema==2.6.0'.
Getting distribution for 'jsonschema==2.6.0'.
Running easy_install:
/opt/programas/zope/2.13.26/zinstance/bin/python "-c" "from setuptools.command.easy_install import main;main()" "-mUNxd" "/opt/programas/zope/2.13.26/zinstance/zeoclient/eggs/tmpOpVeBa" "-q" "/tmp/tmpYl0V09get_dist/jsonschema-2.6.0.tar.gz"
path=/opt/programas/zope/2.13.26/zinstance/zeoclient/eggs/setuptools-26.1.1-py2.7.egg

Download error on https://pypi.python.org/simple/vcversioner/: [Errno 111] Connection refused -- Some packages may not be found!
Couldn't find index page for 'vcversioner' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno 111] Connection refused -- Some packages may not be found!
No local packages or working download links found for vcversioner>=2.16.0.0
error: Could not find suitable distribution for Requirement.parse('vcversioner>=2.16.0.0')
An error occurred when trying to install jsonschema 2.6.0. Look above this message for any errors that were output by easy_install.
While:
  Installing instance.
  Getting distribution for 'jsonschema==2.6.0'.
Error: Couldn't install: jsonschema 2.6.0

Is possible fix this by using a ~/.pydistutils.cfg file with the content:

[easy_install]
index_url = http://my.mirror/root/pypi

This tells to easy_install to get packages from my mirror and not from pypi.

Probably, we will have the same problem with setuptools_scm. But this isn't a problem of jsonschema, so we're commenting here just for the sake of documentation.

Thanks.

Julian added a commit that referenced this issue Apr 13, 2021
15ec577 Merge pull request #471 from json-schema-org/ether/id-anchor-in-enum
9f97865 test for confusing not-identifiers in enums
0f7ecd4 Merge pull request #475 from marksparkza/marksparkza-patch-1
783d22a Add jschon
fc68499 Merge pull request #472 from json-schema-org/ether/unevaluatedProperties_uncles
ed4cf5f more test cases for unevaluatedItems, unevaluatedProperties
d0d814d Merge pull request #469 from json-schema-org/ether/ipv4-vulnerability
7ca5f36 reject ipv4 strings with an octet with a leading zero
8e1e1c1 fix spelling error in test descriptions
77f1d10 Merge pull request #462 from jdesrosiers/dynamic-ref-tests
72a32fe Merge pull request #468 from json-schema-org/ether/combine-test-cases
0c48ffb Merge pull request #453 from notEthan/float-overflow-d4-int
76a4ba0 these test cases can be combined since the schemas are the same
cd73775 Merge pull request #464 from json-schema-org/ether/format-by-default-always-validates
043dc63 by default, "format" only annotates, not validates
3c45b81 Merge pull request #460 from amosonn/remove-remotes-from-script
b09e48d Fix $ref with siblings in pre-2019-09 tests
ff9f22e Add tests for $dynamicRef/$dynamicAnchor
0faaf09 Fix refs to Draft 2019-09 schema to be refs to 2020-12
ebbcbc8 Use flask to server remotes directly
bb98b03 Remove remotes from bin/jsonschema_suite
fcae732 Merge pull request #455 from jdesrosiers/bootstrap-202012
e002409 Update tests for 2020-12
405b3fb Copy 2019-09 tests to bootstrap 2020-12 tests
1636a22 draft4 float-overflow instance may be considered not an integer
8daea3f Merge pull request #451 from json-schema-org/ether/more-relative-json-pointer
69fe40f some more relative-json-pointer tests
6505944 Merge pull request #450 from json-schema-org/ether/recursiveRef-dynamic-path
afd0cd3 Move content* keyword tests to non-optional
e2b2a4b Change all content* keyword tests to always validate
8999eae $recursiveRef example demonstrating dynamic nature of the resolution scope
f47003f fix duplicate test description
bcf1dc8 Merge pull request #391 from ether/recursiveRef (rebased, squashed)
3d88f34 test $recursiveRef + $recursiveAnchor
3b79a45 Merge pull request #418 from ChALkeR/chalker/contentSchema
29f609b Add tests for contentSchema

git-subtree-dir: json
git-subtree-split: 15ec577f5ddee0115319f4e7f856cd57567a9c78
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

No branches or pull requests

2 participants