Coder Social home page Coder Social logo

packaging-dists's People

Contributors

uranusjr avatar pombredanne avatar saaketp avatar

Stargazers

 avatar Josix avatar

Watchers

 avatar James Cloos avatar  avatar

packaging-dists's Issues

LegacyVersion removed from packaging.version

In pypa/packaging#407 the LegacyVersion class was removed from packaging, which means this module can no longer be used (without pinning packaging back).

This has the flow on effect of breaking simpleindex, even though it shouldn't need to. Can we make the use of LegacyVersion optional by delaying the import? (Or remove the dependency from simpleindex is fine by me, too.)

Keep filename as a Distribution attribute

It would be convenient to keep as an attribute the filename used to construct a Distribution with parse(). This would be both Sdist and Wheel. Note that because of package canonicalization, this may not be something that may be recreated exactly from the parsed parts hence the need to keep it around.

PROJECT_PATTERN Excludes "+"

The lines below exclude the "+" character from a valid name - I'm unsure if there is a PEP actually specifying valid characters, however: the "+" is often in filenames especially for wheels built from git repos. There are also several packages on Pypi with a "+" in the filename. (see https://pypi.org/pypi/docky/json) for a random example.

PROJECT_PATTERN = re.compile(
r"^([A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])$", re.IGNORECASE,
)

Incompatible with Python 3.10

When running Docker image built with python:3-alpine, simpleindex run with error unknown encoding.

change base image to python:3.8-alpine solved the issue.

pypi-simpleindex-1  | Traceback (most recent call last):
pypi-simpleindex-1  |   File "/usr/local/bin/simpleindex", line 5, in <module>
pypi-simpleindex-1  |     from simpleindex.__main__ import main
pypi-simpleindex-1  |   File "/usr/local/lib/python3.10/site-packages/simpleindex/__main__.py", line 11, in <module>
pypi-simpleindex-1  |     from . import configs, routes
pypi-simpleindex-1  |   File "/usr/local/lib/python3.10/site-packages/simpleindex/configs.py", line 12, in <module>
pypi-simpleindex-1  |     from .routes import Route
pypi-simpleindex-1  |   File "/usr/local/lib/python3.10/site-packages/simpleindex/routes.py", line 7, in <module>
pypi-simpleindex-1  |     import packaging_dists
pypi-simpleindex-1  |   File "/usr/local/lib/python3.10/site-packages/packaging_dists/__init__.py", line 0
pypi-simpleindex-1  | SyntaxError: unknown encoding: future_annotations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.