Coder Social home page Coder Social logo

Comments (7)

kellyjonbrazil avatar kellyjonbrazil commented on May 19, 2024 1

Gotcha - I opened the package zip and I see the tests are there but not the fixtures since setup.py only includes python files by default. Looks like there are a couple of options to add the fixtures in. I'll research the best approach (MANIFEST.in vs package_data in setup.py)

from jc.

kellyjonbrazil avatar kellyjonbrazil commented on May 19, 2024 1

Hi Atemu,

I think I have the test fixtures added in v1.7.2, now available on pypi. Could you let me know if that works for you or if I need to make any more adjustments?

Thanks,
kb

from jc.

kellyjonbrazil avatar kellyjonbrazil commented on May 19, 2024

Hi Atemu, aren't all of the tests and fixtures available by cloning this repository?

from jc.

Atemu avatar Atemu commented on May 19, 2024

Yes but I'd rather use PyPi as the source because that'd allow you to update the package by version number instead of git revision (e.g. "1.7.1" vs. "77d334f7f386f79ec0571325500054fdab207f31").

See the comment in https://github.com/NixOS/nixpkgs/blob/db427f7f5ebee23823bf65c74b901b3c8ed6f4f5/pkgs/development/python-modules/jc/default.nix, it makes things clearer and easier to read.

Also, I think that if tests are included in a distribution of source code, you should be able to run them successfully.

from jc.

Atemu avatar Atemu commented on May 19, 2024

It works, thank you!

from jc.

kellyjonbrazil avatar kellyjonbrazil commented on May 19, 2024

@Atemu I am considering removing the tests from the package since it looks like they are polluting the top-level python site-packages on install. Would that be ok? I need to do this for homebrew and fedora packaging.

see: #58

from jc.

Atemu avatar Atemu commented on May 19, 2024

It'd be a very minor inconvenience for me but that's not a good reason to make packaging for other projects harder.

from jc.

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.