pretagov / nswdesignsystem.plone6

GNU General Public License v2.0
1 stars 1 forks source link

Unable to release to PyPI due to direct dependency #16

Open JeffersonBledsoe opened 11 months ago

JeffersonBledsoe commented 11 months ago

Description

15 fixed an issue with the tests by adding pretagov/ftw.tika and https://github.com/pretagov/cusy.restapi.info as url dependencies. This is required due to using features from the unreleased branches in these repos. It turns out that you can't upload packages with direct dependencies to PyPI. See the following error:

Uploading nswdesignsystem.plone6-0.4.0-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.2/41.2 kB • 00:00 • 67.0 MB/s
WARNING Error during upload. Retry with the --verbose option for more        
            details.                                                             
Response status code: 400
Reason: Invalid value for requires_dist. Error: Can't have direct dependency: 'ftw.tika @ git+https://github.com/pretagov/ftw.tika@python3#egg=ftw.tika'
There were errors or warnings.
ERROR Package upload has failed.                                             
          NoneType: None         
JeffersonBledsoe commented 11 months ago

@djay Aside from releasing the mentioned packages (which we should do anyway), any ideas how to get around this?