Skip to content

Commit

Permalink
Merge branch 'main' into contributing-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre authored Nov 29, 2023
2 parents 56abd1b + 65a4313 commit 13dbe87
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 23 deletions.
6 changes: 4 additions & 2 deletions docs/console_script_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ To use the console script in development:

.. code-block:: bash
python -m flit install --symlink projectdir
cd projectdir
flit install --symlink
'projectdir' should be the top level project directory with the `pyproject.toml` file

Expand All @@ -38,7 +39,8 @@ will not necessarily create an editable install. This is a known issue with `fli

.. code-block:: bash
python -m flit install --symlink projectdir
cd projectdir
flit install --symlink
More Details
------------
Expand Down
2 changes: 1 addition & 1 deletion docs/pypi_release_checklist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ For Every Release

.. code-block:: bash
python -m flit install --symlink .
flit install --symlink
#. Run the tests:

Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ Ready to contribute? Here's how to set up ``{{ cookiecutter.project_slug }}`` fo

$ conda env create -f environment-dev.yml
$ conda activate {{ cookiecutter.project_slug }}
$ flit install --symlink .
$ flit install --symlink
{%- else -%}

Using ``virtualenv`` (``virtualenvwrapper``), you can create a new development environment with::

$ python -m pip install flit virtualenvwrapper
$ mkvirtualenv {{ cookiecutter.project_slug }}
$ cd {{ cookiecutter.project_slug }}/
$ flit install --symlink .
$ flit install --symlink
{%- endif %}

#. To ensure a consistent style, please install the ``pre-commit`` hooks to your repo::
Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ release: dist ## package and upload a release
python -m flit publish dist/*

install: clean ## install the package to the active Python's site-packages
python -m flit install .
python -m flit install

dev: clean ## install the package to the active Python's site-packages
python -m flit install --symlink .
python -m flit install --symlink
33 changes: 17 additions & 16 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -158,23 +158,26 @@ include = [
{%- endif %}
"Makefile",
"README.rst",
{%- if cookiecutter.use_conda == 'y' %}
"environment-dev.yml",
{%- endif %}
{%- if cookiecutter.make_docs == 'y' %}
"docs/**/*.gif",
"docs/**/*.jpg",
"docs/**/*.png",
"docs/**/*.rst",
"environment-docs.yml",
"docs/_static/_images/*.gif",
"docs/_static/_images/*.jpg",
"docs/_static/_images/*.png",
"docs/_static/_images/*.rst",
"docs/Makefile",
"docs/conf.py",
"docs/make.bat",
{%- endif %}
"setup.cfg",
"tests/*.py",
"tox.ini",
"{{ cookiecutter.project_slug }}/**/*.py"
"{{ cookiecutter.project_slug }}"
]
exclude = [
"**/*.py[co]",
"**/__pycache__",
"*.py[co]",
"__pycache__",
".coveralls.yml",
".editorconfig",
".flake8",
Expand All @@ -183,15 +186,13 @@ exclude = [
{%- if cookiecutter.make_docs == 'y' %}
".readthedocs.yml",
{% endif -%}
".yamllint.yaml",
"Makefile",
{%- if cookiecutter.make_docs == 'y' %}
".yamllint.yaml"
{%- if cookiecutter.make_docs == 'y' -%}
,
"docs/_*",
"docs/modules.rst",
"docs/{{ cookiecutter.project_slug }}*.rst",
"environment-docs.yml",
{% endif -%}
"environment-dev.yml"
"docs/apidoc/modules.rst",
"docs/apidoc/{{ cookiecutter.project_slug }}*.rst"
{%- endif %}
]
{%- if cookiecutter.use_black == 'y' %}

Expand Down

0 comments on commit 13dbe87

Please sign in to comment.