twisted / incremental

A library for versioning your Python projects.
Other
138 stars 22 forks source link

Ignore .pyc files #58

Open twm opened 4 years ago

twm commented 4 years ago

It doesn't seem like incremental should mangle bytecode files:

❯ .tox/twine/bin/python -m incremental.update --rc treq
Updating codebase to 20.9.0rc1
Updating /home/twm/dev/treq/src/treq/__pycache__/api.cpython-37.pyc
Updating /home/twm/dev/treq/src/treq/__pycache__/api.cpython-36.pyc

Observed with incremental 17.5.0

wiml commented 3 years ago

+1. In fact it should probably have several exclusions, off the top of my head these seem reasonable:

Perhaps we should implement the most-obvious of these and then allow exclusion patterns to be added in a setup.cfg section if it turns out some projects have more complicated needs

twm commented 4 months ago

The ability to exclude specific files would be useful, for example so that the Twisted compatibility policy can include examples of the NEXT substitution syntaxes.