wemake-services / jinja2-git Goto Github PK
View Code? Open in Web Editor NEWJinja2 extension to handle git-specific things
Home Page: https://pypi.org/project/jinja2-git/
License: MIT License
Jinja2 extension to handle git-specific things
Home Page: https://pypi.org/project/jinja2-git/
License: MIT License
There's a new python version that we currently do not officially support.
What need to be done:
python3.7
inside travis builds, example: https://github.com/wemake-services/wemake-python-styleguide/blob/master/.travis.yml#L3-L9We are ready for a new release!
@mikhail-akimov but before releasing a new version, we need to add a CHANGELOG.md
file where we can describe what have changed since the last version.
What needs to be done:
And then I will release a new version.
I need a similar functionality to the one you provide for the git hash just for the latest git tag, i.e., the output of:
git describe --tags --abbrev=0
Would you be willing to include this into your package (could make a PR), or should I create my own package?
Currently this library only allows users to get the full commit hash.
I would see some possible usages of the short commit hash as well.
So, I would like to propose the following syntax for it: {% gitcommit short=True %}
.
What needs to be done?
jinja2
tags_commit_hash
methodThis was originally a # TODO
comment: https://github.com/sobolevn/jinja2-git/blob/23172f3a7f26b6f551f70a8c6aaa818a79918e4f/jinja2_git.py#L22
After #3 was merged we have broken our CI.
Travis builds fail: https://travis-ci.org/sobolevn/jinja2-git/jobs/432398548
Traceback:
0.33s$ tox
ERROR: No setup.py file found. The expected location is:
/home/travis/build/sobolevn/jinja2-git/setup.py
You can
1. Create one:
https://packaging.python.org/tutorials/distributing-packages/#setup-py
2. Configure tox to avoid running sdist:
https://tox.readthedocs.io/en/latest/example/general.html#avoiding-expensive-sdist
The command "tox" exited with 1.
We have to switch how our CI works. Currently it uses tox
+ setup.py
which is gone.
But, we now need to use poetry
instead.
Resources that might help you @mikhail-akimov :
poetry
+ tox
travis example: https://github.com/sdispater/pendulum/blob/master/tox.inipoetry
travis example without tox
: https://github.com/wemake-services/wemake-python-styleguide/blob/master/.travis.ymlPlease, feel free to ask any questions you have.
@mikhail-akimov Currently we use rst
as the legacy format that was supported via old PyPI.
But, new PyPI release also supports md
. Just like poetry
.
So, what we need to do is manually convert README.rst
into README.md
.
Could you please help me with that?
It would be nice to be able to pass the git repository to subprocess.check_output(params, cwd=repo)
, otherwise this returns an error message when the git repository is not in the same directory.
We still use good-old setup.py
for this project.
It works well, but I do not enjoy maintaining it.
So, we need to move to poetry
:
pyproject.toml
, it should look like this file: https://github.com/wemake-services/wemake-python-styleguide/blob/master/pyproject.tomlpyproject.lock
setup.py
into pyproject.toml
setup.py
and MANIFEST.in
filesDependabot couldn't authenticate with https://pypi.python.org/simple/.
You can provide authentication details in your Dependabot dashboard by clicking into the account menu (in the top right) and selecting 'Config variables'.
Can you make a new release, please? The last one is May 2020, but several important changes, including Jinja 3.x support (#120) have been merged since then.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.