profile
viewpoint

jazzband/django-taggit 2503

Simple tagging for django

jazzband/django-redis 1901

Full featured redis cache backend for Django.

Alir3z4/html2text 1022

Convert HTML to Markdown-formatted text.

gjedeer/celery-php 403

PHP client for Celery

jdufresne/commit-messages 2

Common commit messages

jdufresne/appdirs 1

A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".

jdufresne/alabaster 0

Lightweight, configurable Sphinx theme. Now the Sphinx default!

jdufresne/ansible-kodi 0

Ansible scripts to configure Kodi

jdufresne/asgiref 0

ASGI specification and utilities

jdufresne/aws-cli 0

Universal Command Line Interface for Amazon Web Services

starteddate-fns/babel-plugin-date-fns

started time in 2 hours

issue commentAlir3z4/html2text

The picture url with "-" is converted to "-\n"

I have the same issue with Python 3.9 any solution?

myifeng

comment created time in 3 hours

starteddanger/danger-js

started time in 8 hours

startedmammaldiversity/mammaldiversity.github.io

started time in 12 hours

fork hugovk/contributing

Guidelines and instructions for contributing to Fatiando a Terra, including authorship policies, maintenance, and code of conduct

fork in 2 days

startedrandy3k/RemoteSubl

started time in 2 days

push eventjdufresne/pip-tools

Jon Dufresne

commit sha d46123d525eeaee06951c15f956ad34c25602c9f

Remove unnecessary guards around multiple=True CLI options click.option() automatically defaults to an empty list.

view details

Jon Dufresne

commit sha 1d092990bf9fe6948febbc15e9fed835fc5744ea

Combine adjacent strings on one line

view details

Jon Dufresne

commit sha 95cd651135611d33d9d0b6004b76afed0f9b25e5

Complete testing and documentation of Python 3.9 support Testing was added in 7503ad75d849b96c6e29afeefbc2d735681854ae but is now included in CI and is also documented as trove classifier. Python 3.9 was released November 15, 2020.

view details

Jon Dufresne

commit sha d786232cf0ba4d4e9cf11e9d50b6665d78e330c3

Remove unnecessary envvar configuration in click options These are environment variables consumed by pip. As environment variables are passed through to subprocesses they're already handled. No special processing in pip-tools is required so simplify the CLI definition.

view details

Jon Dufresne

commit sha 521b48e9b003d7027b4b2de6ca650a89267cc082

