Git Product home page Git Product logo

Comments (10)

yilei avatar yilei commented on September 27, 2024

Hi,

The package published on PyPI doesn't include tests nor bazel BUILD files. If you are interested in running tests, you can clone the repo then run bazel:

git clone [email protected]:abseil/abseil-py.git
cd abseil-py
bazel test absl/...

I'll update the README.md files so it's more clear.

from abseil-py.

eLvErDe avatar eLvErDe commented on September 27, 2024

Any reason why this is excluded from pypi release ?

from abseil-py.

yilei avatar yilei commented on September 27, 2024

We don't want to pollute the PyPI library with the tests, since they are not part of the API we provide. Plus, the tests require bazel, which isn't a thing you would run inside a pip installed directory.

from abseil-py.

eLvErDe avatar eLvErDe commented on September 27, 2024

Fair enough, but distributions integrating absl could be interested in running the testsuite (my case)

from abseil-py.

yilei avatar yilei commented on September 27, 2024

Right now our tests aren't structured to be run without bazel, and we also don't want to add bazel as an extra dependency for things related to the PyPI distribution.

I think it's technically possible to run at least some of the tests without bazel, and provide them as part of PyPI test suites. But we are not there yet.

from abseil-py.

eLvErDe avatar eLvErDe commented on September 27, 2024

It's fine to run them through bazel, this is only required to build the original package and provide a proof that the code it's working fine. It won't be required when installing the binary package (exactly the same as Sphinx and various "heavy" documentation system).
Anyway, could you create a GitHub tag matching pypi releases ? That would be a perfect workaround for people looking for source code along the matching test suite. Thanks

from abseil-py.

yilei avatar yilei commented on September 27, 2024

git-tags are indeed useful.

We'd like to create tags named like pypi-v0.1.10, pypi-v0.1.11. Would this work for you?

We want to emphasize that these are for mapping PyPI releases only, and de-emphasize the concept of versions for users who directly depend on source code. Hence the prefix pypi-.

from abseil-py.

yilei avatar yilei commented on September 27, 2024

A git-tag is created for the latest PyPI release. Future releases will also include such tags.

from abseil-py.

jayvdb avatar jayvdb commented on September 27, 2024

rpm packaging is done within a VM without internet access.

When I try testing with bazel, it attempts to fetch lots of packages from the internet.

Is there any way to use bazel without internet ? Pre-fetching all of the dependencies and including them in the rpm SOURCES?

from abseil-py.

rickeylev avatar rickeylev commented on September 27, 2024

from abseil-py.

Related Issues (20)

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.