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

Releasing brim on pypi #37

Closed
tjstienstra opened this issue May 15, 2023 · 9 comments
Closed

Releasing brim on pypi #37

tjstienstra opened this issue May 15, 2023 · 9 comments

Comments

@tjstienstra
Copy link
Collaborator

When trying to publish brim on pypi I ran into the following issue:

HTTP Error 400: Invalid value for requires_dist. Error: Can't have direct dependency: 'sympy @ git+https://github.com/sympy/sympy.git' | b"<html>\n <head>\n  <title>400 Invalid value for requires_dist. Error: Can't have direct depen
dency: 'sympy @ git+https://github.com/sympy/sympy.git'\n \n <body>\n  <h1>400 Invalid value for requires_dist. Error: Can't have direct dependency: 'sympy @ git+https://github.com/sympy/sympy.git'\n  The server could not comply wit
h the request since it is either malformed or otherwise incorrect.<br/><br/>\nInvalid value for requires_dist. Error: Can&#x27;t have direct dependency: &#x27;sympy @ git+https://github.com/sympy/sympy.git&#x27;\n\n\n \n"
@tjstienstra
Copy link
Collaborator Author

The above issue has been solved by giving installation instructions in the README and temporary removing those from the pyproject.toml file. I've succeeded to publish brim on PyPi testing. The problem that however remains is that it PyPi says that the name is not allowed:

$ poetry publish

Publishing brim (0.0.1) to PyPI
 - Uploading brim-0.0.1-py3-none-any.whl FAILED

HTTP Error 400: The name 'brim' isn't allowed. See https://pypi.org/help/#project-name for more information. | b"<html>\n <head>\n  <title>400 The name 'brim' isn't allowed. See https://pypi.org/help/#project-name for more information.\n \n <body>\
n  <h1>400 The name 'brim' isn't allowed. See https://pypi.org/help/#project-name for more information.\n  The server could not comply with the request since it is either malformed or otherwise incorrect.<br/><br/>\nThe name &#x27;brim&#x27; isn&#x
27;t allowed. See https://pypi.org/help/#project-name for more information.\n\n\n \n"

@moorepants
Copy link
Collaborator

Some names are taken on pypi but that isn't apparent from a search. For example, cyipopt was taken but didn't show up in a search. I then had to put in a request for the name and they eventually gave it to me because it was found it was never used and someone was just parking on it.

@moorepants
Copy link
Collaborator

It seems you are depending on dev versions of software. For pip installs to work I think you really need to depend on released versions of dependencies. If we need to make a BicycleParameters release, etc. then I can help with that. The whole pypi and conda systems rely on released versions with specific version numbers, otherwise things can be resolved with dependency resolvers in the installation tools.

@tjstienstra
Copy link
Collaborator Author

the problem is that it is depedent on System from sympy

@tjstienstra
Copy link
Collaborator Author

I've opened a request

@moorepants
Copy link
Collaborator

I've opened pypi/support#2843

I think it took quite some months when I made the cyipopt request, fyi.

@moorepants
Copy link
Collaborator

the problem is that it is depedent on System from sympy

Quite annoying that these things didn't get into 1.12. We should have tagged these prs as needing to go into 1.12.

Maybe we should try to do a new release for sympy soon.

@tjstienstra
Copy link
Collaborator Author

they are experimental and so is brim, so I do agree with them not being in 1.12

@moorepants
Copy link
Collaborator

Then it's probably best not to release to pypi yet.

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