Remove unnecessary flake8 configuration option flake8 ignores these directories by default and piptools/_compat/* has no violations anyway.

view details

Jon Dufresne

commit sha a0c7653bf8abb0b71695640bdae68cde3678ce2e

Remove six dependency in favor pip's vendored six Allows removing a dependency of pip-tools. The package is already guaranteed to exist within pip, so might as well use it. As more and more projects are dropping Python 2 support, they too are dropping six as a dependency. As more projects drop six, this will eventually remove the need for projects to pull in six as a transient dependency. When pip eventually drops Python 2 support, it will also drop six. When that day comes, pip-tools can also drop Python 2 support, so the eventual lack of six should not be an issue.

view details

Jon Dufresne

commit sha 2cef502e1772ff2f95861911885ef2d37cab2907

Unify sync's logging with compile's logging system sync now uses the same cumulative --verbose/--quiet as compile. sync output calls go through the LogContext object.

view details

Jon Dufresne

commit sha b09432c120f1d388671e569edb0b7313d581de0c

Enable Python warnings during tests and fix all in the code When running the test suite with Python warnings enabled, several warnings are emitted. They look like: tests/test_utils.py::test_format_requirement /usr/lib64/python3.9/tempfile.py:817: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/tmp/tmpezxehep1source'> _warnings.warn(warn_message, ResourceWarning) To solve, make Repository.freshen_build_caches() a context manager. Upon entering the with statement, the build an source caches are created and upon exit they are cleaned up. This ensures they only live for the duration they are required. Tests were adjusted. tests/test_repository_pypi.py::test_pypirepo_build_dir_is_str .../pip/_vendor/requests/adapters.py:59: ResourceWarning: unclosed file <_io.FileIO name='/tmp/pytest-of-jon/pytest-70/test_open_local_or_remote_file5/foo.txt' mode='rb' closefd=True> super(BaseAdapter, self).__init__() To solve, test_open_local_or_remote_file_remote_file() was adjusted to close its file after use. tests/test_cli_compile.py::test_redacted_urls_in_verbose_output[--find-links] .../pip-tools/piptools/scripts/compile.py:306: FutureWarning: --index and --no-index are deprecated and will be removed in future versions. Use --emit-index-url/--no-emit-index-url instead. warnings.warn( To solve, use --no-emit-index-url in test_redacted_urls_in_verbose_output(). There remains one warning left, but this is out of the control of pip-tools. An upstream PR has been filed: https://github.com/pypa/pip/pull/9156 Enabling the warnings in test runs will help catch them earlier and make debugging/fixing easier.

view details

Jannis Leidel

commit sha acb4cb8111bf0938b5abab31edd7bfe726373ed0

Merge branch 'master' into fast-finish

view details

push time in 3 days

startedmodule-federation/svg-sprite-loader

started time in 3 days

fork hugovk/geojson

Python bindings and utilities for GeoJSON

https://pypi.python.org/pypi/geojson/

fork in 4 days

startedKhaosT/SimpleVM

started time in 5 days

startedjdufresne/flake8-raise

started time in 5 days

startedjef/streetmerchant

started time in 6 days

startedakirakyle/emacs-webkit

started time in 6 days

issue openedjazzband/django-taggit

Rendering tags in template with Bootstrap-tagsinput

I'm trying to make your great app work but I have the following problem:

I'm using bootstrap-tagsinput to render tags so:

Screenshot 2020-11-23 at 00 02 25

But when I access my edit view, pre-populating the form, I get:

Screenshot 2020-11-23 at 00 04 41

My form is:

class RecipeForm(forms.ModelForm):

    class Meta:
        model = Recipe
        fields = (
            ...
            "tags",
        )
        widgets = {"tags": forms.TextInput(attrs={"data-role": "tagsinput"})}

(I need to have the data-role for the plugin to work) How can I solve this issue and get the right values when I need to access the form to edit it?

created time in 6 days

startedDevDavido/performance-audit-plugin

started time in 6 days

startedchmln/sd

started time in 6 days

startedmicmro/performance-bookmarklet

started time in 7 days

startedstewartsmith/libeatmydata

started time in 7 days

issue openedjazzband/django-taggit

How to write test with taggable manager

I am writing tests and cannot figure out how to test with taggit field.

Here is my model:

class Product(models.Model):
    name = models.CharField(_("name"), max_length=50)
    slug = models.SlugField(_("slug"), max_length=50,
                            unique=True, null=True, blank=True)
    summary = models.CharField(_("summary"), max_length=250)
    detail = RichTextField(blank=True, null=True)
    unit = models.CharField(_("unit"), max_length=50)
    #...
    tags = TaggableManager(_("tags"))

And I am using factory_boy for testing, but seems tags cannot be used.

class ProductFactory(DjangoModelFactory):
    class Meta:
        model = Product

    name = factory.Sequence(lambda n: 'awesome item %d' % n)
    summary = factory.Faker('sentence')
    unit = 1
    price = 500
    brand = factory.Faker('company')
    tags = TaggableManager()
    # tags = ['buff']
    category = factory.SubFactory(CategoryFacotry)
    origin = factory.SubFactory(OriginFacotry)
    spu = factory.SubFactory(SpuFacotry)

By default, factory boy will use the fields in the related model, however no matter I leave tags as blank, or assign it again with TaggableManager, I got an AttributeError.

ERROR: setUpClass (shop.tests.test_views.TestShopDetailView)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/django/test/testcases.py", line 1123, in setUpClass
    cls.setUpTestData()
  File "/usr/src/app/apps/shop/tests/test_views.py", line 126, in setUpTestData
    cls.sku.tags.add('awesome')
AttributeError: 'TaggableManager' object has no attribute 'add'

Is that possible to use taggit with factory boy? Or are there any other methods to write a test with taggit? Very little information in the docs and StackOverflow about testing with taggit, really appreciate your help.

created time in 7 days

fork charettes/redis-py

Redis Python Client

fork in 7 days

startedGoogleChrome/web-vitals

started time in 8 days

startedjussi-kalliokoski/dotfiles

started time in 8 days

startedvigetlabs/ensure-animation

started time in 8 days

push eventjazzband/django-redis

Adrian Pachzelt

commit sha 66fd8a165e44e2c00695873b6f7151ddb85dcb59

Specified ACL login usage

view details

Adrian Pachzelt

commit sha 899fb5662a87b6d3d7353601d4351191edf94f16

Added further details to ACL options in README

view details

Anas

commit sha baa7dc4767663f5841c0cb7223a1ea84b488b6bc

Merge pull request #482 from GrazingScientist/patch-1 Specified ACL login usage in the README

view details

push time in 8 days

PR merged jazzband/django-redis

Specified ACL login usage in the README

It took me some digging in the redis-py source code (their README does not even hint this feature). Hence, I thought it may be useful to have it explicitely in the documentation for others

+34 -3

1 comment

1 changed file

GrazingScientist

pr closed time in 8 days

Pull request review commentjazzband/django-taggit

Allowing BigIntegerField in taggedItems

 def tags_for(cls, model, instance=None, **extra_filters):   class GenericTaggedItemBase(CommonGenericTaggedItemBase):-    object_id = models.IntegerField(verbose_name=_("object ID"), db_index=True)+    object_id = models.BigIntegerField(verbose_name=_("object ID"), db_index=True)

probably moving to abstract base model is the best futuristic approach

sowdust

comment created time in 8 days

startedHomebrew/brew

started time in 8 days

startedenkia/tokyo-night-vscode-theme

started time in 8 days

fork hugovk/pip-tools

A set of tools to keep your pinned Python dependencies fresh.

fork in 9 days

more