-
Notifications
You must be signed in to change notification settings - Fork 101
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
Naming conflict with "pint" quantity package #33
Comments
Hmmm.... maybe. I don't really see our PINT as being used by many people -- it is quite specialized. And we really like the name! (it recursively comments on the previous bits of software that do this kind of thing). I'm glad that you brought the issue up, though. We might be able to make the package name something like "pulsar_pint" or somesuch... |
Sure, I understand you want to keep "pint". I like it! But putting your package on PyPI so that So yes, maybe "pulsar_pint" could be a good option ... |
Ha! My student just recommended "pint_time"! That is a good suggestion.... ;-) |
That sounds like a happy hour. I like it. On Tue, Apr 21, 2015 at 10:53 AM, Scott Ransom [email protected]
|
Indeed. We might have to move our telecon times to happy hour. :-) — Paul |
When PINT gets to 1.0, we should make it pip installable. Keeping this issue open until then... |
We should reconsider this, especially now that PINT is a lot easier to install. I believe a new user can get it going by git clone, then |
It's possible to give your package any name that's not taken yet on PyPI, simply by putting that name as the And yes, you can pretty much install whatever files / directories you like from
But just because it's possible doesn't mean that it's a good idea. My experience with packages that have different names in different places is that I can never remember which is which, i.e. it's a bad user experience. With +1 to have the same name everywhere. |
If we change the name, are there rules about "-" and "_"? For some reason astropy_helpers is installed as astropy-helpers with pip. This is confusing. Also, if we change the name, we should do it soon. This would be a good topic for a telecon @luojing1211 If we don't change the name, then either we pip install using a different name than pint, or we just never list it on PyPI and users will have to download it some other way (though they will still be able to install it with pip if they wish). |
You can't have >>> import astropy-helpers So you have to choose The reason the "distribution" name (the one in the name argument in setup.py and on PyPI) is
Agreed. |
Please don't underestimate the value of being able to do It's also not necessary that PyPI package names equal module/package names in python. |
Agree 100% with @aarchiba . E.g. for Gammapy we have several dependencies, and the way we tell them to install the software is like this:
In the future, we would like to support gamma-ray pulsar analysis and have some functionality in Gammapy that builds on PINT, a very early example prototyping in this direction is here. So what we need is stable pip and/or conda packages for PINT that we can simply refer to and have install work as one of many dependencies. |
With the paper coming out, how about we get PINT onto PyPI now (and conda as well perhaps)? |
I think this is the time for it. Should we use "pint_time" or
"pulsar_pint"? I am working on the code to reach what I promised in version
0.7
-Jing
…On Fri, Mar 6, 2020 at 11:44 AM Paul Ray ***@***.***> wrote:
With the paper coming out, how about we get PINT onto PyPI now (and conda
as well perhaps)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33?email_source=notifications&email_token=ABIUBA5Q46GJSZYXIBGAENLRGER5XA5CNFSM4BASI3W2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOCAPZA#issuecomment-595855332>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIUBA4S3JJ7MKWKOKMKHKLRGER5XANCNFSM4BASI3WQ>
.
|
I guess I like "pulsar-pint" or "pint-pulsar" since most package names seem to use dash instead of underscore in the PyPI name. I looked at the docs and I think we can make it install with "pip install pulsar-pint" and still have it imported with "import pint". I wonder if there is some way in PyPI to specify that it conflicts with the other PINT package so that they can't both be installed? |
Note that
|
@luojing1211 are you going to upload to PyPI, or should I give it a shot? |
I am finishing the add_component() part. I think that is the 0.7 milestone
we agreed on. But can we reserve the name on PyPI?
On Fri, Mar 6, 2020 at 4:58 PM Paul Ray ***@***.***> wrote:
@luojing1211 <https://github.com/luojing1211> are you going to upload to
PyPI, or should I give it a shot?
I think we should definitely tag a new version number before doing so.
But, other than that, the setup.cfg seems to have all the metadata
required, so I think it should be simple.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33?email_source=notifications&email_token=ABIUBA4LB2PAHCFRT4DXQ2LRGFWXZA5CNFSM4BASI3W2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOC7SFQ#issuecomment-595982614>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIUBAYRZBE7NBTYYS7TQD3RGFWXZANCNFSM4BASI3WQ>
.
--
-Jing
|
I don't know if you can reserve a name. I suppose hanging on for 0.7 with the components stuff fixed up would be fine. I guess once we post on PyPI, we'll want to be a bit more careful with versioning, so maybe we shouldn't rush it too much. |
I think I prefer pulsar-pint or pint-pulsar. The latter might make more sense for pulsar people looking for pint as it will show up right next to the already existing pint (which is what they would expect it was named!) |
Yes, you can do that. As package install and import name, you can choose any valid Python identifier (like I'm not saying you should do that - just that technically at the moment there's nothing enforced by PyPI and pip concerning matching names.
I looked a bit, and didn't find a way. There's pypa/packaging-problems#154 (comment) from 2018 which discusses such a feature for pip, indicating it doesn't exist yet. pip will execute your setup.py, so in there you can put code that checks if the other package is installed already, and aborts installation of your package in that case (e.g. with a message to first suggesting to uninstall the other). Overall you have a tough choice here whether to install as
Years ago here used to be a way to "register" a name, i.e. reserve it and only upload later. It's not available any more though, the usual way is to just release to PyPI and that will give you the name: |
We are now on PyPI and conda-forge as pint-pulsar. You can't install both pint-pulsar and pint since they conflict. This should be prevented by conda, but I don't know how to do it for PyPI. Anyway, closing... |
There is a Python package named "pint" on PyPI that is quite popular and has existed for a few years:
https://pypi.python.org/pypi/Pint/
https://github.com/hgrecco/pint
It's about physical quantities, so probably there will be users that have that package installed and then if they want to install this one with the same name there's a conflict and confusion.
Is renaming this package (and reserving the new name on PyPI) an option?
The text was updated successfully, but these errors were encountered: